A modern, full-stack expense tracking application powered by AI to help users analyze spending patterns, categorize expenses automatically, and gain meaningful financial insights.
This isn't just a basic expense tracker.
It allows users to:
- Track daily expenses
- Automatically categorize transactions using AI
- Analyze spending patterns
- Get smart financial insights
- Visualize data in a clean and modern UI
Most expense trackers only store data.
This one understands your data.
The goal was to build something that:
- Feels modern
- Solves a real problem
- Uses AI in a meaningful way (not just for hype)
- React / Next.js
- Tailwind CSS
- Axios
- FastAPI
- SQLAlchemy
- PostgreSQL / SQLite
- OpenAI / LangChain (for insights & categorization)
- Secure login/signup
- Token-based authentication (JWT)
- Add, update, delete expenses
- Filter & sort expenses
- Pagination support
- Automatically detects categories (Food, Travel, Shopping, etc.)
- Smart summaries of spending habits
- AI-generated insights
- Clean, minimal and responsive design
- Smooth user experience
├── frontend/
│ ├── components/
│ ├── pages/
│ ├── services/
│ └── styles/
└── backend/
└── app/
├── models/
├── routes/
├── services/
├── config/
└── main.pygit clone https://github.com/Samakcha/expenseAI.git
cd expense-tracker
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload
cd frontend
npm install
npm run dev
Create a `.env` file in backend:
DATABASE_URL=your_database_url
OPENAI_API_KEY=your_api_key
SECRET_KEY=your_secret
- Make sure JWT token is being sent from frontend
- Check Authorization header format:
Bearer <token> - Ensure backend CORS is configured properly
- Budget tracking
- Monthly financial reports
- Charts & advanced analytics
- Mobile app version
- Multi-user collaboration
Feel free to fork this repo and improve it.
Pull requests are welcome
Built with by Sam
Give it a star and share it!