How sakthi-gyan/story-book works
Shot Image Pipeline turns a story or shot-breakdown PDF into approved visual deliverables through a five-stage workflow: planning, references, storyboard, final renders, and library export. The browser app guides uploads, review, approvals, project history, and cost visibility; an API coordinates generation and persists project state. Agent and walkthrough modes are additional ways to use the workflow. The README establishes the product stages and capabilities; source excerpts and the index support only some internal call paths, so unsampled links are omitted.
Main entry points: store.ts Project state · App.tsx Workflow app · routes.ts HTTP routes · api.ts API client
Components 33
Creator experience
- Workflow app
client/src/App.tsx - API client
client/src/api.ts - Project steps
client/src/steps - Review interface
client/src/components/ReviewDrawer.tsx - Guide mode
client/src/components/OnboardingGuide.tsx - Agent mode
client/src/pages/AgentLiveTerminal.tsx - Project derivations
client/src/derive.ts - Project hooks
client/src/hooks.tsx - Icon system
client/src/icons/DualToneIcon.tsx - Icon registry
client/src/icons/register.ts - Motion effects
client/src/components/Motion.tsx - Pipeline stepper
client/src/components/PipelineStepper.tsx - Step header
client/src/components/StepHeader.tsx - Visual theme
client/src/theme.ts
Visual workflow
- PDF planning
server/src/pipeline/parsePlan.ts - Reference sheets
server/src/pipeline/references.ts - Storyboard panels
server/src/pipeline/storyboard.ts - Shot generation
server/src/pipeline/shots.ts - AI image review
server/src/pipeline/review.ts - Final rendering
server/src/pipeline/render.ts - Prompt design
server/src/prompts.ts
AI and state
- HTTP routes
server/src/routes.ts - Project schema
server/src/schema.ts - Model gateway
server/src/openai.ts - Usage tracking
server/src/usage.ts - Project state
server/src/store.ts - Storage adapters
server/src/storage/index.ts
Delivery
- Project library
client/src/steps/LibraryStep.tsx - Export assets
server/src/export/pack.ts - Agent package
server/src/export/agentPack.ts - Agent CLI
agent/cli.mjs
Other components
- Creator
- OpenAI
Connections 46
- Creator → Workflow app: uses
README.md - Workflow app → API client: requests
client/src/App.tsx - Workflow app → Project steps: shows steps
client/src/App.tsx - Workflow app → Pipeline stepper: shows progress
client/src/App.tsx - Workflow app → Guide mode: offers walkthrough
client/src/App.tsx - Workflow app → Project hooks: uses
client/src/App.tsx - Review interface → API client: sends review actions
client/src/components/ReviewDrawer.tsx - Review interface → Project derivations: derives review state
client/src/components/ReviewDrawer.tsx - Project steps → API client: requests workflow
client/src/steps/ReferencesStep.tsx - Project steps → Review interface: opens review
- Project hooks → API client: loads projects
client/src/hooks.tsx - Project hooks → Project derivations: derives status
client/src/hooks.tsx - Pipeline stepper → Project derivations: derives progress
client/src/components/PipelineStepper.tsx - Icon system → Icon registry: uses icons
client/src/icons/DualToneIcon.tsx - Workflow app → Visual theme: applies styling
client/src/main.tsx - API client → HTTP routes: calls API
client/src/api.ts - HTTP routes → PDF planning: starts parsing
server/src/routes.ts - HTTP routes → Reference sheets: starts generation
server/src/routes.ts - HTTP routes → Shot generation: dispatches shot actions
server/src/routes.ts - HTTP routes → Final rendering: dispatches renders
server/src/routes.ts - HTTP routes → Storyboard panels: dispatches boards
server/src/routes.ts - HTTP routes → Project state: reads and saves
server/src/routes.ts - PDF planning → Model gateway: requests model output
server/src/pipeline/parsePlan.ts - PDF planning → Prompt design: uses prompts
server/src/pipeline/parsePlan.ts - Reference sheets → Model gateway: requests images
server/src/pipeline/references.ts - Reference sheets → Prompt design: uses prompts
server/src/pipeline/references.ts - Shot generation → Model gateway: requests images
server/src/pipeline/shots.ts - Shot generation → Prompt design: uses prompts
server/src/pipeline/shots.ts - AI image review → Model gateway: requests review
server/src/pipeline/review.ts - AI image review → Prompt design: uses prompts
server/src/pipeline/review.ts - Storyboard panels → Shot generation: delegates generation
- Final rendering → Shot generation: delegates generation
- Model gateway → OpenAI: calls model service
server/src/openai.ts - Model gateway → Usage tracking: records tokens
server/src/openai.ts - PDF planning → Project state: updates project
server/src/pipeline/parsePlan.ts - Reference sheets → Project state: updates project
server/src/pipeline/references.ts - Shot generation → Project state: updates project
server/src/pipeline/shots.ts - AI image review → Project state: updates project
server/src/pipeline/review.ts - Project state → Project schema: validates state
server/src/store.ts - Project state → Storage adapters: persists data
server/src/store.ts - Project library → API client: loads project assets
- Project library → Export assets: downloads bundle
README.md - Export assets → Project state: packages project data
- Agent mode → API client: guides workflow
client/src/pages/AgentLiveTerminal.tsx - Agent CLI → Agent package: uses package
- Creator → Agent CLI: runs agent
README.md