How devyanshyadav/dev-imgkit works
Main System Components
a) Client-Side Layer:
• React/Vite Frontend Application
• Component Structure (Auth, Dashboard, Dev Components)
• Client-side State Management (Zustand)
b) Authentication Layer:
• AWS Cognito Integration
• Auth Flows (Login, Signup, Password Reset)
c) Storage & Processing Layer:
• AWS S3 Bucket
• CloudFront CDN
• Lambda Image Transformation Pipeline
d) AI Integration Layer:
• Google GEMINI API Connection
• AI Transformation Processing
Component Relationships
Frontend → Authentication:
• Auth flow between React components and Cognito
• Protected routes and session management
Frontend → Storage:
• Direct S3 upload paths
• CloudFront distribution for delivery
• File transformation requests
Frontend → AI:
• GEMINI API integration for AI transformations
• Prompt processing flow
Specific Implementation Details
• Blue: Frontend Components
• Green: AWS Services
• Purple: AI Services
• Yellow: Security/Auth Components
• Red lines: Protected/authenticated routes
[React Frontend Components]
• ↓
[Authentication Layer]
• ↓
[Storage & Processing]
• ↓
[AI Services]
Important Elements
Frontend Layer:
• Auth Components (/src/components/auth-cmp)
• Dashboard Components (/src/components/dashboard-cmp)
• Dev Components (/src/components/dev-components)
• Global Components (/src/components/global-cmp)
AWS Services Layer:
• Cognito User Pools
• S3 Bucket Configuration
• CloudFront Distribution
• Lambda Functions for Transformations
State & Data Flow:
• Zustand Store Integration
• File Upload/Download Paths
• Transformation Pipeline Flow
Technical Details to Highlight
Specific connections for:
• S3 Actions (from s3-actions.ts)
• File Type Handling (from file-type.ts)
• LLM Integration (from llm-prompt.ts)
• Protected Routes (from protected-route.tsx)
This system design should emphasize the scalable nature of the application and how it leverages AWS services for robust image/file management while incorporating modern AI capabilities through the GEMINI API.