graphify
GRGraphify-Labs/graphify155k2,544 new stars in the last 7 days
Make or edit animated, narrated, interactive web books from reference PDFs, animated picture books (paper-puppet films) from a story, a joke or a fairy tale, narrated documentaries about a book or an idea, built from public-domain pictures, upright shorts for a phone feed that make one point in under three minutes, scroll stories whose picture changes as the reader scrolls, and maps you explore, where a stretch of history plays year by year and the reader clicks the people and places on it. Use for planning, storyboards, animation, exercises, narration and cover pages, as in "make the next chapter", "turn this story into a picture book", "make a documentary about this book", "make a short about this for YouTube Shorts", "fix this animation" or "make an interactive map of Europe in the 1920s". Deliver runnable static book files; bookshelf design, bookshelf registration and hosting are separate tasks.
Papermorph makes three tiers of book on one engine, and two pages that run outside it:
chNN/.The three tiers are an SVG stage (1600×900, or 900×1600 for a short) plus a player; beats pair narration clips with timed actions. Good means alive (things act and change with weight and timing), composed (each moment reads as one picture, text beside what it names), true (motion, labels and numbers agree at every moment) and smooth (it plays without stutter, Firefox included).
What the picture should be depends on the book and on the user, so the work starts with a conversation that ends in style.json: the user's words, the look they chose, the voices, which model does which step, and later the approved chapters. Every chapter is made against it; how each beat is laid out and choreographed is yours to judge against it and the approved chapters. User requests override defaults. Re-create explanations, examples and drawings; keep source PDFs, page images and extracted text outside the static output folder and out of version control (.gitignore: *.pdf, books/*/pages/). A chapter the Skill made is a first cut: review rounds and the user's viewing come before it is published.
Read the tier's first file, then only what the current step needs. Every file below is linked from here; none needs another to be found.
| The user brings | Tier | Start with | Then, as the step needs |
|---|---|---|---|
| A textbook PDF (a course book too) | Lessons | lessons.md | intake.md · authoring.md · diagrams.md (tier 1) · scenes.md (tier 2) · assets.md · maths.md (math.js, math parts, LaTeX) · questions.md · figures.md (figures the reader moves) · checks.md · cover.md · courses.md (citations, item bank, SCORM: only when the book calls for them) |
| A story, a joke, a fairy tale, or a story book's PDF (its own scanned pictures: stories.md) | Picture books | stories.md | puppets.md · effects-and-music.md · painting.md (a painted look) · listen-and-find.md (a finding game for young children) |
| A book, an idea or a stretch of history to explain as a narrated film | Films: documentary | films.md | documentary.md · effects-and-music.md |
| One point to make in under three minutes, upright, for a phone feed (YouTube Shorts, TikTok, Reels), or a long film to recut | Films: shorts | films.md | shorts.md · effects-and-music.md |
| A film's material, or an idea that is mostly maps and numbers, to read at the reader's own pace on a page whose picture changes as it scrolls (a scroll story) | Films: scroll page | films.md | scroll.md |
| A stretch of history to explore on a map, year by year: borders that change, people who move (one page, its own player, not the engine); or a subject explored along a path, a clock or a diagram, drawn fresh | Pages you explore | explore.md |
Every tier shares the core:
| File | What it holds |
|---|---|
| core/style.md | how to ask the user, the models step, the paid steps (keys, prices, ledger, balance), style.json |
| core/publish.md | new_book.py, language, minutes, preview and delivery, video export |
| core/sound.md | the narration file, voices, levels, captions |
| core/review.md | seeing your own work in motion, frames, smoothness, director rounds |
| core/team.md | making chapters with subagents, the coordinator, workers in parallel |
| core/engine.md | the player and drawing API, timing, camera, performance, traps |
| core/rtl.md | only for a right-to-left book (Arabic, Hebrew, Persian, Urdu): page direction, mixed lines, maths inside a line |
| core/clay.md | optional Blender clay pictures for any tier: plates, sprites, strips, shared props, rendering and checks |
Start with the tier's intake until books/<book>/style.json holds the user's answers: new_book.py copies the template's in partway through intake, so a file whose words still read "The user's own words…" means the conversation is not done. Reuse answers and approvals already given.
The reference books are the bar: levels to reach, not formats to copy. Each is the folder site/<slug>/ of the Papermorph repository (https://github.com/DozenTwelve/Papermorph), served at https://papermorph.diamonddoge.org/<slug>/, so its source can be read in a checkout or fetched from either address when the Skill is installed on its own. The tier files name the file in a book worth opening for a given step.
| Tier | Books (slug) |
|---|---|
| Lessons | tier 1: Elementary Algebra (elementary-algebra), Math Notebook (math-notebook); tier 2: Science (science); figures the reader moves: Linear Algebra (linear-algebra); a light board with dark ink: physics-notebook; Blender clay: Physics (physics-clay/ch09, with the shared clay kit) |
| Picture books | The Little Horse Crosses the River (little-horse) and Little Red Riding Hood (little-red-riding-hood): all in code, a cast voiced by ElevenLabs, a listen-and-find stop, the newest and the bar; Joke Collection (joke-collection): painted sets, puppets in code, a series of episodes; Millions of Cats (millions-of-cats, Wanda Gág, 1928): a scanned book's own pictures lifted into sets and puppets (not on the shelf) |
| Documentaries | Madness and Civilization (madness, after Foucault, ten minutes), The Pandemic (pandemic), Shooting an Elephant (shooting-an-elephant, one the reader acts in) |
| Shorts | the Madness and Civilization shorts (madness-shorts; episode 1, The Ship, is the worked example), The Pandemic shorts (pandemic-shorts) |
| Scroll pages | The Pandemic's scroll story (pandemic-scroll, recut from the documentary) |
| Pages you explore | Time of the Magicians (time-of-the-magicians, Europe 1919–1929, drawn without the explore kit), The Map Redrawn (meiji, Japan 1868–1878, the page the explore kit came from) |
| One source, four shapes | Apollo 13, from one Wikipedia article checked against NASA's records: the documentary (apollo-13), three shorts (apollo-13-shorts), a scroll page (apollo-13-scroll) and a page you explore (apollo-13-explore) |
Tulip Mania (tulip-mania) is a test film made from the Skill alone, with no help beyond these files; the files cite what it ran into.
books/<book>/ private: source, style.json, storyboards, art, review/ (tier files list their own)
content/<book>/chNN/ narration.<lang>.json and the voice cache
tools/<book>/ tests, audio scripts, evidence
site/<book>/ the static book (only this is delivered)
index.html cover and contents, or a series page
lib/ the engine (synced by engine.py), lib/book.css (this book's settings), the tier's kit, the book's own pieces
img/ the book's pictures
chNN/index.html, audio/<lang>/ a chapter or episode, its beat MP3s and timings.js (films and picture books: audio/sfx/, audio/bgm/)
A scroll or explore page has no chNN/: site/<book>/index.html is the page, with its own lib/ and media (scroll.md, explore.md).
SKILL means this skill's absolute folder; <book> is the book slug, <lang> its primary language code. new_book.py starts a book of any tier (core/publish.md).
Needs: uv, ffmpeg/ffprobe, Edge TTS network access (or Kokoro, local), github.com for engine.py when the repository's engine/ folder is not at hand, an OpenRouter key only for the paid steps the user chooses (paint.py, eleven.py, video.py; paint_openai.py takes an OpenAI key), and Playwright browsers (uv run --with playwright playwright install chromium firefox; where Playwright's Chromium does not run, set CHROME to an installed Chrome, Chromium, Brave or Edge). Preview: python3 SKILL/scripts/serve.py 8765 site (no browser caching).
For the optional clay look: Blender (tested with 5.3.0 on Apple M1 Metal), whose Python supplies bpy, mathutils, bmesh and NumPy; core/clay.md gives the render command and device check.
All in SKILL/scripts/; each prints its usage with --help when run with the uv run --with … its docstring's first lines name (without its packages even --help stops on the import).
| For | Scripts |
|---|---|
| Every book | new_book.py start a book folder · serve.py preview without caching · engine.py sync the engine into books · tts.py narration and word times · eleven.py the same from ElevenLabs (paid) · level.py even loudness · lint.py static checks · check.py page errors, console warnings and beat lengths in Chromium and Firefox · shot.py beat screenshots · strip.py storyboard sheets and motion strips · still.py stretches where nothing moves · playlog.py sounds and captions against the picture · perf.py Firefox frame times · export.py MP4 and .srt · sfx.py synthesized effects |
| Optional clay look (all tiers) | claykit.py Blender geometry, materials, orthographic renders, WebP packing and manifest · clayprops.py shared people, vehicles, trees, ground, table and boards (both imported by a Blender scene) · check_clay.py image decode, dimensions, strip frames and deterministic motion |
| Lessons | outline.py and split_pages.py page map and chapter text · check_blank.py empty openings · overlap.py arrows through text · sprites.py image processing steps · refs.py verified citations · items.py question bank · scorm.py LMS package |
| Picture books | mouths.py mouth shapes · join.py one clip per scene · bake_sets.py set layers · bake_puppets.py puppet bitmaps · paint.py / paint_openai.py image-model pictures · painted.py place them in the book · lift.py figures, sets and lettering cut from a scanned book's own pictures · cutout.py image-model pictures on a key colour cut into puppet pieces and props |
| Pages you explore | topo.py the map's TopoJSON from Natural Earth · explore.py checks, shots, Firefox timing and the narration file for an explorable map (on a page drawn fresh, the checks that need no kit) |
| Films | commons.py public-domain pictures and recordings with their licences, and the credits made from them · prep.py print, line and full-bleed treatments · trace.py drawings that draw themselves on · video.py a clip from a still · frames.py a clip as treated frames · geo.py the map kit's data from Natural Earth · music.py a track cut to the film, the bed in the voice's gaps, and the music, beds and effects against each line · safe.py words outside an upright film's safe area |
silence.py, ledger.py (the one cost ledger: date, chapter, file, model, what, cost) and browsers.py are helpers the others import.
GRGraphify-Labs/graphify155k2,544 new stars in the last 7 days
PApaperclipai/paperclip119k2,120 new stars in the last 7 days
NEnexu-io/open-design110k1,235 new stars in the last 7 days
HEheygen-com/hyperframes93k4,463 new stars in the last 7 days
BYbytedance/deer-flow86k303 new stars in the last 7 days
BYbytedance/deer-flow86k303 new stars in the last 7 days