Skip to content
Projets

À propos

A personal finance tracker you can talk to. Log spending and income in plain English, browse your ledger, and see charts — all in one clean dashboard.

Gestion et finance

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
-3
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

FinServe 💸

CA: 0x40266650ca11d75d46c4ccf3e7fe381e3103d71e

A personal finance tracker you can talk to. Log spending and income in plain English, browse your ledger, and see charts — all in one clean dashboard.


Features

Chat — Describe transactions naturally and the AI logs them for you.

Spent $45 on groceries
Got paid $3000 salary
Uber $22 · Netflix $15
Undo last entry

Overview — Income, expenses, balance, category breakdown, and a 6-month trend chart.

Ledger — Search, edit, and delete any transaction manually.


Tech stack

Layer Tools
Frontend React 19, Vite, Recharts, Lucide
Backend Express 5, LowDB (JSON file storage)
AI OpenRouter → Claude Sonnet

Prerequisites


Quick start

1. Install dependencies

npm install

2. Configure environment

Create a .env file in the project root:

API_KEY=your_openrouter_api_key_here

3. Start the API (terminal 1)

npm run server

Runs at http://localhost:3001

4. Start the frontend (terminal 2)

npm run dev

Open the URL Vite prints (usually http://localhost:5173).


Scripts

Command Description
npm run dev Start Vite dev server with hot reload
npm run server Start Express API on port 3001
npm run build Production build → dist/
npm run preview Preview the production build
npm run lint Run ESLint

API

Method Endpoint Description
GET /api/transactions List all transactions
POST /api/transactions Add a transaction manually
PATCH /api/transactions/:id Edit a transaction
DELETE /api/transactions/:id Delete a transaction
GET /api/stats Dashboard stats and charts data
POST /api/chat Send a message; AI parses and logs transactions

Data is persisted in server/db.json.


Project structure

finserve/
├── src/
│   ├── components/
│   │   ├── Chat.jsx          # AI chat interface
│   │   ├── Dashboard.jsx     # Overview & charts
│   │   ├── Transactions.jsx  # Ledger with search
│   │   └── EditModal.jsx     # Edit transaction modal
│   ├── App.jsx
│   └── main.jsx
├── server/
│   ├── index.js              # Express API + LLM integration
│   ├── db.js                 # LowDB setup
│   └── db.json               # Transaction storage
├── .env                      # API_KEY (not committed)
└── package.json

Categories

The AI assigns one of these when logging transactions:

Food · Transport · Shopping · Entertainment · Health · Housing · Utilities · Tech · Income · Investment · Other


Notes

  • Chat history is saved in your browser's localStorage.
  • The chat endpoint needs a valid API_KEY; other pages work without it.
  • Keep your .env file private and never commit API keys.

Explorer des projets similaires

Chargement…