Skip to main content
Version: Latest (v2.0.0)

Tubematic — Documentation

Tubematic turns a topic into a finished YouTube Short: it researches topics, writes a script, voices it, generates imagery, animates it in code, renders an mp4, has an AI watch the result for defects, and stops at three points where a human has to say yes.

Every scene is a React component an AI agent writes for that specific video, compiled and rendered by Remotion. The output is real code, which is why you can read exactly what produced any frame.

The documentation is split by who is reading. Pick the entry point that matches what you want to do.

You want to…Start at
Get it running and make a first videoQuickstart
Install, run, operate and upgrade itUser guide
Understand how it works, change it, or build on itDeveloper docs
See what changed in a releaseRelease notes

User guide​

For anyone running Tubematic. No knowledge of the code is assumed.

1 · OverviewWhat it is, what it produces, the design decisions that shape everything else, and a glossary. Read this first
2 · InstallingPrerequisites, what the dashboard exposes on the network, the install wizard, installing an agent, your first video, verifying and uninstalling
3 · Using TubematicThe day-to-day: the ways to make videos, scheduling, the control knobs, the checkpoints you approve, pausing and monitoring
4 · The DashboardSigning in, every page and what it is for, and the actions you take there
5 · SettingsEvery setting: what it does, its default, and when to change it
6 · PublishingConnecting social accounts, publishing and scheduling posts, and Auto Pilot
7 · UpgradingMoving to a new version, versioning, backups, and rollback
8 · TroubleshootingSymptoms and where the cause usually is
9 · Remote AccessUsing the dashboard from another machine: Twingate, or HTTPS with Caddy or nginx

Developer docs​

For contributors and anyone integrating with or extending Tubematic.

1 · ArchitectureContainers, processes, how they talk, where files live, the repository map, and the failure model
2 · The PipelineThe state machine in full — every status, every transition, the human checkpoints, and the revision loop
3 · DatabaseEvery table and column, the migration model, and how to add one
4 · Settings internalsHow settings and credentials are stored, masked and verified, and how to add a setting
5 · HTTP APIEvery Flask route — parameters, responses, status codes, and known quirks
6 · MCP ServerEvery agent tool, validate_job's checks, and the scene-work claim
7 · The Agent LayerSkills, slash commands, installing an agent and how videos are assigned to one
8 · Scripting and VoiceScript segments, length budget, pronunciation and pause markup, timeline.json, script profiles
9 · The Remotion ProjectThe frame model, compositions, dynamic scene dispatch, scene-config.json, the installed component library
10 · Scene AuthoringHow a scene gets written — the two visual registers, the PHOTO / HYBRID / DIAGRAM / STICK taxonomy, cadence, the revision path, adding a component
11 · Rendering and ReviewRendering, timeouts and retries, Gemini video review, the text-layout audit
12 · The WorkerThe always-on loop that renders, settles posts, runs Auto Pilot and the timed sweeps — every pass, its order and how often it runs
13 · The Pollerpoll.py, the cron-started supervisor that runs agent sessions — the loop, the three lanes, one stage per session, timeouts and orphans
14 · Publishing internalsThe postforme client, schema, routes, the worker's publishing passes, and the design decisions behind them
15 · Dashboard internalsThe Next.js app — stack, the request guard, the proxy and stream routes, components, the action model
16 · InfrastructureCompose services, authentication, volumes, images, cron, and day-to-day operating commands
17 · DevelopmentWhere verification belongs, release tooling, the CI workflow shape, conventions, and contributing
18 · ReleasesWhat a release consists of, release branches, image tags, and how migrations ship
Test suitesEvery test suite — what each file guards, how to run it, and the traps each one encodes

Reading routes​

Just want to run it. Quickstart → Using Tubematic → The Dashboard, and Remote Access to use it from another machine.

Want to change how videos look. Overview → The Remotion Project → Scene Authoring. This is the main extension surface.

Want to change how the AI behaves. The Pipeline → The Agent Layer → MCP Server. Most behaviour lives in markdown skills, not code.

Integrating something external. Architecture → HTTP API → Database.

Something is broken. Troubleshooting.


Conventions in these docs​

  • Code is cited by symbol — pipeline.py::patch_video — never by line number, so a citation cannot rot when a file is edited above it.
  • Diagrams are inline ```mermaid fences, rendered natively by GitHub. There is no build step.
  • No test counts, suite totals, or dated claims. Run the suite.
  • Each explanation lives on one page; others link to it. A user-guide page covers what you do and see, and links to the developer page that explains how it works.
  • Where a design decision looks wrong or over-engineered, the reason is stated. Those notes are the most valuable part of this documentation and the easiest to accidentally undo.

These documents are public and must never carry stale information. Any change that adds or alters a tool, route, settings key, status, schema column, component or skill rule is not finished until the relevant page reflects it — and until the neighbouring claims it invalidated have been re-checked. See Development — Keeping the docs true.