SmartFinance.AI is an intelligent financial management platform designed specifically for students, leveraging AI to provide personalized financial guidance, loan management, and expense optimization.
- Personalized financial health analysis
- Smart spending recommendations
- Foreign country cost-of-living adjustments
- Loan repayment optimization
- Government grants and aid suggestions
- Investment opportunities (stocks, crypto)
- Extra earning recommendations
- Comprehensive cash flow visualization
- Loan payment deadline tracking
- Income stream monitoring
- Expense tracking
- Investment return projections
- AI-powered expense optimization
- Unnecessary cost identification
- Smart budgeting recommendations
- Location-based cost analysis
- Interactive data visualizations
- Cash flow analytics
- Expense pattern analysis
- Savings projections
- Risk assessment metrics
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- Framer Motion
- Three.js (3D visualizations)
- Chart.js (Data visualization)
- Cloudflare Workers
- Vector Database (Cloudflare Vectorize)
- KV Storage
- Firebase (Auth & Firestore)
- RAG (Retrieval-Augmented Generation)
- Cloudflare AI Models:
@cf/meta/llama-2-7b-chat-int8(Financial advice)@cf/baai/bge-base-en-v1.5(Embeddings)
graph TB
subgraph "Client Layer"
UI[Next.js Frontend]
THR[Three.js Rendering]
VIZ[Data Visualization]
end
subgraph "Edge Computing Layer"
CF[Cloudflare Workers]
AI[Cloudflare AI]
VDB[(Vectorize DB)]
KV[(KV Storage)]
end
subgraph "Authentication Layer"
FA[Firebase Auth]
FS[(Firestore)]
end
UI --> CF
THR --> UI
VIZ --> UI
CF --> AI
CF --> VDB
CF --> KV
CF --> FA
sequenceDiagram
participant U as User
participant W as Worker
participant V as Vectorize
participant KV as KV Store
participant LLM as LLaMA-2
U->>W: Financial Query
W->>V: Search Similar Cases
V-->>W: Return Matches
W->>KV: Fetch Context Data
W->>LLM: Generate Response
LLM-->>W: Financial Advice
W-->>U: Formatted Response
graph LR
subgraph "Data Sources"
FD[Financial Data]
SD[Scholarship Data]
ID[Investment Data]
end
subgraph "Processing"
EMB[Embeddings]
VEC[Vector Storage]
CTX[Context Builder]
end
subgraph "Retrieval"
QP[Query Processing]
VS[Vector Search]
RA[Response Assembly]
end
FD & SD & ID --> EMB
EMB --> VEC
VEC --> VS
VS --> CTX
CTX --> RA
graph TB
subgraph "Frontend Components"
DC[Dashboard]
AA[AI Advisor]
CC[Cost Cutter]
TL[Timeline]
end
subgraph "Edge Services"
AIS[AI Service]
VS[Vector Search]
KVS[KV Storage]
end
DC --> AIS
AA --> AIS
CC --> AIS
TL --> AIS
AIS --> VS
AIS --> KVS
- Node.js 18+
- Cloudflare Account
- Firebase Account
- Environment Variables Setup
# Install dependencies
npm install
# Run development server
npm run dev
# Run tests
npm test
# Build for production
npm run buildCreate a .env.local file with:
CLOUDFLARE_API_TOKEN=your_token
FIREBASE_CONFIG=your_config
NEXT_PUBLIC_APP_URL=http://localhost:3000- Fork this repository
- Configure environment variables in Cloudflare Dashboard
- Deploy using Cloudflare Pages:
npm run deployWe welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow TypeScript best practices
- Write tests for new features
- Update documentation as needed
- Follow the existing code style
This project is licensed under the MIT License - see the LICENSE file for details.
- Cloudflare for their AI and edge computing platform
- Firebase for authentication and database services
- The open-source community for inspiration and tools