[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114711":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":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":29,"discoverSource":30},114711,"ascii-animals","DesignerStephen1\u002Fascii-animals","DesignerStephen1","ASCII animals crossing the screen behind a Dia-style glass chat input. Live at pocketstudio.design\u002Fascii-animals-app","https:\u002F\u002Fpocketstudio.design\u002Fascii-animals-app\u002Findex.html",null,"TypeScript",105,15,59,2,0,20,46,4,58.21,"MIT License",false,"main",[],"2026-11-15 21:53:50","2026-11-21 20:37:48","# ascii animals\n\nAnimals drawn as ASCII on a canvas, crossing the screen along one course. Zero dependencies.\n\nPick one from the row of animals in the top bar. Dark mode only, and each animal has its own colour:\n\n| Animal | How it moves |\n|---|---|\n| Butterfly | blue morphos on migration: flutter, zigzag, glide with wings flat |\n| Koi | lazy S-curves on bendy spines; kohaku, sanke, showa, ogon and chagoi; tap to drop food and koi close by swim over to eat |\n| Jellyfish | bioluminescent magenta: each pulse lights the bell up, then the glow eases out; frilly twisting arms, marine snow (made for dark mode) |\n| Dragonfly | emerald hawkers: hover, dart, cruise along for a while; white eyes with black pupils on the nearer ones, a striped green thorax, a dark body banded emerald, clear veined wings with a sweeping glint (made for dark mode) |\n| Frog | spotted leopard frogs that sit, breathe and blink, then leap in an arc (bigger at the top), with a splash on landing |\n| Crane | red-crowned, after the paintings: each flies its own way along the course, flapping at its own pace and gliding now and then (Folding flap in Tweaks for a slow downstroke and a quick, wrist-folding upstroke); broad white wings with splayed fingers and black secondaries, a red crown, dark eyes on the nearer ones |\n| Crab | scuttle sideways in bursts, legs stepping, footprints in the sand; tap and they bolt away, claws up |\n\nEverywhere:\n\n- smaller ones are farther away: they move slower and fade into the background\n- whoever leaves downstream comes back in upstream\n- **click** to startle the ones nearby (each animal reacts its own way)\n- the last animal picked is remembered between visits\n- a liquid-glass chat input in the middle, a concept redesign after Dia's AI input (not affiliated with Dia):\n  Dia's dome (`public\u002Fdia-logo.png`, cut out of a screenshot) and a greeting by the time of day\n  (\"Still up, Stephen?\" after 10pm) above it, then \"Ask anything...\",\n  \"Add tabs or files\", voice and send (UI only: Enter fires a `chat:submit` event on the form with `{ text }`); the refraction\n  uses an SVG filter in Chromium and falls back to frosted glass elsewhere\n- a **Tweaks** panel (top right): shared Movement and Look sliders plus each animal's own,\n  saved per animal; double-click a label to reset it, **Copy** exports what you changed as JSON\n\n```sh\nnpm install && npm run dev\n```\n\n`?animal=koi` picks an animal, `?count=60` pins how many.\n\n```ts\nimport { AnimalEngine } from \".\u002Fsrc\";\n\nconst engine = new AnimalEngine(canvas, { animal: \"jellyfish\", theme: \"dark\", tuning: { speed: 1.4 } });\nengine.setAnimal(\"cranes\");\nengine.set(\"density\", 2);\n```\n\n## How it's put together\n\n- `src\u002Fflock.ts`: the world every animal shares (population, depth, the course, re-entry,\n  startle, steering helpers) and the shared knobs\n- `src\u002Frenderer.ts`: the ASCII renderer and the `Pen` animals draw with (supersampled\n  silhouettes, line glyphs, dots, the trail)\n- `src\u002Fanimals\u002F*.ts`: one file per animal: its behaviour, shape, paint and its own knobs\n- `src\u002Fengine.ts`: the loop, resizing, input and switching animals\n\n## Publishing to Pocket Studio\n\nIt's live at [pocketstudio.design\u002Fascii-animals-app](https:\u002F\u002Fpocketstudio.design\u002Fascii-animals-app\u002Findex.html),\nas a static build inside the studio site ([Sumin-Studio\u002FStudio-site](https:\u002F\u002Fgithub.com\u002FSumin-Studio\u002FStudio-site)),\nnext to the butterflies app. To update it, build with the site's path as the base, straight into\nthe site's `public\u002F` (here with Studio-site checked out next to this repo):\n\n```sh\nnpx vite build --base=\u002Fascii-animals-app\u002F --outDir ..\u002FStudio-site\u002Fpublic\u002Fascii-animals-app --emptyOutDir\ncp LICENSE ..\u002FStudio-site\u002Fpublic\u002Fascii-animals-app\u002F\n```\n\nThen commit that in Studio-site and open a PR. Its Pocket Labs card (image, description, the\n\"Try it out\" link) is the `ascii-animals` entry in `components\u002Fpocket-labs-data.ts`, with its\nimages in `public\u002Flabs\u002Fascii-animals*`. If a squash merge's production build is blocked because\nVercel doesn't recognise the commit's email, push an empty \"Trigger production deploy\" commit\nto `main` from an email on the Vercel team.\n\nThe app keeps its settings in localStorage under `ascii-animals:` keys, so it doesn't pick up\nthe butterflies app's on the same domain.\n\nBuilt on the engine and renderer from [ascii-sharks](https:\u002F\u002Fgithub.com\u002Fstackedlol\u002Fascii-sharks). MIT\n","这是一个基于Canvas的轻量级ASCII艺术动画库，用于在网页中渲染具有物理行为和交互特性的ASCII动物（如蝴蝶、锦鲤、水母等），在深色背景下沿固定路径游动或飞行。核心功能包括：基于深度的透视缩放与速度衰减、点击惊扰交互、动物专属运动参数调节（通过Tweaks面板）、响应式玻璃态聊天输入框（仿Dia设计）及URL参数控制。零依赖，纯TypeScript实现，适用于创意网页装饰、技术演示、交互式数字艺术展示或开发者实验性UI组件集成。","2026-11-24 04:49:27","CREATED_QUERY"]