[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112536":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":13,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},112536,"stickman-story","ahmadaryanto\u002Fstickman-story","ahmadaryanto","Simplified educational starter kit for stickman documentary videos in Remotion (React, TypeScript)",null,"TypeScript",72,22,1,0,10,19,6,52.93,"Other",false,"main",true,[],"2026-11-13 03:33:47","2026-11-23 11:54:52","**English** | [Bahasa Indonesia](README.id.md)\n\n# Stickman Story — Starter Kit\n\nCreate simple, educational stickman videos with code. This repository is a **simplified educational starter kit** built with\nReact, [Remotion](https:\u002F\u002Fwww.remotion.dev) and AI-assisted development. It is not a complete production engine.\n\nIt shows you how to build a stickman documentary step by step: how to plan the story, write the narration, animate a character,\nadd your own voice, add captions, and render a vertical MP4 video.\n\nYou don't need to be an animation expert. If you can read basic JavaScript, you can change the examples and build your own.\nThe kit runs on your own computer, and it needs no account and no API key.\n\n> **Scope.** The public kit contains a small set of reusable parts: a stickman, walking and sitting poses, a simple room, a camera,\n> captions, and three examples. The full production engine and the full documentary projects are **not** included.\n\n## Contents\n\n- [Who this is for](#who-this-is-for)\n- [What you can build](#what-you-can-build)\n- [The production workflow](#the-production-workflow)\n- [Technology used](#technology-used)\n- [Step 1 — Ideation with ChatGPT](#step-1--ideation-with-chatgpt)\n- [Step 2 — Build animations with Claude Code](#step-2--build-animations-with-claude-code)\n- [Step 3 — Generate narration with ElevenLabs (optional)](#step-3--generate-narration-with-elevenlabs-optional)\n- [Step 4 — Install and use Remotion](#step-4--install-and-use-remotion)\n- [Set up the project automatically with Claude Code](#set-up-the-project-automatically-with-claude-code)\n- [Optional: official Remotion agent skills](#optional-official-remotion-agent-skills)\n- [Step 5 — Synchronize narration with animation](#step-5--synchronize-narration-with-animation)\n- [Step 6 — Add captions](#step-6--add-captions)\n- [Step 7 — Render and review](#step-7--render-and-review)\n- [Example scenes](#example-scenes)\n- [Customize characters, environments and camera](#customize-characters-environments-and-camera)\n- [Saving tokens with Claude Code](#saving-tokens-with-claude-code)\n- [Project folders](#project-folders)\n- [Troubleshooting](#troubleshooting)\n- [License and educational scope](#license-and-educational-scope)\n- [Acknowledgments](#acknowledgments)\n\n## Who this is for\n\n- Creators who want to make short educational videos about technology, science or history.\n- Beginners who want to learn how a video can be written as code.\n- Anyone who wants to use AI tools to plan, write, animate and caption a video.\n\n## What you can build\n\n- A stickman that stands, walks, sits and types.\n- Clothing and colour changes for each character.\n- A simple room with a floor, a wall, a desk, a chair, a monitor and a whiteboard.\n- Camera moves: pan, zoom, follow a character and push in on an object.\n- A short film made of several scenes.\n- Your own MP3 narration, with captions on top.\n- A vertical MP4 file (1080 × 1920, 30 frames per second).\n\n## The production workflow\n\n```mermaid\nflowchart TD\n    A[ChatGPT: ideas, story, narration script] --> B[Claude Code: stickman animation in this repository]\n    A --> C[ElevenLabs: optional narration audio]\n    B --> D[Remotion: timing, audio, captions, render]\n    C --> D\n    D --> E[Finished educational video]\n```\n\nEach tool has one job:\n\n| Tool | Job in this workflow | What it does **not** do |\n|---|---|---|\n| **ChatGPT** | Plans the story: topic, hook, narration, scenes, storyboard, prompts for Claude Code. | It does not write the Remotion animation. |\n| **Claude Code** | Reads this project and edits the animation code, one scene at a time. | It does not replace your fact-checking. |\n| **ElevenLabs** | Turns your narration script into speech (optional). | It is not needed if you record your own voice. |\n| **Remotion** | The framework this project runs on. It draws each frame, plays the audio and renders the MP4. | It is not a separate manual stage. You use it through the project and Claude Code. |\n\n## Technology used\n\n- **[Remotion](https:\u002F\u002Fwww.remotion.dev)**: creates video from code. Each frame is drawn by a React component.\n- **React**: describes what is on the screen.\n- **[TypeScript](https:\u002F\u002Fwww.typescriptlang.org)**: JavaScript with type checking. It catches many mistakes before you render.\n- **SVG**: draws every stickman part and room piece as flat vector shapes.\n- **npm**: installs the packages listed in `package.json`.\n\n## Step 1 — Ideation with ChatGPT\n\nChatGPT is used for creative planning. Use it to:\n\n- Find interesting documentary topics.\n- Write curiosity-driven hooks.\n- Research and fact-check claims (always verify them yourself).\n- Explain complicated concepts simply.\n- Develop the storytelling structure.\n- Write narration scripts.\n- Create scene-by-scene storyboards.\n- Plan visual transitions.\n- Prepare prompts for Claude Code.\n\nChatGPT does not need to generate the Remotion animation. Its output is a plan and a script. Claude Code turns the plan into code.\n\n**Verify facts before you publish.** AI tools can be wrong. Check every number, date and claim against a reliable source.\n\n### Example prompt (English)\n\n```text\nHelp me create a 60-second Indonesian educational stickman documentary about how artificial intelligence learns.\n\nStart with a question that makes people curious.\n\nWrite an engaging, conversational narration script.\n\nDivide the story into five scenes.\n\nFor each scene, include:\n- Narration\n- Visual description\n- Character actions\n- Camera movement\n- Estimated duration\n\nMake the storytelling easy to understand and suitable for Instagram Reels, TikTok, and YouTube Shorts.\n```\n\n### Contoh prompt (Bahasa Indonesia)\n\n```text\nBantu saya membuat dokumenter edukatif stickman berbahasa Indonesia selama 60 detik tentang cara kecerdasan buatan belajar.\n\nMulai dengan pertanyaan yang membuat penonton penasaran.\n\nTulis naskah narasi yang menarik dan santai.\n\nBagi cerita menjadi lima adegan.\n\nUntuk setiap adegan, sertakan:\n- Narasi\n- Deskripsi visual\n- Aksi karakter\n- Gerakan kamera\n- Perkiraan durasi\n\nBuat ceritanya mudah dipahami dan cocok untuk Instagram Reels, TikTok, dan YouTube Shorts.\n```\n\n## Step 2 — Build animations with Claude Code\n\nClaude Code reads this project, reuses its existing components, modifies scene code and works with Remotion. It can:\n\n- Customize a character's clothes and colours.\n- Make a stickman walk and sit.\n- Build a simple environment.\n- Add camera pan and zoom.\n- Implement one scene at a time.\n- Debug an animation.\n- Run the rendering and quality checks.\n\n### The strategy: REUSE → RESKIN → NEW\n\n1. **REUSE** an existing component or example exactly as it is.\n2. **RESKIN** it by changing colours, text, positions, frame numbers, clothes or captions. Most new scenes need only this.\n3. **NEW**: write new code only when 1 and 2 cannot do the job.\n\nAlways inspect the existing public components before you create anything new. `CLAUDE.md` lists where each component is.\n\n### Example prompt (English)\n\n```text\nRead CLAUDE.md, README.md, and the relevant component documentation.\n\nI want to create a five-scene educational stickman documentary based on the storyboard below.\n\nUse existing stickman characters, animations, environments, and camera utilities whenever possible.\n\nDo not recreate working components.\n\nImplement one scene at a time.\n\nValidate TypeScript and preview each scene before proceeding.\n\nKeep the animation in vertical 9:16 format.\n\nDo not modify unrelated compositions.\n\nHere is the storyboard:\n\n[PASTE STORYBOARD FROM CHATGPT]\n```\n\n### Contoh prompt (Bahasa Indonesia)\n\n```text\nBaca CLAUDE.md, README.md, dan dokumentasi komponen yang relevan.\n\nSaya ingin membuat dokumenter edukatif stickman lima adegan berdasarkan storyboard di bawah.\n\nGunakan karakter stickman, animasi, lingkungan, dan utilitas kamera yang sudah ada sebisa mungkin.\n\nJangan membuat ulang komponen yang sudah berfungsi.\n\nKerjakan satu adegan dalam satu waktu.\n\nValidasi TypeScript dan pratinjau setiap adegan sebelum lanjut.\n\nPertahankan animasi dalam format vertikal 9:16.\n\nJangan mengubah komposisi yang tidak berhubungan.\n\nBerikut storyboard-nya:\n\n[TEMPEL STORYBOARD DARI CHATGPT]\n```\n\n## Step 3 — Generate narration with ElevenLabs (optional)\n\nElevenLabs converts a script into speech. It is **optional**. You can record your own narration instead.\n\n- Official website: \u003Chttps:\u002F\u002Ftry.elevenlabs.io\u002Flkcjgejny6xh>\n- Pricing: \u003Chttps:\u002F\u002Ftry.elevenlabs.io\u002Flkcjgejny6xh>\n\nWhat ElevenLabs can do for this workflow:\n\n- Convert your narration script into speech.\n- Let you choose an available voice.\n- Generate Indonesian narration.\n- Create a voice clone, if your subscription includes it.\n- Download the generated audio.\n- Give you an audio file that you can import into this starter kit.\n\n> **Plans and licensing.** ElevenLabs offers a free plan for basic use, while certain capabilities such as voice cloning and\n> commercial-use rights require an eligible paid subscription. Plans, limits, and licensing terms may change. Check official pricing\n> before subscribing.\n\n**Your own voice is also fine.** You can record the narration yourself and import the MP3. You do not need ElevenLabs for this.\n\n**Voice cloning rules.** Clone only a voice that you own or are authorized to use. Do not clone another person's voice without their\npermission.\n\n### Workflow\n\n1. Copy the narration script from ChatGPT.\n2. Open ElevenLabs.\n3. Choose an eligible voice, or an authorized voice clone.\n4. Paste the narration.\n5. Generate the audio.\n6. Review pronunciation and pacing.\n7. Download an MP3 (or another supported format).\n8. Add the audio to your local project (see [Step 5](#step-5--synchronize-narration-with-animation)).\n9. Synchronize the animation timeline with the actual narration duration.\n\nDo not speed up the speech just to fit a fixed scene length. Unnatural speed sounds robotic. Change the scene length instead.\n\n### Sample voice direction (English)\n\n```text\nUse a natural, conversational Indonesian documentary narration style.\n\nSound curious, confident, and engaging, as if explaining a fascinating story to a friend.\n\nUse natural pauses.\n\nBuild excitement around surprising facts.\n\nAvoid robotic delivery, exaggerated shouting, and news-anchor presentation.\n\nKeep pronunciation clear and pacing consistent.\n```\n\n### Arahan suara (Bahasa Indonesia)\n\n```text\nGunakan gaya narasi dokumenter Indonesia yang alami dan santai.\n\nTerdengar penasaran, percaya diri, dan menarik, seolah sedang menceritakan kisah yang menakjubkan kepada teman.\n\nGunakan jeda yang wajar.\n\nBangun semangat di sekitar fakta yang mengejutkan.\n\nHindari nada robot, teriakan yang berlebihan, dan gaya pembawa berita.\n\nJaga pengucapan tetap jelas dan tempo yang konsisten.\n```\n\n## Step 4 — Install and use Remotion\n\nRemotion is a React-based framework for creating videos from code. It handles:\n\n- Frame-based animation.\n- Scene compositions.\n- Camera movement.\n- Audio.\n- Captions.\n- Previewing in the browser.\n- Rendering to MP4.\n\nOfficial links:\n\n- GitHub: \u003Chttps:\u002F\u002Fgithub.com\u002Fremotion-dev\u002Fremotion>\n- Website: \u003Chttps:\u002F\u002Fwww.remotion.dev\u002F>\n- Documentation: \u003Chttps:\u002F\u002Fwww.remotion.dev\u002Fdocs\u002Fthe-fundamentals>\n- AI and agent skills: \u003Chttps:\u002F\u002Fwww.remotion.dev\u002Fdocs\u002Fai\u002Fskills>\n\n### Requirements\n\n- **Node.js and npm.** This kit was tested with Node.js 24.18.0 and npm 11.16.0. Check your versions with `node -v` and `npm -v`.\n- **Git** (to clone the repository).\n- **Dependencies** are listed in `package.json`. The exact versions are pinned in `package-lock.json`.\n- **Operating system.** This kit was tested on **Windows 11** only. Other systems are not verified.\n\n### Option A — Clone this Stickman Starter Kit (recommended)\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fahmadaryanto\u002Fstickman-story.git\ncd stickman-story\nnpm ci\n```\n\n`npm ci` installs the exact versions from `package-lock.json`. Use it when that file exists. It is the recommended command for this repository.\n\nThen check that the project compiles:\n\n```bash\nnpm run typecheck\n```\n\nA clean run prints no errors.\n\n### Launch Remotion Studio\n\n```bash\nnpm run studio\n```\n\nThe terminal reports when the server is ready, at `http:\u002F\u002Flocalhost:3000`. Open that address in your browser, then choose a composition from the list.\n\n### See the available compositions\n\n```bash\nnpx remotion compositions src\u002Findex.ts\n```\n\nThis lists three compositions: `Example01-WalkingStickman`, `Example02-OfficeScene` and `Example03-MiniDocumentary`.\n\n### Render a video\n\nUse the composition ID and an output path. The `out\u002F` folder is created for you.\n\n```bash\nnpm run render -- Example01-WalkingStickman out\u002Fexample01.mp4\n```\n\nSave one still image (one frame) to check a moment before a full render:\n\n```bash\nnpm run still -- Example02-OfficeScene out\u002Fcheck.png --frame=300\n```\n\n### Option B — Create a new Remotion project\n\nYou can also start a separate Remotion project from scratch. This is an alternative to this kit, not a step for it.\n\n```bash\nnpx create-video@latest\n```\n\nRun this in a **new folder**, never inside this starter-kit repository. Check the current command in the official Remotion documentation\n(\u003Chttps:\u002F\u002Fwww.remotion.dev\u002Fdocs\u002Fthe-fundamentals>) before you run it, because the command could change.\n\n## Set up the project automatically with Claude Code\n\nClaude Code can inspect the cloned repository and help you set it up. Some installation actions may need your approval, so read each\nstep before you accept it.\n\n### Setup prompt (English)\n\n```text\nRead README.md, CLAUDE.md, package.json, and the available package lockfile.\n\nCheck whether Node.js, npm, Git, and Remotion dependencies are installed.\n\nInstall only missing dependencies required by this public project.\n\nPreserve the current package manager and existing dependency versions.\n\nDo not scaffold a new project.\n\nDo not modify unrelated source files.\n\nVerify that Remotion Studio can start.\n\nList all available compositions.\n\nRun the existing TypeScript validation command.\n\nPerform a short test render using an existing example composition.\n\nReport any installation or compatibility errors.\n\nDo not commit or push.\n```\n\n### Prompt instalasi (Bahasa Indonesia)\n\n```text\nBaca README.md, CLAUDE.md, package.json, dan file lockfile paket yang tersedia.\n\nPeriksa apakah Node.js, npm, Git, dan dependensi Remotion sudah terpasang.\n\nPasang hanya dependensi yang hilang dan dibutuhkan oleh proyek publik ini.\n\nPertahankan package manager yang sekarang dan versi dependensi yang ada.\n\nJangan membuat proyek baru.\n\nJangan mengubah file sumber yang tidak berhubungan.\n\nPastikan Remotion Studio dapat dijalankan.\n\nTampilkan semua komposisi yang tersedia.\n\nJalankan perintah validasi TypeScript yang sudah ada.\n\nLakukan uji render singkat menggunakan salah satu komposisi contoh yang sudah ada.\n\nLaporkan setiap error instalasi atau kompatibilitas.\n\nJangan melakukan commit atau push.\n```\n\n## Optional: official Remotion agent skills\n\nRemotion publishes optional guidance for coding agents, called agent skills. See \u003Chttps:\u002F\u002Fwww.remotion.dev\u002Fdocs\u002Fai\u002Fskills>.\n\nThe official page lists this install command:\n\n```bash\nnpx skills add remotion-dev\u002Fskills\n```\n\n**This is optional and needs your approval.** The page does not say whether the command installs globally or only in one project, so check\nthe prompts it shows before you accept. Do not install global skills without reading what they change.\n\nKeep the two kinds of guidance apart:\n\n- **Official Remotion skills:** general guidance for implementing Remotion in any project.\n- **This repository's instructions** (`CLAUDE.md`, `README.md`): specific to this starter kit's characters, scenes and reusable parts.\n\n## Step 5 — Synchronize narration with animation\n\nThis kit can play an MP3 that you provide. It does **not** detect the length of your audio or cut the animation to it automatically.\nYou set the timing by hand, in frames (30 frames = 1 second).\n\n1. **Import the MP3.** Copy it to `public\u002Faudio\u002F`. Example: `public\u002Faudio\u002Fmy-narration.mp3`.\n2. **Find its length.** Open it in any audio player, or in your editor, and note the duration in seconds. Multiply by 30 to get frames.\n3. **Match scenes to narration.** In `src\u002Fscenes\u002FExample03MiniDocumentary.tsx`, the constants `SCENE1`, `SCENE2` and `SCENE3` set each\n   scene's start frame and length. Make the total length of the scenes at least as long as the narration.\n4. **Play the narration.** Pass the file to the composition:\n\n   ```bash\n   npm run render -- Example03-MiniDocumentary out\u002Fmini.mp4 --props='{\"narration\":\"audio\u002Fmy-narration.mp3\"}'\n   ```\n\n5. **Preview and adjust.** Open Remotion Studio, check that words are not cut, and change the scene lengths if needed.\n\nGuidelines:\n\n- **Keep natural speech pacing.** Extend a scene that needs more time, rather than speeding up the speech.\n- **Do not cut words.** Make sure each scene lasts until its narration has finished.\n- **Balance the volume.** The `Narration` component has a `volume` value from 0 to 1. The default is 0.9.\n- **Keep narration files out of Git.** The repository ignores audio files in `public\u002Faudio\u002F` except a placeholder.\n\n### Audio prompt (English)\n\n```text\nImport my narration file at public\u002Faudio\u002F[FILENAME].mp3 into Example03MiniDocumentary.\n\nRead the narration length from the file and convert it to frames at 30 fps.\n\nAdjust SCENE1, SCENE2 and SCENE3 so the scenes together last at least as long as the narration, without cutting any words.\n\nDo not speed up or slow down the narration.\n\nPass the file to the composition with the narration prop, and validate TypeScript.\n\nPreview the result and report any scene that feels too short or too long.\n```\n\n### Prompt audio (Bahasa Indonesia)\n\n```text\nImpor file narasi saya di public\u002Faudio\u002F[NAMA-FILE].mp3 ke Example03MiniDocumentary.\n\nBaca durasi narasi dari file tersebut dan ubah menjadi frame pada 30 fps.\n\nSesuaikan SCENE1, SCENE2, dan SCENE3 agar total durasi adegan minimal sama dengan narasi, tanpa memotong kata apa pun.\n\nJangan mempercepat atau memperlambat narasi.\n\nBerikan file ke komposisi melalui prop narration, lalu validasi TypeScript.\n\nPratinjau hasilnya dan laporkan adegan yang terasa terlalu pendek atau terlalu panjang.\n```\n\n## Step 6 — Add captions\n\nCaptions are plain text on the screen, shown at chosen frames. The starter kit provides a basic caption component, `CaptionTrack`.\nIt is **not** an automatic subtitle system: you write each caption and its timing yourself.\n\nWhat the public component supports:\n\n- Text, with up to two lines (use `\\n` for a second line).\n- A start frame (`from`) and an end frame (`to`).\n- Four named placements (`top`, `upper`, `mid`, `lower`), or any height you choose with `y` in pixels. The default is `lower`.\n- A 90-pixel margin on the left and the right.\n- A 54-pixel font (Inter, from Google Fonts), a light text colour and a dark shadow.\n\n```tsx\nimport {CaptionCue, CaptionTrack} from \"..\u002Fcaptions\u002FCaptionTrack\";\n\nconst CAPTIONS: CaptionCue[] = [\n  {from: 10, to: 80, text: \"Meet our stickman.\", pos: \"lower\"},\n  {from: 100, to: 200, text: \"Here is the first idea.\", pos: \"lower\"},\n];\n\n\u003CCaptionTrack cues={CAPTIONS} \u002F>\n```\n\n### Caption checklist\n\n- **Sync with the narration.** Set `from` and `to` from the words you heard in Remotion Studio.\n- **Keep it in the lower third.** The default `lower` position leaves room for the characters above.\n- **Keep it readable.** Use short phrases, and check that the text is not lost on a light background.\n- **Use safe margins.** Keep text inside the 90-pixel side margins and away from the bottom edge, where phone apps draw their own controls.\n- **Avoid important objects.** Do not cover a character's face or a key diagram. Move the caption with `pos` or `y`.\n- **Preview before rendering.** Save a still at each caption's start, and at a moment in the middle of it.\n\nThe public kit does not include an automatic collision-avoidance system. Check placement yourself.\n\n### Caption prompt (English)\n\n```text\nUse the existing public caption component to add synchronized captions to my documentary.\n\nMatch the captions to the narration timing.\n\nKeep the text in a readable lower-third position.\n\nAvoid covering the stickman character and important diagrams.\n\nPreserve the original voiceover and animation.\n\nValidate the caption timing before rendering.\n```\n\n### Prompt caption (Bahasa Indonesia)\n\n```text\nGunakan komponen caption publik yang sudah ada untuk menambahkan caption yang tersinkron ke dokumenter saya.\n\nSesuaikan waktu caption dengan waktu narasi.\n\nLetakkan teks di posisi lower-third yang mudah dibaca.\n\nHindari menutupi karakter stickman dan diagram penting.\n\nPertahankan narasi dan animasi asli.\n\nValidasi waktu caption sebelum merender.\n```\n\n## Step 7 — Render and review\n\nVideo quality must be checked by eye. A render that finishes without errors can still have a wrong caption, a jerky walk or a cut word.\n\n1. **Open Remotion Studio** (`npm run studio`) and open the composition.\n2. **Preview each scene.** Scrub the timeline, and watch the whole scene at least once.\n3. **Check audio synchronization.** Listen for words that are cut at the start or the end of a scene.\n4. **Check character movement.** The feet should stay on the floor when a character walks.\n5. **Check captions.** Each one should appear at the right moment, be readable and not cover important content.\n6. **Check camera movement.** Look for a jump or a sudden stop.\n7. **Check text overflow.** No text should run past the edge of the frame.\n8. **Save stills** of any moment you are unsure about, using `npm run still`.\n9. **Render the final file** with `npm run render`, then watch the MP4 from start to end.\n\n## Example scenes\n\nEach example is a complete composition. Open it in Remotion Studio, then change it to make your own version.\n\n### Example 01 — Walking stickman\n\n- **Composition:** `Example01-WalkingStickman` (5 seconds).\n- **File:** `src\u002Fscenes\u002FExample01WalkingStickman.tsx`.\n- **Components:** `Stickman` (rig), `walk` (pose), `idle` (pose), `Camera2D` and `Layer` (camera), `Wall` and `Floor` (environment), `CaptionTrack` (captions).\n- **What you can change:** the start and end positions (`START_X`, `END_X`), the size (`scale`), the camera follow amount, and the caption text.\n- **Preview:** `npm run studio`, then choose `Example01-WalkingStickman`.\n- **Render:** `npm run render -- Example01-WalkingStickman out\u002Fexample01.mp4`.\n\n### Example 02 — Office scene\n\n- **Composition:** `Example02-OfficeScene` (12 seconds).\n- **File:** `src\u002Fscenes\u002FExample02OfficeScene.tsx`.\n- **Components:** `Stickman` with `anchor=\"hip\"`, `seatedAnchor` (sitting), `typing` (pose), `walk`, `OfficeChair`, `Desk`, `Monitor` (with a custom screen), `Camera2D`, `CaptionTrack`.\n- **What you can change:** the chair, desk and monitor positions (`CHAIR`, `DESK`), the clothes (`JACKET_BLUE`), the keyboard targets, the camera keyframes and the captions.\n- **Preview:** `npm run studio`, then choose `Example02-OfficeScene`.\n- **Render:** `npm run render -- Example02-OfficeScene out\u002Fexample02.mp4`.\n\n### Example 03 — Mini documentary\n\n- **Composition:** `Example03-MiniDocumentary` (11 seconds, three scenes).\n- **File:** `src\u002Fscenes\u002FExample03MiniDocumentary.tsx`.\n- **Components:** `Sequence` (three scenes), `Stickman` with `point` (pose), `Board`, `Label`, `Glow`, `Camera2D`, `CaptionTrack`, `Narration` (optional audio).\n- **What you can change:** the scene lengths (`SCENE1`, `SCENE2`, `SCENE3`), the board text, the diagram labels, the captions and the narration file.\n- **Preview:** `npm run studio`, then choose `Example03-MiniDocumentary`.\n- **Render silently:** `npm run render -- Example03-MiniDocumentary out\u002Fmini.mp4`.\n- **Render with narration:** `npm run render -- Example03-MiniDocumentary out\u002Fmini.mp4 --props='{\"narration\":\"audio\u002Fmy-narration.mp3\"}'`.\n\nThese examples use only generic content. They do not reproduce any documentary scene.\n\n## Customize characters, environments and camera\n\n### Characters\n\nA character is one `Stickman` component. Change its clothes with a look object:\n\n```tsx\nimport {CASUAL} from \"..\u002Frig\u002Flooks\";\nimport type {Look} from \"..\u002Frig\u002FStickman\";\n\nconst TEACHER: Look = {...CASUAL, top: \"#6B3E2E\", coat: \"#2A2D33\"};\n```\n\nPresets: `CASUAL`, `SHIRT_ORANGE` and `JACKET_BLUE` (in `src\u002Frig\u002Flooks.tsx`). Full options: [`docs\u002FCHARACTER_GUIDE.md`](docs\u002FCHARACTER_GUIDE.md).\n\n### Environments\n\nRoom pieces are in `src\u002Fenvironment\u002FFurniture.tsx`: `Wall`, `Floor`, `Desk`, `Monitor`, `OfficeChair`, `Board`, `Label`, `Glow` and `Cone`.\nDraw them from the back to the front, on layers. Full guide: [`docs\u002FSCENE_GUIDE.md`](docs\u002FSCENE_GUIDE.md).\n\n### Camera\n\nThe camera is a window onto the 2D world. Give it a position and a zoom for each moment:\n\n```tsx\nconst cam = keysObj(frame, [\n  [0,   {x: -300, y: 100, zoom: 1,   rot: 0}],\n  [300, {x: 240,  y: 200, zoom: 1.7, rot: 0}],\n]);\n\u003CCamera2D cam={cam} t={t}> ... \u003C\u002FCamera2D>\n```\n\nPut characters on `\u003CLayer depth={1}>`, and distant walls on `\u003CLayer depth={0.5}>`. Full guide: [`docs\u002FCAMERA_GUIDE.md`](docs\u002FCAMERA_GUIDE.md).\n\n## Saving tokens with Claude Code\n\nThese practices help Claude Code use less context and avoid repeated work. They reduce unnecessary context use, but they do not guarantee a fixed cost reduction.\n\n> **Important: save your \"assets\" to keep token usage cheaper.**\n> Once a character, prop, background, scene or animation works, save it as a reusable component in the project (for example under `src\u002F` or `public\u002F`) and give it a clear name. Next time, ask your agent to reuse that saved asset instead of describing and generating it again from scratch. Every rebuild costs tokens; reusing a saved asset costs almost nothing. If you skip this, your agent will recreate the same things every video and burn far more tokens.\n\n1. Read `CLAUDE.md` first.\n2. Read only the project documentation you need.\n3. Search the existing components before you write a new one.\n4. Follow REUSE → RESKIN → NEW.\n5. Implement one scene at a time.\n6. Avoid reading entire source files again and again. Ask for the specific function or lines.\n7. Use targeted searches.\n8. Validate locally (`npm run typecheck`, a still) before a full render.\n9. Keep each task small.\n10. Use a more capable model for complex design, and a lighter model for routine edits, when your tool offers that choice.\n11. Save your assets (characters, props, backgrounds, scenes) as reusable components and reuse them in every new video instead of regenerating them.\n\n## Project folders\n\n```\nsrc\u002F\n  index.ts              entry point (registers the root)\n  Root.tsx              the three example compositions\n  styles\u002Fpalette.ts     colours, font, frame size (1080 x 1920, 30 fps)\n  rig\u002FStickman.tsx      the stickman rig (body, limbs, face, hats, IK)\n  rig\u002Fposes.ts          idle, walk, sit, typing, point, cheer, mix\n  rig\u002Flooks.tsx         clothing presets and simple hair\n  rig\u002Fseat.ts           seatedAnchor: sitting on a chair\n  motion\u002Fease.ts        easing, keyframes, spline\n  camera\u002FCamera2D.tsx   the virtual camera and parallax layers\n  environment\u002FFurniture.tsx   floor, wall, desk, monitor, chair, board\n  captions\u002FCaptionTrack.tsx   timed captions\n  audio\u002FNarration.tsx   optional MP3 narration\n  scenes\u002FExample0*.tsx  the three examples\npublic\u002Faudio\u002F           your own MP3 narration goes here (no audio is included)\ndocs\u002F                   guides (including GITHUB_RELEASE_GUIDE.md)\nCLAUDE.md               instructions for Claude Code\n```\n\n## Troubleshooting\n\n**`npm ci` or `npm install` fails.** Check `node -v`. This kit was tested with Node.js 24. Delete the `node_modules` folder, then run `npm ci` again.\n\n**`npm run typecheck` shows an error.** Read the first line of the error. It names the file and line. A common cause is a camera object without `rot`. Add `rot: 0`.\n\n**The preview is blank, or the browser cannot connect.** Check the terminal. `npm run studio` should report that the server is ready at `http:\u002F\u002Flocalhost:3000`.\nIf port 3000 is busy, close the program that uses it, then run `npm run studio` again.\n\n**The render fails with a message about a browser.** Remotion downloads a headless browser the first time. Check your internet connection, then run the command again.\n\n**The captions use a plain font.** The Inter font loads from Google Fonts. Check your connection, then try again.\n\n**The character floats above the ground or sinks into it.** A standing character needs `y={FLOOR}`. A seated character needs `anchor=\"hip\"` with `seatedAnchor`.\n\n**The video has no sound.** The examples are silent by design. To hear narration, see [Step 5](#step-5--synchronize-narration-with-animation).\n\n**A caption covers the character or an object.** Change its `pos`, or set a `y` value. Check the placement on a still.\n\n**A narration word is cut at the end.** Make the scene longer. Do not speed up the audio to fit.\n\nMore help: [`docs\u002FGETTING_STARTED.md`](docs\u002FGETTING_STARTED.md).\n\n## License and educational scope\n\n- **Code:** MIT License. See [`LICENSE`](LICENSE). You may use, change and share the code, including commercially, with the copyright notice kept.\n- **Documentation** (`README.md`, `README.id.md`, `CLAUDE.md` and `docs\u002F`): Creative Commons Attribution 4.0 (CC BY 4.0). See [`docs\u002FLICENSE.md`](docs\u002FLICENSE.md).\n- **Remotion** has its own license. It is free for individuals and for organizations with up to 3 employees. Larger for-profit organizations need a company license. See \u003Chttps:\u002F\u002Fwww.remotion.dev\u002Flicense>.\n- **ElevenLabs** has its own terms of use and plan limits. See \u003Chttps:\u002F\u002Ftry.elevenlabs.io\u002Flkcjgejny6xh>.\n- **Inter** (the caption font) is loaded from Google Fonts when you render. No font file is included.\n- **No audio, pictures or logos are included.** Narration is yours to supply. Only use audio and voices you have the right to use.\n- **Third-party services and assets:** this repository does not grant any rights to third-party tools, voices, fonts or other assets.\n\nThis is a **public educational starter kit**. It is not the complete private documentary production engine. It does not include full\ndocumentary source code, advanced transition systems, private asset registries, personal voice recordings or private AI instructions.\n\n## Acknowledgments\n\n- Built with [Remotion](https:\u002F\u002Fwww.remotion.dev), React and [TypeScript](https:\u002F\u002Fwww.typescriptlang.org).\n- The caption typeface is [Inter](https:\u002F\u002Frsms.me\u002Finter\u002F) by Rasmus Andersson, loaded from Google Fonts.\n- Workflow tools referenced in this guide: ChatGPT, [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code) and [ElevenLabs](https:\u002F\u002Ftry.elevenlabs.io\u002Flkcjgejny6xh).\n","这是一个面向教育内容创作者的简码动画入门套件，用于快速制作基于火柴人角色的竖屏教学短视频。项目基于 Remotion 框架（React + TypeScript），提供可复用的火柴人姿态（站立、行走、坐姿）、简易场景（房间、课桌、白板）、摄像机动画（平移、缩放、跟随）及字幕同步功能，支持本地运行、无需账号或 API 密钥。它聚焦于教学视频的标准化生产流程：故事构思→脚本撰写→角色动画→AI配音（可选）→字幕添加→MP4 渲染（1080×1920）。适合技术、科学、历史等领域的初学者和教师，用于制作轻量级知识普及短片。",2,"2026-11-24 04:43:46","CREATED_QUERY"]