# nithin0809/hackathon architecture

> Architecture diagram of the GitHub repository nithin0809/hackathon, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nithin0809/hackathon
- Repository: https://github.com/nithin0809/hackathon

## Overview

ReelForge AI turns a creator’s brief into a short-form video production kit, then lets them review, reuse, and export it. The main workflow runs from the Studio form through `/api/generate` to a generated or demo kit, which the interface normalizes and presents as hooks, script, storyboard, captions, and production notes. History and theme preferences are browser-side capabilities. Two backend implementations are present: a Vercel function and an Express server. The excerpts show their behavior, but not deployment routing between them.

Main entry points: [`reelforge-ai/src/main.jsx`](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx) (Kit Results), [`reelforge-ai/server/index.js`](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/server/index.js) (Express Generator), [`api/generate.js`](https://github.com/nithin0809/hackathon/blob/main/api/generate.js) (Vercel Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio"]
  node_studio_ui["Studio Brief<br/>[main.jsx]"]
end

subgraph group_generation["Kit Generation"]
  node_generate_route["Vercel Generator<br/>[generate.js]"]
  node_express_server["Express Generator<br/>[index.js]"]
  node_gemini{{"Gemini AI"}}
  node_openai{{"OpenAI"}}
  node_health["Health Check<br/>[health.js]"]
end

subgraph group_results["Kit Review"]
  node_kit_view["Kit Results<br/>[main.jsx]"]
  node_hooks["Hook Selection<br/>[main.jsx]"]
  node_script["Script<br/>[main.jsx]"]
  node_storyboard["Storyboard<br/>[main.jsx]"]
  node_captions["Captions &amp; Tags<br/>[main.jsx]"]
  node_production_notes["Production Notes<br/>[main.jsx]"]
end

subgraph group_preferences["Personal Workspace"]
  node_history["Kit History<br/>[main.jsx]"]
  node_local_storage[("Browser Storage")]
  node_theme["Theme Preference<br/>[main.jsx]"]
end

node_creator(("Creator"))

node_creator -->|"submits brief"| node_studio_ui
node_studio_ui -->|"posts brief"| node_generate_route
node_generate_route -->|"generates kit"| node_gemini
node_express_server -->|"generates kit"| node_gemini
node_express_server -->|"generates kit"| node_openai
node_generate_route -->|"returns kit"| node_kit_view
node_express_server -.->|"returns kit"| node_kit_view
node_kit_view -->|"presents hooks"| node_hooks
node_kit_view -->|"presents script"| node_script
node_kit_view -->|"presents shots"| node_storyboard
node_kit_view -->|"presents captions"| node_captions
node_kit_view -->|"presents notes"| node_production_notes
node_creator -->|"searches kits"| node_history
node_history -->|"stores kits"| node_local_storage
node_creator -->|"chooses theme"| node_theme
node_theme -->|"persists preference"| node_local_storage

click node_studio_ui "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_generate_route "https://github.com/nithin0809/hackathon/blob/main/api/generate.js"
click node_express_server "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/server/index.js"
click node_kit_view "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_hooks "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_script "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_storyboard "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_captions "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_production_notes "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_history "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_theme "https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx"
click node_health "https://github.com/nithin0809/hackathon/blob/main/api/health.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_studio_ui toneBlue
class node_generate_route,node_express_server,node_gemini,node_openai,node_health toneAmber
class node_kit_view,node_hooks,node_script,node_storyboard,node_captions,node_production_notes toneMint
class node_history,node_local_storage,node_theme toneRose
class node_creator toneIndigo
```

## Components

### Studio

- [Studio Brief](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`

### Kit Generation

- [Vercel Generator](https://github.com/nithin0809/hackathon/blob/main/api/generate.js): `api/generate.js`
- [Express Generator](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/server/index.js): `reelforge-ai/server/index.js`
- **Gemini AI**
- **OpenAI**
- [Health Check](https://github.com/nithin0809/hackathon/blob/main/api/health.js): `api/health.js`

### Kit Review

- [Kit Results](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`
- [Hook Selection](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`
- [Script](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`
- [Storyboard](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`
- [Captions & Tags](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`
- [Production Notes](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`

### Personal Workspace

- [Kit History](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`
- **Browser Storage**
- [Theme Preference](https://github.com/nithin0809/hackathon/blob/main/reelforge-ai/src/main.jsx): `reelforge-ai/src/main.jsx`

### Other components

- **Creator**

## Connections

- Creator → Studio Brief: submits brief (evidence: `README.md`)
- Studio Brief → Vercel Generator: posts brief (evidence: `reelforge-ai/src/main.jsx`)
- Vercel Generator → Gemini AI: generates kit (evidence: `api/generate.js`)
- Express Generator → Gemini AI: generates kit (evidence: `reelforge-ai/server/index.js`)
- Express Generator → OpenAI: generates kit (evidence: `reelforge-ai/server/index.js`)
- Vercel Generator → Kit Results: returns kit (evidence: `api/generate.js`)
- Express Generator → Kit Results: returns kit
- Kit Results → Hook Selection: presents hooks (evidence: `reelforge-ai/src/main.jsx`)
- Kit Results → Script: presents script (evidence: `README.md`)
- Kit Results → Storyboard: presents shots (evidence: `README.md`)
- Kit Results → Captions & Tags: presents captions (evidence: `README.md`)
- Kit Results → Production Notes: presents notes (evidence: `README.md`)
- Creator → Kit History: searches kits (evidence: `README.md`)
- Kit History → Browser Storage: stores kits (evidence: `README.md`)
- Creator → Theme Preference: chooses theme (evidence: `README.md`)
- Theme Preference → Browser Storage: persists preference (evidence: `README.md`)
