How joshik27/automation works
Main Components
a) Client Layer:
• Next.js Frontend (React)
• Key frontend features:
• Visual Workflow Builder (using XY Flow)
• Authentication UI (NextAuth.js)
• Payment Integration (Stripe)
• Redux Store for state management
b) API Layer:
• FastAPI Backend
• NextAuth API Routes
• Stripe API Integration
c) Processing Layer:
• Celery Workers
• Redis Queue
d) Data Layer:
• PostgreSQL Database
• Redis Cache
[Client Layer]
• ↓ ↑
[API Gateway Layer]
• ↓ ↑
[Processing Layer]
• ↓ ↑
[Data Layer]
Component Details
Frontend Components (Top):
• Core Features Module (workflow builder, history)
• User Module (profile, authentication)
• Payment Module (checkout, success/cancel flows)
• State Management (Redux store)
API Gateway (Middle-Top):
• FastAPI endpoints:
• User Management (/api/endpoints/users)
• Workflow Management (/api/endpoints/workflows)
• Webhook Handling (/api/endpoints/webhooks)
• Core Features (/api/endpoints/corefeatures)
Processing Layer (Middle-Bottom):
• Celery Workers for:
• AI Tasks (captions, thumbnails, summaries)
• Face Swap Operations
• Background Processing
Data Layer (Bottom):
• PostgreSQL Tables:
• Users
• Workflows
• Task Status
• Redis:
• Session Storage
• Task Queue
• Caching
Additional Elements
Supporting components:
• Load balancers (if applicable)
• CDN for static assets
• External AI service connections
• Stripe payment flow