How soluraai/wowclip works
WowClip turns a YouTube video into ranked short-form clip candidates through a two-stage AI pipeline, with a web interface for starting runs, watching progress, reviewing the gate verdict, and exploring clips. Stage 1 validates and analyzes the video, then saves artifacts; Stage 2 builds a finder payload, discovers moments, refines cuts, and curates results. The graph follows documented stage relationships and indexed imports; several Python modules were not excerpted, so their internal calls are not inferred.
Main entry points: run.py Stage 1 runner · clips.py Stage 2 runner · page.tsx Run interface · llm_client.py LLM client
Components 27
Web experience
- Run interface
app/page.tsx - Clip results
app/components/ClipResults.tsx - Clip player
app/components/ClipCard.tsx - UI data types
app/lib/types.ts
Web API
- Validation API
app/api/validate/route.ts - Gate API
app/api/process/route.ts - History API
app/api/clips/route.ts - Event recording
app/lib/run-events.ts - YouTube URL parser
app/lib/youtube.ts
Video analysis
- Stage 1 runner
pipeline/run.py - Video validation
pipeline/modules/step_01_validate.py - Captions and heatmap
pipeline/modules/step_02_captions.py - Audience comments
pipeline/modules/step_03_comments.py - Transcript analytics
pipeline/modules/step_04_analytics.py - Gate verdict
pipeline/modules/step_05_bouncer.py - Transcript processing
pipeline/transcript.py
Clip generation
- Stage 2 runner
pipeline/clips.py - Finder payload
pipeline/modules/step_06_payload.py - Category finders
pipeline/modules/step_07_finders.py - Clip refinement
pipeline/modules/step_08_refiner.py - Clip curation
pipeline/modules/step_09_curator.py
Pipeline services
- Run artifacts
pipeline/store.py - Pipeline events
pipeline/events.py - LLM client
pipeline/modules/llm_client.py
Other components
- Video editor
- YouTube
- LLM provider
Connections 36
- Video editor → Run interface: submits video
README.md - Run interface → Validation API: validates link
README.md - Validation API → YouTube URL parser: parses link
app/api/validate/route.ts - Run interface → Gate API: starts run
README.md - Gate API → YouTube URL parser: revalidates link
app/api/process/route.ts - Gate API → Stage 1 runner: spawns stage 1
README.md - Gate API → Event recording: records events
app/api/process/route.ts - Run interface → History API: loads saved runs
README.md - History API → Run artifacts: reads artifacts
app/api/clips/route.ts - History API → Event recording: reads events
app/api/clips/route.ts - Run interface → Clip results: renders results
app/page.tsx - Clip results → Clip player: renders clips
app/components/ClipResults.tsx - Clip player → YouTube: plays source video
app/components/ClipCard.tsx - Stage 1 runner → Video validation: runs validation
pipeline/run.py - Stage 1 runner → Captions and heatmap: runs caption stage
README.md - Stage 1 runner → Audience comments: runs comment stage
README.md - Stage 1 runner → Transcript analytics: runs analytics
README.md - Stage 1 runner → Gate verdict: runs gate
pipeline/run.py - Stage 1 runner → Transcript processing: processes transcript
pipeline/run.py - Stage 1 runner → Run artifacts: saves run artifacts
pipeline/run.py - Stage 1 runner → Pipeline events: emits progress
pipeline/run.py - Captions and heatmap → YouTube: fetches captions
README.md - Audience comments → YouTube: fetches comments
pipeline/modules/step_03_comments.py - Audience comments → LLM client: triages comments
pipeline/modules/step_03_comments.py - Gate verdict → LLM client: requests verdict
- Stage 1 runner → Stage 2 runner: hands off for stage 2
- Stage 2 runner → Run artifacts: reads saved inputs
pipeline/clips.py - Stage 2 runner → Finder payload: builds payload
README.md - Stage 2 runner → Category finders: runs finders
README.md - Stage 2 runner → Clip refinement: refines candidates
README.md - Stage 2 runner → Clip curation: curates results
README.md - Category finders → LLM client: requests candidates
- Clip refinement → LLM client: requests cut refinement
- Stage 2 runner → Run artifacts: saves clip artifacts
pipeline/clips.py - Stage 2 runner → Pipeline events: emits progress
README.md - LLM client → LLM provider: calls model