Skip to content
المشاريع

حول

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.

الأعمال والمالية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
؜-٣
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…