# varshith707/quillcut architecture

> Architecture diagram of the GitHub repository varshith707/quillcut, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/varshith707/quillcut
- Repository: https://github.com/varshith707/quillcut

## Overview

Quillcut is a local video-to-reels application. Its main workflow accepts a video and rights confirmation, analyzes the footage, plans and renders vertical clips, checks quality, and makes passing reels available for download with captions and hashtags. The browser and CLI are separate entry points to the shared job engine; script-based and hand-directed reel workflows are additional paths. The graph follows README-documented flow and source-index references; unsampled implementation details are not inferred.

Main entry points: [`src/quillcut/jobs.py`](https://github.com/varshith707/quillcut/blob/main/src/quillcut/jobs.py) (Job orchestration), [`src/quillcut/creative/loop.py`](https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/loop.py) (Repair and re-render), [`src/quillcut/cli.py`](https://github.com/varshith707/quillcut/blob/main/src/quillcut/cli.py) (CLI commands), [`src/quillcut/web/server.py`](https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/server.py) (Local web server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interfaces"]
  node_browser(("Browser app<br/>[app.js]"))
  node_web["Local web server<br/>[server.py]"]
  node_cli(("CLI commands<br/>[cli.py]"))
  node_copywriter["Caption writer<br/>[copywriter.py]"]
end

subgraph group_pipeline["Reel production"]
  node_jobs["Job orchestration<br/>[jobs.py]"]
  node_analysis["Video analysis<br/>[analysis.py]"]
  node_media["Media processing<br/>[media.py]"]
  node_asr["Speech recognition<br/>[asr.py]"]
  node_script["Script planning<br/>[scripts.py]"]
  node_reelbook["Reel-book planning<br/>[reels.py]"]
  node_plan["Edit plan contract<br/>[types.py]"]
  node_render["Video rendering<br/>[render.py]"]
  node_captions["Caption layout<br/>[captions.py]"]
  node_qc["Quality checks<br/>[qc.py]"]
end

subgraph group_creative["Creative review"]
  node_creative["Creative evaluation<br/>[score.py]"]
  node_creative_loop["Repair and re-render<br/>[loop.py]"]
  node_creative_checks["Creative checks<br/>[checks.py]"]
  node_creative_facts["Clip evidence<br/>[facts.py]"]
end

subgraph group_support["Project support"]
  node_format["Format configuration<br/>[formats.py]"]
  node_project["Project records<br/>[storage.py]"]
end

node_ollama["Local Ollama model"]

node_browser -->|"sends requests"| node_web
node_web -->|"starts jobs"| node_jobs
node_cli -->|"runs pipeline"| node_jobs
node_cli -->|"runs templates"| node_script
node_cli -->|"renders reel books"| node_reelbook
node_cli -->|"runs creative pass"| node_creative_loop
node_jobs -->|"analyzes footage"| node_analysis
node_analysis -->|"uses media tools"| node_media
node_jobs -->|"probes and decodes"| node_media
node_jobs -->|"transcribes speech"| node_asr
node_jobs -->|"loads format rules"| node_format
node_jobs -->|"plans clips"| node_script
node_jobs -->|"uses edit plans"| node_plan
node_jobs -->|"renders clips"| node_render
node_jobs -->|"checks output"| node_qc
node_jobs -->|"records project state"| node_project
node_render -->|"runs media tools"| node_media
node_render -->|"lays out captions"| node_captions
node_web -->|"writes descriptions"| node_copywriter
node_copywriter -.->|"requests model text"| node_ollama
node_web -->|"serves reel results"| node_browser
node_creative_loop -->|"builds candidates"| node_reelbook
node_creative_loop -->|"renders candidates"| node_render
node_creative_loop -->|"runs technical QC"| node_qc
node_creative_loop -->|"evaluates candidates"| node_creative
node_creative -->|"applies checks"| node_creative_checks
node_creative -->|"uses clip evidence"| node_creative_facts
node_creative -.->|"requests judgments"| node_ollama

click node_browser "https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/static/app.js"
click node_web "https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/server.py"
click node_cli "https://github.com/varshith707/quillcut/blob/main/src/quillcut/cli.py"
click node_jobs "https://github.com/varshith707/quillcut/blob/main/src/quillcut/jobs.py"
click node_analysis "https://github.com/varshith707/quillcut/blob/main/src/quillcut/analysis.py"
click node_media "https://github.com/varshith707/quillcut/blob/main/src/quillcut/media.py"
click node_asr "https://github.com/varshith707/quillcut/blob/main/src/quillcut/models/asr.py"
click node_format "https://github.com/varshith707/quillcut/blob/main/src/quillcut/formats.py"
click node_script "https://github.com/varshith707/quillcut/blob/main/src/quillcut/scripts.py"
click node_reelbook "https://github.com/varshith707/quillcut/blob/main/src/quillcut/reels.py"
click node_plan "https://github.com/varshith707/quillcut/blob/main/src/quillcut/types.py"
click node_render "https://github.com/varshith707/quillcut/blob/main/src/quillcut/render.py"
click node_captions "https://github.com/varshith707/quillcut/blob/main/src/quillcut/captions.py"
click node_qc "https://github.com/varshith707/quillcut/blob/main/src/quillcut/qc.py"
click node_copywriter "https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/copywriter.py"
click node_project "https://github.com/varshith707/quillcut/blob/main/src/quillcut/storage.py"
click node_creative "https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/score.py"
click node_creative_loop "https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/loop.py"
click node_creative_checks "https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/checks.py"
click node_creative_facts "https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/facts.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_browser,node_web,node_cli,node_copywriter toneBlue
class node_jobs,node_analysis,node_media,node_asr,node_script,node_reelbook,node_plan,node_render,node_captions,node_qc toneAmber
class node_creative,node_creative_loop,node_creative_checks,node_creative_facts toneMint
class node_format,node_project toneRose
class node_ollama toneIndigo
```

## Components

### User interfaces

- [Browser app](https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/static/app.js): `src/quillcut/web/static/app.js`
- [Local web server](https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/server.py): `src/quillcut/web/server.py`
- [CLI commands](https://github.com/varshith707/quillcut/blob/main/src/quillcut/cli.py): `src/quillcut/cli.py`
- [Caption writer](https://github.com/varshith707/quillcut/blob/main/src/quillcut/web/copywriter.py): `src/quillcut/web/copywriter.py`

### Reel production

- [Job orchestration](https://github.com/varshith707/quillcut/blob/main/src/quillcut/jobs.py): `src/quillcut/jobs.py`
- [Video analysis](https://github.com/varshith707/quillcut/blob/main/src/quillcut/analysis.py): `src/quillcut/analysis.py`
- [Media processing](https://github.com/varshith707/quillcut/blob/main/src/quillcut/media.py): `src/quillcut/media.py`
- [Speech recognition](https://github.com/varshith707/quillcut/blob/main/src/quillcut/models/asr.py): `src/quillcut/models/asr.py`
- [Script planning](https://github.com/varshith707/quillcut/blob/main/src/quillcut/scripts.py): `src/quillcut/scripts.py`
- [Reel-book planning](https://github.com/varshith707/quillcut/blob/main/src/quillcut/reels.py): `src/quillcut/reels.py`
- [Edit plan contract](https://github.com/varshith707/quillcut/blob/main/src/quillcut/types.py): `src/quillcut/types.py`
- [Video rendering](https://github.com/varshith707/quillcut/blob/main/src/quillcut/render.py): `src/quillcut/render.py`
- [Caption layout](https://github.com/varshith707/quillcut/blob/main/src/quillcut/captions.py): `src/quillcut/captions.py`
- [Quality checks](https://github.com/varshith707/quillcut/blob/main/src/quillcut/qc.py): `src/quillcut/qc.py`

### Creative review

- [Creative evaluation](https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/score.py): `src/quillcut/creative/score.py`
- [Repair and re-render](https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/loop.py): `src/quillcut/creative/loop.py`
- [Creative checks](https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/checks.py): `src/quillcut/creative/checks.py`
- [Clip evidence](https://github.com/varshith707/quillcut/blob/main/src/quillcut/creative/facts.py): `src/quillcut/creative/facts.py`

### Project support

- [Format configuration](https://github.com/varshith707/quillcut/blob/main/src/quillcut/formats.py): `src/quillcut/formats.py`
- [Project records](https://github.com/varshith707/quillcut/blob/main/src/quillcut/storage.py): `src/quillcut/storage.py`

### Other components

- **Local Ollama model**

## Connections

- Browser app → Local web server: sends requests
- Local web server → Job orchestration: starts jobs (evidence: `src/quillcut/web/server.py`)
- CLI commands → Job orchestration: runs pipeline (evidence: `src/quillcut/cli.py`)
- CLI commands → Script planning: runs templates (evidence: `src/quillcut/cli.py`)
- CLI commands → Reel-book planning: renders reel books (evidence: `src/quillcut/cli.py`)
- CLI commands → Repair and re-render: runs creative pass (evidence: `src/quillcut/cli.py`)
- Job orchestration → Video analysis: analyzes footage (evidence: `src/quillcut/jobs.py`)
- Video analysis → Media processing: uses media tools (evidence: `src/quillcut/analysis.py`)
- Job orchestration → Media processing: probes and decodes (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Speech recognition: transcribes speech (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Format configuration: loads format rules (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Script planning: plans clips (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Edit plan contract: uses edit plans (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Video rendering: renders clips (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Quality checks: checks output (evidence: `src/quillcut/jobs.py`)
- Job orchestration → Project records: records project state (evidence: `src/quillcut/jobs.py`)
- Video rendering → Media processing: runs media tools (evidence: `src/quillcut/render.py`)
- Video rendering → Caption layout: lays out captions (evidence: `src/quillcut/render.py`)
- Local web server → Caption writer: writes descriptions (evidence: `src/quillcut/web/server.py`)
- Caption writer → Local Ollama model: requests model text
- Local web server → Browser app: serves reel results
- Repair and re-render → Reel-book planning: builds candidates (evidence: `src/quillcut/creative/loop.py`)
- Repair and re-render → Video rendering: renders candidates (evidence: `src/quillcut/creative/loop.py`)
- Repair and re-render → Quality checks: runs technical QC (evidence: `src/quillcut/creative/loop.py`)
- Repair and re-render → Creative evaluation: evaluates candidates (evidence: `src/quillcut/creative/loop.py`)
- Creative evaluation → Creative checks: applies checks (evidence: `src/quillcut/creative/score.py`)
- Creative evaluation → Clip evidence: uses clip evidence (evidence: `src/quillcut/creative/score.py`)
- Creative evaluation → Local Ollama model: requests judgments
