Self-hosted documentary video studio for YouTube.
Research with cited sources → fact-checked script → maps, documents and licensed footage → voiceover → render → YouTube.
A person approves every upload.
AI YouTube video generator source code · documentary & explainer videos · research with sources · white-label
▶ Live demo · Docs · Website · Get the full source code
This repository is a showcase. It holds screenshots, documentation pointers and a few real excerpts from the code. The full application (server, studio, renderer, admin console, Docker files, tests and docs) is sold as source code at store.mikodes.com/p/channelsmith: one payment, instant ZIP download, free setup help.
Channelsmith takes a topic and makes a 10–20 minute documentary or explainer episode for a YouTube channel in nine steps, each one you can review and edit:
| # | Step | What happens |
|---|---|---|
| 1 | Research | Claude searches and reads the web. Every fact is tied to a numbered source that was really retrieved; anything without a source moves into a list of gaps. |
| 2 | Script | Retention-structured outline (hook, promise, chapters, payoff) and a narration script whose paragraphs cite the facts. |
| 3 | Fact check | The script is checked against the dossier before any voice or render money is spent. |
| 4 | Visuals | A per-chapter storyboard: maps, documents, quote cards, timelines, comparisons. |
| 5 | Footage | Licensed clips from Pexels, Pixabay and Wikimedia Commons, with credits written for you. |
| 6 | Render | Voiceover with word timings (ElevenLabs), then a long render with its own Chrome frame renderer and ffmpeg. |
| 7 | Package | Three titles, a description with chapters and credits, tags and three thumbnails. |
| 8 | Shorts | Vertical Shorts cut from every long video. |
| 9 | Publish | YouTube upload with captions, schedule, playlist and the synthetic-content disclosure, after a person ticks “I watched the video and approve this upload”. |
- Channels with a channel bible: niche, audience, language, tone, style pack, topics to avoid, sign-off. Every episode inherits it.
- Idea Lab: video ideas with hook, angle and three title variants; approved ideas feed the queue.
- Ten documentary style packs with a film look, plus a scene editor.
- Natural Earth maps: pins, routes and places rendered offline.
- Originality report: eight self-checks against YouTube's published policies (a self-check, not a guarantee).
- Content calendar, pipeline board and an autopilot that always stops at review.
- Workspaces, team roles, brand kits and client review links.
- Credits, plans and Stripe billing if you sell the studio to creators.
- Operator console: settings, limits, keys, team and audit without touching code.
- REST API, signed webhooks, MCP server and an episode CLI.
- Backups, restore, upgrade check, Docker.
| Layer | Technology |
|---|---|
| Server | Node.js 22, TypeScript, Hono, better-sqlite3, Zod |
| Studio | React 19, Vite |
| AI | Anthropic Claude (with web search and fetch), ElevenLabs |
| Render | puppeteer-core (Chrome) + ffmpeg |
| Footage | Pexels, Pixabay, Wikimedia Commons |
| Deploy | Docker or Ubuntu VPS |
A technical case study of the architecture, one end-to-end flow, the key engineering decisions and how you would build something like this: docs/HOW-IT-WORKS.md.
Real excerpts from the source, shown for illustration:
- Research dossier cleanup (
snippets/clean-dossier.ts): Removes every source Claude did not actually retrieve, renumbers the rest and moves unsupported facts into the list of gaps, so a script cannot cite a page nobody read. - Validated AI answers with targeted repair (
snippets/validated-answer.ts): Every AI step is parsed, checked against a schema and its own rules, and sent back with the exact list of problems for at most two repairs, so a bad scene is caught before an hour-long render. - Footage download allowlist and rate-limit back-off (
snippets/footage-network-rules.ts): Footage is fetched only from each provider's media hosts over https on port 443 with no credentials, and a host that answers HTTP 429 is left alone for as long as it asks.
- Node.js 22.12+, Google Chrome or Chromium, ffmpeg and ffprobe
- A Linux VPS or Docker host with HTTPS
- Your own API keys: Anthropic, ElevenLabs, Pexels and/or Pixabay (free)
- For public YouTube uploads: a Google Cloud project with the YouTube API (Google keeps uploads private until it audits your project)
Not included: hosting, API usage costs, any audience or revenue. No text-to-video model, no AI avatars and no reuse of other creators' videos.
Is this the full source code?
No. This repository is a showcase with screenshots, a technical case study and real code excerpts. The complete Channelsmith source code is sold at store.mikodes.com/p/channelsmith.
What is Channelsmith built with?
Node.js 22, TypeScript, Hono, React 19, SQLite, Claude, ElevenLabs, Chrome frame renderer and ffmpeg.
Can I try it before buying?
Yes, open the live demo.
Do I get help with the installation?
Free setup help is included with the store purchase; questions go to mikodes.com/support.
One payment, full licence, instant ZIP download and free setup help. Questions: mikodes.com/support.
Made by MIKODES · more projects







