Skip to content

SiddharthJiyani/project-artha-frontend

Repository files navigation

🌟 Artha - Your AI-Powered Financial Advisor

Artha (Sanskrit: ΰ€…ΰ€°ΰ₯ΰ€₯) meaning "wealth" or "purpose" - Your intelligent financial companion that understands your unique story, culture, and goals.

Artha Dashboard TypeScript Firebase Tailwind

πŸš€ Deployed URL

You can access the live platform here:
Deployed Url

πŸŽ₯ Video Demo

For a quick walkthrough of the platform, check out the video demo:
Video Demo

πŸ” Login Credentials

To test the platform, use the following credentials:

  • Username: 1313131313
  • One-Time Password (OTP): 123456

πŸš€ Overview

Artha is an advanced AI-powered financial advisory platform that goes beyond generic advice. Built with cutting-edge technology including Google's Genkit AI framework, Firebase, and a sophisticated multi-agent system, Artha provides personalized financial guidance that understands cultural nuances and individual circumstances.

✨ Key Features

  • 🧠 Multi-Agent AI System: Leveraging Google Genkit for intelligent financial analysis
  • πŸ“Š Comprehensive Dashboard: Real-time financial overview with interactive charts
  • πŸ’¬ Intelligent Chat Interface: AI-powered financial conversations with thinking animations
  • πŸ” Anomaly Detection: Smart alerts for unusual financial patterns
  • πŸ“ˆ Portfolio Management: Track investments, stocks, and financial goals
  • 🎯 Personalized Recommendations: Culturally-aware financial advice
  • πŸ“± Responsive Design: Beautiful UI with Radix UI components and Tailwind CSS
  • πŸ” Secure Authentication: Firebase Auth integration
  • πŸ“‹ Financial Reports: Generate comprehensive financial summaries

πŸ—οΈ Architecture

Tech Stack

Frontend:

  • Next.js 15.3.3 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Radix UI - Accessible component primitives
  • Framer Motion - Smooth animations
  • Chart.js & Recharts - Data visualization

Backend & AI:

  • Google Genkit - AI framework for intelligent flows
  • Firebase - Authentication, database, and hosting
  • Google Generative AI - LLM integration
  • Model Context Protocol (MCP) - AI agent communication

UI/UX:

  • Lucide React - Beautiful icons
  • React Hook Form - Form management
  • React Markdown - Rich text rendering
  • HTML2Canvas & jsPDF - Report generation

πŸ› οΈ Installation & Setup

Prerequisites

  • Node.js (v18 or later)
  • npm or yarn or pnpm
  • Firebase CLI (optional, for deployment)
  • Git

1. Clone the Repository

git clone https://github.com/SiddharthJiyani/project-artha-frontend.git
cd project-artha-frontend

2. Install Dependencies

npm install
# or
yarn install
# or
pnpm install

3. Environment Configuration

Create a .env.local file in the root directory:

# Firebase Configuration
NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id

# Google AI Configuration
GOOGLE_AI_API_KEY=your_google_ai_api_key

# Additional API Keys
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_maps_api_key

4. Firebase Setup

  1. Create a new Firebase project at Firebase Console
  2. Enable Authentication, Firestore, and Storage
  3. Add your Firebase configuration to .env.local

πŸš€ Development

Start Development Server

npm run dev

Visit http://localhost:3000 to see your application.

Available Scripts

# Development with Turbopack
npm run dev

# Production build
npm run build

# Start production server
npm start

# Run linting
npm run lint

# Type checking
npm run typecheck

# Start Genkit AI development
npm run genkit:dev

# Watch mode for Genkit
npm run genkit:watch

🎨 Design System

Color Palette

  • Primary: Deep Indigo-Violet (#5A4FCF) - Wisdom and trust
  • Secondary: Vibrant Teal-Aqua (#00CBA8) - Clarity and growth
  • Neutral: Soft warm grays (#F5F7FA, #E0E4EB, #6B7280)
  • Highlight: Subtle Goldenrod (#FFD700) - Cultural richness

Typography

  • Font Family: Inter (Grotesque sans-serif)
  • Design: Modern, clean, and highly readable

πŸ“± Features Breakdown

🏠 Landing Page

  • Animated "Trail of Light" explaining Artha's concepts
  • Feature showcase with tier-based agent system
  • Cultural awareness highlights

πŸ“Š Dashboard

  • Net worth overview with sparkline charts
  • Monthly income tracking
  • Credit score monitoring
  • Interactive financial trend charts

πŸ’¬ AI Chat Interface

  • Multi-agent thinking process visualization
  • Context-aware financial conversations
  • Real-time AI responses with loading states

πŸ“ˆ Portfolio Management

  • Investment tracking
  • Stock analysis
  • Goal setting and monitoring

πŸ“‹ Reports & Analytics

  • AI-generated financial summaries
  • Anomaly detection alerts
  • Exportable reports (PDF format)

πŸ”§ Configuration

Tailwind CSS

The project uses a custom Tailwind configuration with:

  • Custom color scheme
  • Animation utilities
  • Component-specific styling

Next.js Configuration

  • App Router architecture
  • TypeScript strict mode
  • Optimized build configuration

πŸš€ Deployment

Vercel (Recommended)

  1. Set Environment Variables in Vercel Dashboard:

    NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key
    NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
    NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
    NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
    NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
    NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id
    NEXT_PUBLIC_FIREBASE_DATABASE_URL=https://your_project-default-rtdb.firebaseio.com/
    GOOGLE_AI_API_KEY=your_google_ai_api_key
  2. Deploy: Push to main branch for automatic deployment

  3. Verify: Check that all routes work (not just /)

Note: See DEPLOYMENT_FIX.md for detailed troubleshooting if you encounter build issues.

Firebase Hosting

npm run build
firebase deploy

Docker

docker build -t artha-frontend .
docker run -p 3000:3000 artha-frontend

πŸ§ͺ Testing

# Run all tests
npm test

# Run with coverage
npm run test:coverage

# E2E tests
npm run test:e2e

πŸ“‚ Project Structure

src/
β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”œβ”€β”€ (main)/            # Main application routes
β”‚   β”‚   β”œβ”€β”€ dashboard/     # Financial dashboard
β”‚   β”‚   β”œβ”€β”€ chat/          # AI chat interface
β”‚   β”‚   β”œβ”€β”€ portfolio/     # Investment portfolio
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ api/               # API routes
β”‚   └── globals.css        # Global styles
β”œβ”€β”€ components/            # Reusable UI components
β”‚   β”œβ”€β”€ ui/               # Base UI components (Radix)
β”‚   └── ...
β”œβ”€β”€ lib/                  # Utility libraries
β”œβ”€β”€ hooks/                # Custom React hooks
β”œβ”€β”€ types/                # TypeScript type definitions
β”œβ”€β”€ ai/                   # Genkit AI flows and configurations
└── contexts/             # React context providers

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Google Genkit for AI framework
  • Radix UI for accessible components
  • Tailwind CSS for styling system
  • Next.js team for the amazing framework

Artha - Where AI meets personal finance, and wisdom meets wealth.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages