How openclaw-easy/viralmint works
ViralMint is a local-first creator video pipeline: users discover trends or bring in source footage, analyze and clip it or generate/design a video, then refine and organize outputs. The browser app talks to a FastAPI backend; agents and task runners coordinate work, with local media services, provider integrations, and SQLite-backed state underneath. The README documents major capabilities that were not sampled in source, so those links cite the README; unsampled implementation details are not inferred.
Main entry points: task_runner.py Task runner · App.jsx Web app · planner.py Planner agent · generator.py Video generation
Components 27
Creator experience
- Web app
frontend/src/App.jsx - Chat interface
frontend/src/pages/Chat.jsx - Clip Studio
frontend/src/pages/ClipStudio.jsx - Editing tools
frontend/src/pages/Tools.jsx - Media library
frontend/src/pages/Library.jsx - Messaging
frontend/src/pages/Messaging.jsx
Workflow orchestration
- FastAPI routes
backend/main.py - Planner agent
backend/agents/planner.py - Task runner
backend/core/task_runner.py - Job tracking
backend/agents/job_helper.py - Live updates
backend/core/ws_manager.py
Media production
- Clip extraction
backend/services/clip_extractor.py - Video generation
backend/agents/generator.py - Caption rendering
backend/services/caption_service.py - Media processing
backend/services/ffmpeg_service.py - Motion graphics
backend/services/studio_service.py - Tool runners
backend/core/tool_runners.py
Discovery and analysis
- Trend scouting
backend/agents/scout.py - Video analysis
backend/agents/analyzer.py - Source downloader
backend/agents/downloader.py
State and integrations
- Library index
backend/services/library_index.py - SQLite data
backend/database.py - AI providers
backend/core/ai_provider.py - Channel adapters
backend/messaging/manager.py
Other components
- Creator
- Video platforms
- Local media tools
Connections 32
- Creator → Web app: uses
README.md - Web app → Chat interface: routes to
frontend/src/App.jsx - Web app → Clip Studio: routes to
frontend/src/App.jsx - Web app → Editing tools: routes to
frontend/src/App.jsx - Web app → Media library: routes to
frontend/src/App.jsx - Web app → Messaging: routes to
frontend/src/App.jsx - Chat interface → FastAPI routes: requests work
- FastAPI routes → Planner agent: dispatches chat
backend/main.py - Planner agent → Task runner: runs tasks
backend/agents/planner.py - Task runner → Trend scouting: dispatches
backend/core/task_runner.py - Task runner → Source downloader: dispatches
backend/core/task_runner.py - Task runner → Video analysis: dispatches
backend/core/task_runner.py - Clip Studio → Clip extraction: requests clips
README.md - Source downloader → Video platforms: downloads from
README.md - Trend scouting → Video platforms: discovers trends
README.md - Video analysis → Local media tools: transcribes with
README.md - Task runner → Video generation: dispatches
backend/core/task_runner.py - Video generation → Caption rendering: renders captions
backend/agents/generator.py - Video generation → Media processing: processes video
backend/agents/generator.py - Motion graphics → Local media tools: renders locally
README.md - Editing tools → Tool runners: runs tools
README.md - Tool runners → Media processing: uses processing
backend/core/tool_runners.py - Task runner → Job tracking: updates jobs
backend/core/task_runner.py - Job tracking → SQLite data: writes status
backend/agents/job_helper.py - Task runner → Live updates: sends progress
backend/core/task_runner.py - Live updates → Chat interface: streams updates
- Media library → Library index: loads assets
- Library index → SQLite data: indexes state
- Planner agent → AI providers: requests AI
backend/agents/planner.py - Messaging → Channel adapters: commands planner
README.md - Channel adapters → Planner agent: forwards commands
- Channel adapters → Creator: sends alerts
README.md