How piyush-eon/ai-finance-platform works
Main System Components
a) Frontend Layer:
• Next.js Application (app directory structure)
• Authentication Layer (Clerk integration)
• Main Application Features:
• Dashboard
• Account Management
• Transaction Management
• Budget Tracking
b) Backend Services:
• API Routes (/app/api)
• Background Processing (Inngest)
• Security Layer (ArcJet)
• Email Service (Resend)
• AI Integration (Gemini API)
c) Database Layer:
• Supabase Database
• Prisma ORM Layer
Component Relationships
a) Client-Side Flow:
• Authentication flow through Clerk
• Protected routes under (main) directory
• Public routes under (auth) directory
b) Data Flow:
• API routes handling data operations
• Prisma interactions with the database
• Background job processing through Inngest
• Email notifications via Resend
Specific Implementation Details
Architectural patterns:
a) Next.js App Router Structure:
• Routes by (auth) and (main)
• API routes separation
• Server and client components
b) Feature Modules:
• Account management
• Transaction processing
• Budget tracking
• Dashboard analytics
Key Technical Elements to Highlight
• Prisma Schema and Migrations
• Authentication flow with Clerk
• Background job processing with Inngest
• Email templating system
• AI integration points
• Security middleware
[Client Layer]
• ↓
[Authentication/Security Layer]
• ↓
[Application Layer]
• ↓
[Service Layer]
• ↓
[Database Layer]