mografy-film: Create Motion Graphics with Mografy
A Mografy film is a TypeScript scene module that draws a single frame on Canvas as a pure function of time t. The player can jump to any frame for inspection, and the review tool draws the same frame twice to compare, ensuring no hidden state. It includes a very comprehensive English skill (located in the project's .claude/skills/mografy/ after installation), and details should defer to that version. This skill covers: when to use it, how to install, the key method principles, and how it divides work with our other video skills.
When to Use It and When Not To
| Goal | Which Skill |
|---|---|
| Step-by-step tutorial from screenshots, one short clip per step plus a full version | Mografy (its strongest area, the how-to-film workflow) |
| 4–12 second product interface micro-animations, feature cards, mobile screen demos | Mografy (ten stage-* example films to copy structure from) |
| Paper theater, paper puppet style concept explainers, character stories | Mografy (paper-theatre-* example films) |
| Need Lottie or SVGA output (for embedding in apps or web pages) | Mografy (other tools don't support it; note it's frame-by-frame image packaging, without vector editing or sound) |
| Full narrated explainer film with voiceover, music, and storyboard | sui-motion-graphic-reel (+ HyperFrames) |
| Same scene with multiple art styles | style-pack |
| Real web page capture for product promotion videos | video-shotcraft |
| Pixel effects | pixel-fx |
Installation (Ask Dex First)
On Dex's computer, third-party code must be run; always ask first. After approval on 2026-11-23, it's installed at ~/mografy-lab/mografy/ (0.1.2). For new films, work within that workspace: npx mografy init projects/<name>. To reinstall or install elsewhere:
- In the folder where you want to place films:
npx mografy@<version> init. Specify an exact version; do not use@latestas it floats. Installs into the folder (not globally), about 2 MB; Mografy's own skills will be installed alongside into.claude/and.agents/. - It uses the local Chrome for rendering; FFmpeg is downloaded to the project folder on first export, with SHA-256 verification.
npx mografy devopens the local player (localhost).- To update: run
npx mografy@<new version>from the project folder, and review the GitHub changelog first.
Security audit log (2026-11-23, 0.1.2): The skill only contains documentation and one Python script for compressing videos (calling ffmpeg/ffprobe only); the npm package has no install/postinstall scripts, with dependencies only on ws, zod, esbuild, and protobufjs. The CLI binary itself has not been audited file-by-file.
Workflow for Creating a New Film
- Read the project:
mografy.json, scenes,style.md. Choose the closest example film vianpx mografy add <name> <folder>as a starting point. - Brief: Message, audience, length, aspect ratio, language on screen, whether music is needed. Write into the beginning of
storyboards/storyboard.md. - Storyboard: First, write a one-sentence film idea: a visual element that runs through every shot and causes every change (e.g., a ray of light sequentially filling each cup). A row of cards fading in and out is not an idea; it's a template. Then define the design system as tokens in
style.md, followed by the storyboard table—one row per shot. Stop here once the storyboard is done. - Production: One world, one camera, a beat table (
beats([...])). Declare parts the user might want to adjust as layers; timing comes from the beat table. - Music (only if needed).
- Review: Address all warnings from
npx mografy check --motion; inspect every image generated bynpx mografy review, including each transition strip. - Export: Only when requested:
npx mografy export --format mp4|webm|lottie|svga.
To adjust length, remove from static hold times—do not speed up motion.
Key Method Principles (Also Applicable to Our Other Videos)
- One beat table manages all timing. Each shot has a title, end time, hold time, and handover duration; camera keyframes, layer appearance times, and review timestamps are all derived from this table. To change a shot's length, only edit the table; everything else follows.
- One camera throughout the film. Cards, phones, and panels scale within the world; no second camera is created. No shot resets to a blank center.
- Every cut is a handover. The next shot starts at the line, card, or point where the previous shot ended. For scene changes, let elements grow into the next form; do not fade out one and fade in another at the same position. Deliberate transitions (hard cuts, black frames, wipes) are used only when changing story sections.
- Exits and entrances overlap by 0.2–0.5 seconds, so no frame is empty.
- Fade out a group of elements together: The entire card and its rows become transparent through the same layer; otherwise, overlapping areas flicker.
- Hold long enough: After the full subtitle is displayed, hold at least "0.5s + number of Chinese characters ÷ 4.5" (6 characters ≥ 1.8s, 12 characters ≥ 3.2s); after a state change, hold for 0.6–1.0s before the next action. One shot does one thing; interface and explanation shots last 2.5–4s each. (Note:
style-pack/references/film.mdrecommends "hold after animation for characters ÷ 4.5 + 1.5s" which is more conservative; use that for beginner course films.) - Motion should be smooth, not fast: Crossing more than half the screen takes at least 0.6s; exits take at least 0.4s. The camera can move at most 0.5s before an action; do not move during clicks or reading.
- Design system first: Four text roles (subhead, headline, item name, caption), five color roles (background, ink, secondary, one accent, body), repeated shots use the same layout, about 40% blank space on screen, one card style throughout the film, logo appears only at the end.
- Font sizes (1920×1080): Headlines 96–160px, body text ≥ 40px, no text smaller than 24px; vertical-format films place subtitles in the top third. Redrawn interface text should be scaled to 1.3–1.6x original.
Traditional Chinese (CJK) Notes
- Add CJK extension:
npx mografy add cjk <project>, includes Noto Sans/Serif CJK TC subsets (OFL), vertical text, and Chinese line-breaking rules (punctuation not at line start). - After finalizing text, run its font subsetting script to keep only the characters used in the film (about 100–170 KB); re-run every time text changes.
- Use English for plans, storyboards, and tool prompts; use the language specified in the brief for on-screen text.
Use in Our Projects
- Practice hall and course tutorials: Step-by-step operations (submit homework, open treasure chests, ask questions via owl), one 4–8 second clip per step, plus a full compiled version. Always use test accounts for screenshots; only display fictional data on screen—never show real student names, answers, or conversations.
- All-Age Association "AI Agent at Work" course: Step-by-step tutorial videos (vertical with large subtitles for mobile viewing).
- Sanchangzhi / Brand: Paper-theater style concept explainer videos.
What Not to Do
- Do not write animations in
mografy.json; do not manually editscenes/timeline.json(that's for user edits in the editor). - Do not modify example films in the project's
examples/folder; usenpx mografy addto copy one and then edit. - Do not copy copywriting, logos, or music from other brands.
- Do not export or overwrite files in
renders/unless requested. - Before capturing from real websites or accounts, ask Dex for test accounts and approval; always stop and ask before making payments, sending emails, deleting, or inviting people.
Field Test Log
First read references/field-notes.md: 2026-11-23 Sanchangzhi trial encountered pitfalls (missing params causes only ZodError on export, font subsetting script not included in npm package, default export uses HEVC).
Sources
- Official site: https://mografy-website.vercel.app/zh-TW, GitHub: https://github.com/mografy/mografy (MIT, fetched 2026-11-23; npm 0.1.2)
- Methods compiled from its
.agents/skills/mografy/SKILL.md, film-architecture, storyboard, taste, cjk-typography, how-to-film, written in our own words; complete rules follow its original texts.