How ashishjamarkattel/animator works
Animator turns an idea into a narrated whiteboard video through storyboard, scene imagery, speech, region-to-beat planning, and local animation/rendering. It also accepts user-supplied images, audio, and region plans through the CLI or Python API. The HTTP service adds authenticated, credit-based generation jobs backed by Supabase. The README and source index establish the major workflows; unsampled API job internals and some implementation details are represented only where their references support a relationship.
Main entry points: pipeline.py Prompt pipeline · engine.py Animation engine · generate.py Generate route · supabase.py Supabase access
Components 27
AI content creation
- Prompt pipeline
animator/gemini/pipeline.py - Storyboard
animator/gemini/storyboard.py - Scene images
animator/gemini/images.py - Beat narration
animator/gemini/narration.py - Beat timing
animator/gemini/beat_timing.py - Region detection
animator/gemini/detect_regions.py - Gemini client
animator/gemini/client.py - Prompt templates
animator/prompts/__init__.py
Animation and rendering
- Region plans
animator/regions.py - Video renderer
animator/render.py - Animation engine
animator/engine.py - Text detection
animator/craft_detector.py - Component ordering
animator/component_ordering.py - Fill painting
animator/fill_painters.py - Stroke tracing
animator/skeleton_paths.py - Video encoding
animator/video_encoding.py
User interfaces
- Command line
animator/cli.py
Web service and accounts
- HTTP application
animator/api/app.py - Generate route
animator/api/routers/generate.py - User authentication
animator/api/auth.py - Generation jobs
animator/api/jobs.py - Service settings
animator/api/settings.py - Supabase access
animator/api/supabase.py
Other components
- User
- Supabase
- Google Gemini
- FFmpeg
Connections 39
- User → Command line: runs
README.md - Command line → Prompt pipeline: starts prompt flow
animator/cli.py - Command line → Region detection: requests detection
animator/cli.py - Command line → Video renderer: renders scenes
animator/cli.py - Prompt pipeline → Storyboard: generates scenes
animator/gemini/pipeline.py - Prompt pipeline → Scene images: requests images
animator/gemini/pipeline.py - Prompt pipeline → Beat narration: requests speech
animator/gemini/pipeline.py - Prompt pipeline → Region detection: plans regions
animator/gemini/pipeline.py - Prompt pipeline → Video renderer: renders video
animator/gemini/pipeline.py - Beat narration → Beat timing: measures beats
animator/gemini/narration.py - Storyboard → Gemini client: calls model
animator/gemini/storyboard.py - Scene images → Gemini client: calls model
animator/gemini/images.py - Beat narration → Gemini client: calls model
animator/gemini/narration.py - Region detection → Gemini client: calls model
animator/gemini/detect_regions.py - Gemini client → Google Gemini: sends requests
- Storyboard → Prompt templates: loads template
animator/gemini/storyboard.py - Scene images → Prompt templates: loads template
animator/gemini/images.py - Region detection → Prompt templates: loads template
animator/gemini/detect_regions.py - Prompt pipeline → Region plans: sets beat windows
animator/gemini/pipeline.py - Video renderer → Region plans: uses timing plans
animator/render.py - Video renderer → Animation engine: renders scenes
animator/render.py - Animation engine → Text detection: detects text
animator/engine.py - Animation engine → Component ordering: orders components
animator/engine.py - Animation engine → Fill painting: paints fills
animator/engine.py - Animation engine → Stroke tracing: traces strokes
animator/engine.py - Animation engine → Video encoding: encodes frames
animator/engine.py - Video encoding → FFmpeg: encodes video
animator/video_encoding.py - User → HTTP application: sends requests
README.md - HTTP application → Generate route: registers route
animator/api/app.py - Generate route → User authentication: authenticates user
animator/api/routers/generate.py - User authentication → Supabase access: looks up user
animator/api/auth.py - Generate route → Supabase access: claims and charges
animator/api/routers/generate.py - Generate route → Generation jobs: schedules job
animator/api/routers/generate.py - Generate route → Service settings: reads pricing
animator/api/routers/generate.py - HTTP application → Service settings: configures app
animator/api/app.py - Supabase access → Service settings: reads credentials
animator/api/supabase.py - Supabase access → Supabase: reads and updates
animator/api/supabase.py - Generation jobs → Supabase access: updates job data
animator/api/jobs.py - Generation jobs → Prompt pipeline: runs generation
animator/api/jobs.py