How jeremysnr/cutawan works
Cutawan is a desktop video repurposing app. The main workflow is to import a local video or link, choose viral-clip discovery or whole-video captioning, review and edit the result, then export an MP4. The README documents those product stages and the available AI and local-caption modes; source-index references and excerpts support several internal calls. Some pipeline implementations were not sampled, so edges for documented capabilities rely on the README rather than implying uninspected implementation details.
Main entry points: ipc.ts IPC handlers · EditorScreen.tsx Clip editor · transcribe.ts Transcription · render.ts Render and export
Components 26
Desktop app
- App screens
src/renderer/src/App.tsx - Project state
src/renderer/src/store.ts - Setup and settings
src/renderer/src/components/SettingsModal.tsx - Preload bridge
src/preload/index.ts - Main process
src/main/index.ts - IPC handlers
src/main/ipc.ts - Project persistence
src/main/projects.ts
Media intake
- Source import
src/main/pipeline/sourceDiscovery.ts - Media access
src/main/mediaAccess.ts
AI analysis
- Transcription
src/main/pipeline/transcribe.ts - Clip discovery
src/main/pipeline/highlights.ts - Visual discovery
src/main/pipeline/visualCandidates.ts - Editorial review
src/main/pipeline/editorialReview.ts - Whole-video mode
src/main/pipeline/wholeVideo.ts
Editing and export
- Speaker reframing
src/main/pipeline/reframe.ts - Clip editor
src/renderer/src/components/EditorScreen.tsx - Video preview
src/renderer/src/components/PreviewPlayer.tsx - Render and export
src/main/pipeline/render.ts - Caption generation
src/main/pipeline/captions.ts - Media processing
src/main/pipeline/ffmpeg.ts
AI and local services
- AI providers
src/main/pipeline/openai.ts - OpenRouter setup
src/main/openrouter.ts - Local inference
src/main/inference/client.ts - Local Whisper
src/main/localWhisper.ts
Other components
- Creator
- AI API
Connections 30
- Creator → App screens: uses
- App screens → Project state: reads state
src/renderer/src/App.tsx - Creator → Project state: imports video
- Project state → Preload bridge: invokes actions
- Preload bridge → IPC handlers: bridges requests
- Main process → IPC handlers: registers handlers
src/main/index.ts - IPC handlers → Project persistence: manages projects
src/main/ipc.ts - IPC handlers → Source import: imports source
- IPC handlers → Transcription: runs pipeline
- IPC handlers → Clip discovery: runs pipeline
- IPC handlers → Visual discovery: runs discovery
- IPC handlers → Editorial review: reviews clips
- IPC handlers → Whole-video mode: runs mode
src/main/ipc.ts - Creator → Setup and settings: chooses AI mode
- Setup and settings → OpenRouter setup: configures provider
- OpenRouter setup → AI API: lists models
src/main/openrouter.ts - AI providers → AI API: requests analysis
- Transcription → Local Whisper: supports local speech
- Transcription → AI providers: uses AI transcription
- Local inference → AI API: runs local models
- Clip discovery → Editorial review: ranks moments
- Editorial review → Visual discovery: extracts frame evidence
src/main/pipeline/editorialReview.ts - Creator → Clip editor: edits results
- Clip editor → Video preview: previews framing
src/renderer/src/components/PreviewPlayer.tsx - Clip editor → Speaker reframing: adjusts framing
- Whole-video mode → Clip editor: opens whole-video edit
- Clip editor → Render and export: exports edit
- Render and export → Caption generation: builds captions
src/main/pipeline/render.ts - Render and export → Media processing: encodes video
src/main/pipeline/render.ts - Creator → Project persistence: reopens project