[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111334":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":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},111334,"line-art-animation","JDhruv14\u002Fline-art-animation","JDhruv14","A Claude skill and TypeScript library for animated line-art SVG components: ink figures that walk and react, scenes with a day\u002Fnight cycle.",null,"TypeScript",1217,175,5,1,0,36,297,1119,167,104.71,"MIT License",false,"main",true,[26,27,28,29],"claude-skill","line-art","svg-animation","typescript","2026-11-10 09:25:38","2026-11-23 19:07:09","# line-art-animation\n\nA Claude skill and a small TypeScript library for animated line-art components:\nink-on-paper figures that walk, ride and react, in scenes that run from day to night.\nEverything is drawn live in SVG, so it stays sharp at any size and responds to the\npointer.\n\n![A Japanese street drawn in line art, going from late afternoon to night](media\u002Fvillage.gif)\n\n| Day | Night |\n|---|---|\n| ![The village at midday](media\u002Fday.png) | ![The village at night with lit windows](media\u002Fnight.png) |\n\n## What's in the repo\n\n| | |\n|---|---|\n| `SKILL.md`, `references\u002F` | The skill: workflow, the rules that make the style work, and guides for style, motion, scenes, verification, matching a reference clip and rendering video. |\n| `lib\u002F` | Four dependency-free TypeScript modules: drawing primitives (`ink.ts`), a walk\u002Frun solver (`gait.ts`), springs, pendulums and wind (`motion.ts`), and a time-of-day palette (`daynight.ts`). |\n| `examples\u002Fwalker\u002F` | One figure in about 150 lines: a man with a briefcase walks across the card; click him and he tips his hat. |\n| `examples\u002Fvillage\u002F` | A full scene: a street of machiya, a tea house and a bath house by a canal, villagers on schedules, a cat, birds, a boatman, lit windows and reflections, about a dozen interactions. |\n| `scripts\u002F` | Deterministic frame capture for video, and tools for measuring a reference clip. |\n\n## Install the skill\n\nFor Claude Code, clone it into your skills folder:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FJDhruv14\u002Fline-art-animation ~\u002F.claude\u002Fskills\u002Fline-art-animation\n```\n\nor into `.claude\u002Fskills\u002F` inside a single project. Then ask for what you want, for example:\n\n- \"Make a line art animation of a bakery at dawn: a baker carrying trays, steam from the oven, a cat in the window.\"\n- \"Turn this clip into a looping line-art component, matching its walk exactly.\" (attach or link the clip)\n- \"Add a day-night cycle to the scene and render a 30-second 1080p video.\"\n\nClaude reads `SKILL.md`, copies `lib\u002F` into your project, shows one figure for approval\nbefore building the rest, and checks motion frame by frame before handing it over.\n\n## Run the examples\n\nRequires Node 22.18 or newer.\n\n```sh\nnpm install\nnpm run dev        # http:\u002F\u002Flocalhost:5173\n```\n\nIn the village, drag the sun or moon across the sky to change the time, move the pointer\nto make wind, and click people, windows, lanterns, the wind chime, the cat, the birds or\nthe water. URL flags: `?start=0.9` sets the starting time (0 is midnight, 0.5 noon),\n`?tau=0.5` pins it, `?day=30` makes a full day last 30 seconds, `?debug` steps time by hand.\n\n```sh\nnpm run typecheck  # strict for lib\u002F and the walker\nnpm run build\n```\n\n## The library in brief\n\n![The walker example: a man with a briefcase and a red scarf walking past a lamp post](media\u002Fwalker.gif)\n\nFigures are drawn in their own space, about 95 units tall with feet on y = 120, and placed\ninto a scene with a transform. Limbs are two open pen strokes around a curve through the\njoints, which is most of what makes the drawing read as hand-inked.\n\nA complete program that draws a pair of legs walking across the page (the walker\nexample adds the body, arms, clothes and the click reaction):\n\n```ts\nimport { el, limb, shoe, place, inkDefs, run } from '.\u002Flib\u002Fink.ts';\nimport { gait } from '.\u002Flib\u002Fgait.ts';\n\nconst svg = el('svg', { viewBox: '0 0 480 240' });\ndocument.body.append(svg);\nconst fig = el('g', { filter: inkDefs(svg).filter }, svg);\nconst legs = [limb(fig, 4.2), limb(fig, 4.2)];\nconst shoes = [el('path', {}, fig), el('path', {}, fig)];\n\nconst walk = gait({ kind: 'walk' });\nlet phase = 0, x = 60;\nrun((t, dt) => {\n  phase += dt \u002F walk.period;\n  x += walk.speed * 1.25 * dt;           \u002F\u002F move at the gait's speed and the feet stay planted\n  place(fig, x % 520 - 20, 196, 1, 1.25);\n  const p = walk.pose(phase);\n  p.feet.forEach((foot, i) => {\n    legs[i].draw([p.hip, foot.knee, foot.ankle]);\n    shoe(shoes[i], foot.ankle, foot.pitch);\n  });\n});\n```\n\n`gait()` solves the legs rather than animating them: the planted foot slides back at\nexactly the travel speed, the swing follows a minimum-jerk path, the heel peels off the\ntoe before each step, and hip height comes from what the planted legs can reach, so the\nbody rises over each step and dips when both feet are down. Clothes are then drawn\naround the knees and ankles, so a coat or kimono opens and closes with the stride.\n\n`palette(τ)` gives sky, paper and ink colours for any time of day. Ink is `currentColor`\nand paper fills carry a `pp` class, so `applyPalette()` can turn the whole drawing into\npale ink on indigo at night while windows and lanterns glow.\n\n## Render a video\n\n```sh\nnpm run dev\nnode scripts\u002Fcapture.ts \"http:\u002F\u002Flocalhost:5173\u002Fexamples\u002Fvillage\u002F?debug&capture&day=30&start=0.3\" \\\n  captures\u002Fvillage 900 30 1920 1080\nffmpeg -framerate 30 -i captures\u002Fvillage\u002Ff%04d.png -c:v libx264 -preset slow -crf 15 \\\n  -pix_fmt yuv420p -movflags +faststart -tune animation village.mp4\n```\n\nThe capture script drives headless Chrome over the DevTools protocol, with no npm\ndependencies, and advances the scene by exactly one frame between screenshots, so the\nresult doesn't depend on machine speed. It finds a local Chrome or Chromium, or uses\n`$CHROME`. Needs ffmpeg.\n\n## Match a reference clip\n\n```sh\nnode scripts\u002Fclip.ts period clip.mp4 X Y W H          # loop length of a region\nnode scripts\u002Fclip.ts blobs clip.mp4 X Y W H Y0 Y1     # dark blobs per frame, e.g. feet\nscripts\u002Fframes.sh clip.mp4 X Y W H out\u002F               # frames with a measuring grid\n```\n\n`references\u002Fmatching.md` covers the rest: why to resample by time (most social clips\nare variable-frame-rate), reading poses off the grid, and an overlay mode for checking\nyour drawing against the clip.\n\n## License\n\nMIT\n","这是一个面向线稿风格SVG动画的TypeScript库及Claude AI技能，用于创建可交互、响应式、支持昼夜循环的矢量线描动画组件。核心功能包括：基于物理的步态求解器（gait.ts）、弹簧\u002F摆动\u002F风力模拟（motion.ts）、昼夜调色板系统（daynight.ts）以及轻量级SVG绘制原语（ink.ts），所有动画均实时渲染于SVG中，支持无损缩放与指针交互。适用于需要轻量、可定制、高可访问性矢量动画的场景，如AI辅助创意设计、教育可视化、网页插画、动态UI元素及短视频素材生成。",2,"2026-11-24 04:40:51","CREATED_QUERY"]