AI-Powered Personal Finance & Tax Optimization Platform
A comprehensive financial management application built with React, TypeScript, and Firebase, featuring real-time Indian stock market integration and AI-driven tax insights.
π Live Demo: https://cashcue.vercel.app/
Features β’ Demo β’ Installation β’ Usage β’ Tech Stack
CashCue is an intelligent financial management platform that helps users track expenses, manage investment portfolios, and optimize taxes using AI-powered insights. With real-time Indian stock market data integration and smart budget tracking, CashCue makes personal finance management effortless.
- Real-time Stock Prices: Integration with Indian Stock Market API (NSE/BSE)
- Auto-refresh: Prices update automatically every 5 minutes
- Manual Refresh: On-demand price updates with loading indicators
- Market Status: Live display of market hours (9:15 AM - 3:30 PM IST)
- Tax Classification: Automatic STCG/LTCG classification
- Performance Metrics: Gain/loss tracking, holding period analysis
- Smart Categorization: 7+ categories (Food, Transport, Healthcare, Utilities, etc.)
- SMS Integration: Auto-parse expense SMS messages
- Budget Alerts: Real-time budget status and warnings
- Visual Analytics: Monthly spending charts and trends
- Date-based Filtering: Track expenses by date range
- Tax Optimization: AI-driven tax-loss harvesting recommendations
- Portfolio Health Score: Comprehensive portfolio analysis
- Scenario Comparison: What-if analysis for tax planning
- Urgent Actions: Highlighted time-sensitive recommendations
- Timeline View: Tax planning calendar and deadlines
- Monthly Budgets: Set and track monthly spending limits
- Category Budgets: Individual budgets for each expense category
- Smart Recommendations: AI-powered budget suggestions
- Real-time Updates: Live budget status and remaining amounts
- Overspending Alerts: Proactive warnings when nearing limits
- Dark Theme: Beautiful, modern dark UI optimized for readability
- Responsive Design: Works seamlessly on desktop, tablet, and mobile
- Real-time Sync: Firebase integration for instant data updates
- Secure Authentication: Firebase Auth with email/password
πΉ View Demo Videos & Screenshots
- Node.js 18+ and npm
- Firebase Account with Firestore database
- Groq API Key (for AI features)
git clone https://github.com/amanbangeraa/CashCue.git
cd CashCuenpm installCreate a .env file in the root directory:
# Groq AI API Key
VITE_GROQ_API_KEY=your_groq_api_key_here
# Firebase Configuration
VITE_FIREBASE_API_KEY=your_firebase_api_key
VITE_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your-project-id
VITE_FIREBASE_STORAGE_BUCKET=your-project.firebasestorage.app
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id
VITE_FIREBASE_MEASUREMENT_ID=your_measurement_id- Go to Firebase Console
- Create a new project (or use existing)
- Enable Authentication β Email/Password
- Create Firestore Database in production mode
- Copy configuration values to
.env
npm run devOpen http://localhost:5173 in your browser.
- Sign Up: Create an account using email and password
- Add Stocks: Navigate to Portfolio β Add your stock holdings
- Track Expenses: Go to Expenses β Add your first expense
- Set Budget: Visit Budget β Configure monthly limits
To quickly populate your portfolio with demo data for testing:
npm run seed-portfolio <your-email> <your-password>Example:
npm run seed-portfolio demo@test.com MyPassword123This adds 9 demo stocks (~βΉ13.5L portfolio) perfect for AI analysis.
- Add stocks with ticker symbols (e.g.,
INFY.NS,RELIANCE.NS) - Prices auto-refresh every 5 minutes
- View gain/loss, tax type (STCG/LTCG)
- Get AI-powered tax optimization recommendations
- Add expenses manually or via SMS simulator
- Categorize spending across 7+ categories
- View monthly charts and trends
- Get budget warnings in real-time
- View portfolio on Dashboard
- AI analyzes holdings and generates insights
- Review tax-loss harvesting opportunities
- Implement recommendations before March 31
- React 19.2 - UI library
- TypeScript 5.9 - Type safety
- Vite 7.3 - Build tool
- Tailwind CSS 3.4 - Styling
- Recharts 3.7 - Data visualization
- Lucide React - Icons
- Firebase 12.9
- Authentication (Email/Password)
- Firestore (Real-time database)
- Indian Stock Market API - Real-time NSE/BSE prices
- Groq SDK - AI-powered insights
- date-fns - Date manipulation
- tsx - TypeScript execution
cashCue/
βββ src/
β βββ components/ # React components
β β βββ ai/ # AI insight components
β β βββ auth/ # Authentication
β β βββ budget/ # Budget management
β β βββ dashboard/ # Dashboard widgets
β β βββ expenses/ # Expense tracking
β β βββ income/ # Income sources
β β βββ portfolio/ # Stock portfolio
β β βββ shared/ # Shared components
β β βββ ui/ # UI primitives
β βββ context/ # React Context providers
β βββ lib/ # Firebase configuration
β βββ pages/ # Main page components
β βββ services/ # Business logic
β β βββ aiAnalyzer.ts # AI insights
β β βββ indianStockAPI.ts # Stock API
β β βββ smsParser.ts # SMS parsing
β β βββ autoExpenseTracker.ts
β βββ types/ # TypeScript types
β βββ utils/ # Helper functions
β βββ styles/ # Design system
βββ public/ # Static assets
βββ seed-portfolio.ts # Demo data seeder
βββ .env # Environment variables
βββ package.json # Dependencies
βββ tsconfig.json # TypeScript config
βββ vite.config.ts # Vite config
βββ tailwind.config.js # Tailwind config
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run lint |
Run ESLint |
npm run seed-portfolio |
Seed demo portfolio data |
Base URL: https://military-jobye-haiqstudios-14f59639.koyeb.app
Features:
- Free, no authentication required
- NSE (.NS) and BSE (.BO) support
- Real-time price data
- Search functionality
Example Usage:
// Get stock data
GET /stock/INFY.NS
// Search stocks
GET /search?query=infosys
// Multiple stocks
GET /stocks?symbols=INFY.NS,TCS.NS,RELIANCE.NS- β Environment variables for sensitive data
- β Firebase Authentication
- β Firestore security rules (user-scoped data)
- β No API keys exposed in frontend
β οΈ Note: Never commit.envto version control
- Push code to GitHub
- Import project in Vercel
- Add environment variables
- Deploy!
npm run build
# Deploy dist/ folder to any static hostingContributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Aman Bangera
- GitHub: @amanbangeraa
- Repository: CashCue
- Indian Stock Market API - Free stock data
- Firebase - Backend infrastructure
- Groq - AI inference
- Recharts - Data visualization
- Lucide - Beautiful icons
For issues or questions:
- π Open an Issue
- π¬ Discussions: Use GitHub Discussions
- π§ Email: Contact via GitHub
Made with β€οΈ using React, TypeScript, and Firebase
β Star this repo if you find it helpful!