[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116941":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":10,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},116941,"blueprint","intincrab\u002Fblueprint","intincrab","A Claude Code skill that draws animated explainers like patent sheets","https:\u002F\u002Fblueprint.intincrab.com",null,"JavaScript",76,8,53,1,0,4,14,22,59.26,"MIT License",false,"main",true,[],"2026-11-21 15:22:38","2026-11-23 18:56:20","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo.svg\" width=\"64\" alt=\"\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">\u002Fblueprint\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  Ask Claude Code how something works. It draws the answer like an old patent sheet, one part at a time.\n  \u003Cbr>\u003Cbr>\n  \u003Ca href=\"https:\u002F\u002Fblueprint.intincrab.com\">\u003Cb>Website\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fblueprint.intincrab.com\u002F#examples\">\u003Cb>All 21 examples\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"#install\">\u003Cb>Install\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fcache.gif\" width=\"880\" alt=\"An animated blueprint sheet explaining a cache: an app asks a database, every request makes the long trip, so a drawer by the door keeps recent answers, and the next request is answered from the drawer\">\n\u003C\u002Fp>\n\nBlueprint is a skill for Claude Code. Give it a topic and it returns an animated explainer: parts drawn in with numbered leader lines, things moving along the lines, and one plain sentence per step. It ships as a single `\u003Cblueprint-scene>` element or a standalone HTML file, and the finished sheet still explains the idea as a picture.\n\n## Install\n\n```bash\nnpx skills add intincrab\u002Fblueprint\n```\n\nOr clone it into your skills folder:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fintincrab\u002Fblueprint.git ~\u002F.claude\u002Fskills\u002Fblueprint\n```\n\nIt needs Node 18 or later. [Playwright](https:\u002F\u002Fplaywright.dev) is optional: it lets Claude render frames of a sheet to check its own work, and it is what the GIF, MP4 and PNG exports run on. To set it up, run this once in the skill folder:\n\n```bash\ncd ~\u002F.claude\u002Fskills\u002Fblueprint     # or wherever the skill was installed\nnpm i                             # installs playwright@1.56.1 from package.json\nnpx playwright install chromium   # downloads the browser it drives\n```\n\nLinting (`scripts\u002Fcheck.mjs`) and building a page (`scripts\u002Fbuild.mjs`) need nothing but Node.\n\nOffline, or on a distro that ships its own Chromium, skip the download and point the scripts at it: `BLUEPRINT_CHROMIUM=\u002Fusr\u002Fbin\u002Fchromium-browser node scripts\u002Fexport.mjs …` (works for `frames.mjs` too).\n\n## Use\n\n```\n\u002Fblueprint how a cache works\n\u002Fblueprint our signup flow, for the docs page\n\u002Fblueprint why the retry storm took the API down\n\u002Fblueprint the event loop, as a complex scene\n\u002Fblueprint how a cache works, as a gif\n\u002Fblueprint last night's outage, from this postmortem\n```\n\nClaude finds the chain of reasons in the topic, picks parts from a kit of 28 (drawers, cabinets, gears, gates, locks, clocks, queues and more), lays out the sheet, lints it, looks at every step, and then embeds it in your page or exports a file.\n\n## How a sheet is built\n\nEvery part has to earn its place. A sheet starts with one real case and adds a part only when the last one falls short:\n\n> The app asks the database for item #42. Every request makes the long trip, and each lookup takes 120 ms. **So** a drawer by the door keeps recent answers. **But** the first time it is empty, **so** it fetches once and keeps a copy. The next request is answered in 2 ms.\n\nThat chain of \"but… so…\" is the explanation, and the animation above is that paragraph drawn.\n\n## Examples\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"33%\">\u003Ca href=\"examples\u002Fcomplex\u002Femudhra.js\">\u003Cimg src=\"assets\u002Femudhra.png\" alt=\"Finished sheet: the eMudhra key compromise\">\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd width=\"33%\">\u003Ca href=\"examples\u002Fcomplex\u002Fevent-loop.js\">\u003Cimg src=\"assets\u002Fevent-loop.png\" alt=\"Finished sheet: the JavaScript event loop\">\u003C\u002Fa>\u003C\u002Ftd>\n    \u003Ctd width=\"33%\">\u003Ca href=\"examples\u002Fcomplex\u002Fllm.js\">\u003Cimg src=\"assets\u002Fllm.png\" alt=\"Finished sheet: how a language model writes\">\u003C\u002Fa>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd>\u003Cb>The eMudhra key compromise\u003C\u002Fb>\u003Cbr>A real breach from October 2026, for people who are not engineers\u003C\u002Ftd>\n    \u003Ctd>\u003Cb>The JavaScript event loop\u003C\u002Fb>\u003Cbr>Stack, task queue and microtasks\u003C\u002Ftd>\n    \u003Ctd>\u003Cb>How a language model writes\u003C\u002Fb>\u003Cbr>Tokens, attention, one word at a time\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\nWatch any of them at **[blueprint.intincrab.com](https:\u002F\u002Fblueprint.intincrab.com\u002F#examples)**, where you can step through each one and copy its source.\n\n| Small · 3–6 steps | Complex · 8–10 steps, with camera moves |\n|---|---|\n| [How a cache works](examples\u002Fsmall\u002Fcache.js) | [The eMudhra key compromise](examples\u002Fcomplex\u002Femudhra.js) |\n| [Debouncing a search box](examples\u002Fsmall\u002Fdebounce.js) | [What happens when you open a web page](examples\u002Fcomplex\u002Furl.js) |\n| [A token bucket rate limiter](examples\u002Fsmall\u002Frate-limit.js) | [How git merges two branches](examples\u002Fcomplex\u002Fgit-merge.js) |\n| [A job queue absorbing a burst](examples\u002Fsmall\u002Fqueue.js) | [How \"Sign in with Google\" works](examples\u002Fcomplex\u002Foauth.js) |\n| [The call stack](examples\u002Fsmall\u002Fcall-stack.js) | [How a database survives a crash](examples\u002Fcomplex\u002Ftransaction-log.js) |\n| [A hash map finding a key](examples\u002Fsmall\u002Fhash-map.js) | [How a CDN brings files closer](examples\u002Fcomplex\u002Fcdn.js) |\n| [Retry with exponential backoff](examples\u002Fsmall\u002Fretry-backoff.js) | [The JavaScript event loop](examples\u002Fcomplex\u002Fevent-loop.js) |\n| [A load balancer spreading work](examples\u002Fsmall\u002Fload-balancer.js) | [An event log with partitions](examples\u002Fcomplex\u002Fkafka.js) |\n| [A database index finding a row](examples\u002Fsmall\u002Fdb-index.js) | [A circuit breaker](examples\u002Fcomplex\u002Fcircuit-breaker.js) |\n| [A lock stopping lost updates](examples\u002Fsmall\u002Fmutex.js) | [How a compiler turns text into a program](examples\u002Fcomplex\u002Fcompiler.js) |\n| | [How a language model writes](examples\u002Fcomplex\u002Fllm.js) |\n\n## Put it on a page\n\nNo Claude, no install, no build step: one script tag from a CDN, and the scene written into the page as JSON. This works in docs, course pages and blogs.\n\n```html\n\u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fintincrab\u002Fblueprint@v0.2.0\u002Fruntime\u002Fblueprint.js\" defer>\u003C\u002Fscript>\n\n\u003Cblueprint-scene play=\"view\" key>\n  \u003Cscript type=\"application\u002Fjson\">\n    { \"title\": \"How a cache works\", \"size\": [640, 320],\n      \"parts\": [ … ], \"lines\": [ … ], \"steps\": [ … ] }\n  \u003C\u002Fscript>\n\u003C\u002Fblueprint-scene>\n```\n\nThe JSON is the same scene format Claude writes (see [craft.md](references\u002Fcraft.md)), with quoted keys. Pin a version (`@v0.2.0`) so a later release can't change your page.\n\nOr keep scenes in their own files, which is what the skill does:\n\n```html\n\u003Cblueprint-scene scene=\"cache\" play=\"view\" key>\u003C\u002Fblueprint-scene>\n\u003Cscript src=\"\u002Fblueprint\u002Fblueprint.js\" defer>\u003C\u002Fscript>\n\u003Cscript src=\"\u002Fblueprint\u002Fcache.js\" defer>\u003C\u002Fscript>\n```\n\n| Attribute | What it does |\n|---|---|\n| `scene` | The id of a scene loaded from a file. On an element with inline JSON, it names that scene so links can open it |\n| `play` | `loop` (default), `view` (plays once when scrolled into view), `click`, or `still` (the finished sheet) |\n| `paper` | `blue` (cyanotype, default) or `linen` (ink on cream) |\n| `key` | Shows the numbered parts list under the sheet |\n| `no-controls` | Hides the play, step and replay bar |\n| `speed` | Playback rate of the motion, e.g. `1.25`; rests stay in real time so captions keep their reading time |\n| `lang` | Caption language for a scene written in several, e.g. `zh`. Without it, the reader's browser language picks |\n| `no-font` | Uses the reader's own monospace font instead of fetching IBM Plex Mono from Google Fonts |\n\nLoad `blueprint.js` before the scene files; `defer` keeps that order. If a scene can't be found (a misspelled `scene`, or its file loaded before the runtime), the element says so in the sheet's place and in the console.\n\n### Captions in more than one language\n\nGive a step's `say` one caption per language, and the reader gets theirs:\n\n```js\nsay: {\n  en: 'So add a drawer (2) by the door that keeps recent answers.',\n  zh: '所以在门边加一个抽屉 (2)，放最近用过的答案。'\n}\n```\n\nThe sheet picks the `lang` attribute, else the reader's browser languages, else the first language listed. Buttons in the bar (`EN` `ZH`) switch it while it plays. Each step rests long enough to read its slowest caption (a Chinese, Japanese or Korean character counts as two Latin ones), so one timeline fits every language. Labels and notes on the drawing stay as written. Ask Claude for it (`\u002Fblueprint how a cache works, with Chinese captions`), or see [cache.js](examples\u002Fsmall\u002Fcache.js). Exports take `--lang zh`.\n\n### Linked sheets\n\nOne sheet explains one mechanism. A bigger system becomes a few sheets that link to each other: give a part `link: 'cache'` and clicking it opens the `cache` scene in the same place. A `BACK` button returns to the first sheet where the reader left it. The part's numeral shows the link (`3 ↗`), and it works from the keyboard. The scene being linked to must be loaded on the page too. In [cdn.js](examples\u002Fcomplex\u002Fcdn.js), the London edge cache opens [How a cache works](examples\u002Fsmall\u002Fcache.js).\n\nEvery sheet has play and pause, previous and next step, and a step bar. With reduced motion turned on it shows the finished sheet. The runtime is one file with no dependencies. By default it loads IBM Plex Mono from Google Fonts; add `no-font` (or pass `--no-font` to `build.mjs` and `export.mjs`) and the page makes no outside requests.\n\n## Share it as a GIF, video or image\n\nGitHub READMEs, Slack, X, Notion and slide decks can't run the element, so export the sheet:\n\n```bash\nnode scripts\u002Fexport.mjs examples\u002Fsmall\u002Fcache.js --format gif            # loops in a README or Slack\nnode scripts\u002Fexport.mjs examples\u002Fsmall\u002Fcache.js --format mp4            # for X or a talk; add --audio track.mp3\nnode scripts\u002Fexport.mjs examples\u002Fsmall\u002Fcache.js --format png            # the finished sheet at 2x\nnode scripts\u002Fexport.mjs examples\u002Fsmall\u002Fcache.js --format png --steps    # one image per step, for slides\nnode scripts\u002Fexport.mjs examples\u002Fsmall\u002Fcache.js --format all --out out\u002Fcache.png   # out\u002Fcache.png, .gif, .mp4\n```\n\nOr just ask: `\u002Fblueprint how a cache works, as a gif`. Exporting needs Playwright (see [Install](#install)). `--out` ending in `.png`, `.gif` or `.mp4` names the files (each format keeps its own extension, and `--steps` adds `-01`, `-02`…); any other `--out` is a folder. A file with several scenes exports the first; pick another with `--scene \u003Cid>`.\n\nMP4 needs an encoder. With [ffmpeg](https:\u002F\u002Fffmpeg.org) on your PATH it uses that, with libx264, or libopenh264 where ffmpeg has no libx264 (Fedora's build). Without ffmpeg, Chromium encodes the video itself (WebCodecs) and the script writes the MP4, so on macOS nothing else is needed (Windows should work the same way, but is untested). That needs the full Chromium, which `npx playwright install chromium` downloads alongside the headless shell. On Linux, Playwright's Chromium has no H.264 encoder, so install ffmpeg (`apt install ffmpeg`, `dnf install ffmpeg-free`), or point `BLUEPRINT_CHROMIUM` at a distro Chromium that has one (Fedora's does). Such a Chromium may still lack AAC; then `--audio` needs ffmpeg, and the script says so before it renders anything. `--encoder ffmpeg` or `--encoder browser` picks one. With `--audio`, the video sets the length: a shorter track ends in silence, a longer one is cut.\n\nA scene's `sources` (the links behind an incident sheet) are not drawn into GIFs, videos or images. Put them in the post, the slide notes or the README next to the export. `scripts\u002Fbuild.mjs` lists them under the sheet.\n\n## Incidents and postmortems\n\n`templates\u002Fincident.js` gives an outage a ready-made story: a normal day, the change, what broke, how it was noticed, the fix that stopped it, the root cause, and the change that prevents it next time, ending on a timeline. Hand Claude your postmortem and it fills the template with your facts, links the sources, and keeps the wording blameless. [The eMudhra key compromise](examples\u002Fcomplex\u002Femudhra.js) shows the same shape for a public incident.\n\n## One HTML file\n\nTo send a sheet to someone as a single file:\n\n```bash\nnode scripts\u002Fbuild.mjs examples\u002Fsmall\u002Fcache.js --out cache.html\nnode scripts\u002Fbuild.mjs a.js b.js --out explainers.html --title \"How our API works\" --play view --paper linen\n```\n\nThe page inlines the runtime and every scene, and lists each scene's `sources` as links under it.\n\n## What is in the repo\n\n| Path | Purpose |\n|---|---|\n| `SKILL.md` | What Claude reads first: the workflow and the style rules |\n| `CONTRIBUTING.md` | How to add a scene or a part, run the checks and send a pull request |\n| `references\u002Fcraft.md` | The scene format, the part kit, line kinds, step actions, and which part suits which idea |\n| `runtime\u002Fblueprint.js` | Layout, timeline, SVG renderer and the `\u003Cblueprint-scene>` element |\n| `templates\u002Fscene.js` | A starting scene |\n| `templates\u002Fincident.js` | A starting scene for incidents and postmortems |\n| `scripts\u002Fcheck.mjs` | Lints a scene: unknown ids, empty scenes, parts no step draws, overlapping parts, lines through parts or text, text on a zone's border, gates that swing into things, ✓\u002F✕ badges on text, labels off the sheet |\n| `scripts\u002Fframes.mjs` | Renders chosen moments into one contact sheet (needs Playwright): `node scripts\u002Fframes.mjs scene.js --out sheet.png` |\n| `scripts\u002Fbuild.mjs` | Turns scenes into one standalone HTML page |\n| `scripts\u002Fexport.mjs` | Exports a scene to GIF, MP4 or PNG |\n| `scripts\u002Flib\u002F` | The GIF encoder, the PNG decoder, the MP4 writer and browser encoder, and the helpers for inlining code into a page |\n| `package.json` | npm scripts (`npm run check -- scene.js`, `build`, `frames`, `export`) and the pinned Playwright |\n| `examples\u002F` | 10 small and 11 complex scenes |\n| `assets\u002F` | The logo and the README's GIF and stills |\n| `gallery\u002F` | Every example on one self-contained page, built with `node gallery\u002Fbuild.mjs` |\n| `site\u002F` | The website, built with `node site\u002Fbuild.mjs` into `site\u002Fdist` (page, share card, robots.txt, sitemap.xml, vercel.json headers) |\n| `video\u002F` | The teaser film and the scripts that render it and the README preview |\n\n## Where the look comes from\n\nVictorian patent drawings for the fine line work, numbered parts and shading. Randall Munroe's *Thing Explainer* for plain words and labels on everything. Bartosz Ciechanowski's explainers for building a machine one part at a time. Bret Victor's *Ladder of Abstraction* for showing one concrete case before the rule. And Kamran Ahmed's [\u002Fstick-scene](https:\u002F\u002Fgithub.com\u002Fnilbuild\u002Fstick-scene), which this skill's packaging follows.\n\n## License\n\n[MIT](LICENSE). Scenes you make with the skill are yours.\n",2,"2026-11-24 04:54:38","CREATED_QUERY"]