How osk97/wowclip works
WowClip is a YouTube-to-short-clips product: a user submits a video, the app validates it, runs an ingestion and feasibility gate, then finds and refines clips for review. The repository also contains a standalone wowClip CLI/reporting engine alongside the documented web pipeline. The graph preserves both branches and the principal transcript, audience-signal, model, and refinement stages. Some wiring is based on README architecture statements or SOURCE INDEX references; unsampled relationships are omitted where those sources do not establish them.
Main entry points: run.py Stage one runner · cli.py Standalone CLI · page.tsx Workflow UI · clips.py Stage two runner
Components 30
Web experience
- Workflow UI
app/page.tsx - URL validation
app/api/validate/route.ts - Ingestion endpoint
app/api/process/route.ts - Clip endpoint
app/api/clips/route.ts - Clip results
app/components/ClipResults.tsx
Ingestion and gate
- Stage one runner
pipeline/run.py - Transcript retrieval
pipeline/transcript.py - Video fetching
pipeline/ytdlp_fetch.py - Comment signals
pipeline/comments.py - Replay heatmap
pipeline/heatmap.py - Audience analytics
pipeline/analytics.py - Feasibility gate
pipeline/bouncer.py
Clip discovery
- Stage two runner
pipeline/clips.py - Engine bridge
pipeline/bridge.py - Prompt payload
final_transcript/build_payload.py - Category finders
final_transcript/find_clips.py - Clip refinement
final_transcript/refine_clips.py
Standalone engine
- Standalone CLI
wowClip/wowclip/cli.py - Source fetch
wowClip/wowclip/fetch.py - Word timing
wowClip/wowclip/words.py - Clip finder
wowClip/wowclip/finder.py - Prompt assembly
wowClip/wowclip/payload.py - HTML report
wowClip/wowclip/report_html.py
Shared services
- YouTube helpers
app/lib/youtube.ts - Pipeline events
pipeline/events.py - Run storage
pipeline/store.py - Model client
final_transcript/llm.py
Other components
- Video creator
- YouTube services
- OpenRouter
Connections 32
- Video creator → Workflow UI: submits video
- Workflow UI → URL validation: validates URL
- URL validation → YouTube helpers: checks format
app/api/validate/route.ts - URL validation → YouTube services: looks up metadata
- Workflow UI → Ingestion endpoint: starts gate
- Ingestion endpoint → Stage one runner: runs stage one
- Workflow UI → Clip endpoint: requests clips
- Clip endpoint → Stage two runner: runs stage two
- Clip endpoint → Clip results: streams results
- Stage one runner → Transcript retrieval: loads transcript
pipeline/run.py - Stage one runner → Video fetching: fetches source
pipeline/run.py - Stage one runner → Comment signals: collects comments
pipeline/run.py - Stage one runner → Replay heatmap: loads replay data
pipeline/run.py - Stage one runner → Audience analytics: uses analytics
pipeline/run.py - Stage one runner → Feasibility gate: evaluates feasibility
pipeline/run.py - Stage one runner → Pipeline events: emits progress
pipeline/run.py - Stage one runner → Run storage: persists run data
pipeline/run.py - Feasibility gate → Pipeline events: publishes events
pipeline/bouncer.py - Feasibility gate → OpenRouter: requests verdict
- Stage two runner → Engine bridge: invokes engine
pipeline/clips.py - Stage two runner → Pipeline events: emits progress
pipeline/clips.py - Stage two runner → Run storage: uses run storage
pipeline/clips.py - Engine bridge → Prompt payload: builds input
- Prompt payload → Category finders: supplies prompt
- Category finders → Model client: requests selection
- Category finders → Clip refinement: refines candidates
- Standalone CLI → Source fetch: fetches source
wowClip/wowclip/cli.py - Standalone CLI → Clip finder: runs finder
wowClip/wowclip/cli.py - Standalone CLI → Prompt assembly: assembles prompt
wowClip/wowclip/cli.py - Standalone CLI → HTML report: renders report
wowClip/wowclip/cli.py - Source fetch → Word timing: uses word timing
wowClip/wowclip/fetch.py - Clip finder → OpenRouter: calls model