How abhishek10600/ai-video-generation-application works
This is a text-to-video generation web application. A user configures a prompt and generation options in the frontend, submits them through its API client, and the backend validates the request before asking Higgsfield to generate a video; the returned URL is shown for playback or download. The graph covers the principal flow and the frontend rendering/API and backend routing/validation layers. The frontend-to-backend HTTP connection is dashed because the API base URL configuration is not shown.
Main entry points: VideoGenerator.tsx Generator UI · video.controller.ts Video controller · higgsfield.video.service.ts Higgsfield service · video.api.ts Video API client
Components 14
Frontend
- App shell
frontend/src/App.tsx - Generator UI
frontend/src/components/VideoGenerator.tsx - Request types
frontend/src/types/video.type.ts - Video API client
frontend/src/api/video.api.ts
Backend
- Server entry
backend/src/main.ts - Express app
backend/src/app.ts - Video route
backend/src/routes/video.route.ts - Video controller
backend/src/controllers/video.controller.ts - Input validator
backend/src/validators/video.validator.ts
Video generation
- Generation types
backend/src/types/video.type.ts - Higgsfield service
backend/src/services/higgsfield.video.service.ts - Generated video
External services
- Higgsfield API
Other components
- User
Connections 16
- User → Generator UI: configures
frontend/src/components/VideoGenerator.tsx - App shell → Generator UI: renders
frontend/src/App.tsx - Generator UI → Request types: uses types
frontend/src/components/VideoGenerator.tsx - Generator UI → Video API client: submits request
frontend/src/components/VideoGenerator.tsx - Video API client → Request types: uses types
frontend/src/api/video.api.ts - Video API client → Video route: sends HTTP request
- Server entry → Express app: starts
backend/src/main.ts - Express app → Video route: mounts
backend/src/app.ts - Video route → Video controller: dispatches
backend/src/routes/video.route.ts - Video controller → Input validator: validates with
backend/src/controllers/video.controller.ts - Video controller → Higgsfield service: requests generation
backend/src/controllers/video.controller.ts - Higgsfield service → Generation types: uses types
backend/src/services/higgsfield.video.service.ts - Higgsfield service → Higgsfield API: submits generation
backend/src/services/higgsfield.video.service.ts - Higgsfield service → Generated video: returns URL
backend/src/services/higgsfield.video.service.ts - Video controller → Generator UI: returns response
- Generator UI → Generated video: previews or downloads
frontend/src/components/VideoGenerator.tsx