Skip to content

About

做着玩的小东西都在这儿 — 一个仓一个子目录一个 Pages 站点 / Small things built for fun: one repo, a subfolder each, one Pages site

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

787 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playground

Small things built for fun. One repo, one subfolder each, one Pages site. The front page has three shelves: games to play, 3D exhibits to turn around and look at, and behind-the-scenes replays of AI at work.

Live: https://aliceljy.github.io/playground/

Games

Toy What it is Stack
Huacheng Landlord · play A rent-collecting board game around a loop of Guangzhou neighbourhoods: pick one die or two, buy empty lots, pay rent, add floors on your own; the richest after fifteen rounds wins. Opponents are rule bots, or your own DeepSeek / Qwen with your key, which picks among the legal moves and trash-talks Plain HTML/CSS/JS, all rules in seeded code, the model only chooses from legal options; key goes straight from your browser to the provider
Muke Zhai · Fight First, Friends After · play A scene from the Peking opera Muke Zhai as a side-view action toy: Mu Guiying knocks the golden helmet off Meng Liang, then crosses spears with Yang Zongbao; parries and clashes fill a heartbeat bar until the two strike a pose side by side. Costumes follow stage photos; 18 actions cut from image-to-video clips Canvas 2D frame atlases, headless-testable logic, zero dependencies
Coal Shift · play Move a little coal creature around a pixel office to catch coffee and dodge red bugs until clocking-off time. Codex wrote and playtested the whole game from a single sentence Canvas pixel art drawn in code, Web Audio synthesised sound, keyboard and touch, single offline HTML file
Coal Breakout · play A tiny coal creature and its AI helpers survive three original disasters: deceptive gems, shrinking context walls and quota outages. Drag to move, shoot automatically, choose workflow upgrades, defeat each boss and save a result poster Canvas pixel atlas generated in code, synthesised chip music, deterministic 60 Hz simulation, no runtime dependencies or external assets
Shared Table · Teahouse Morning · play A Guangzhou teahouse at morning service: the waiter seats you at a table that still has a chair, shared with strangers. No chat; you can only sit, pour tea, tap two fingers in thanks, lift the pot lid, turn the page, pick a dumpling, call the waiter, leave. You choose your tea, rinse with the first pour, order from a five-tier card of fourteen drawn dim sum, and compete for the cart that stops by every half minute; the morning closes after five minutes and you pay a bill you can save. The others are replays of recent visitors and of your own earlier visits (action timelines only, no names or text), plus grey figures labelled as not people when the table is quiet 2D canvas, seating rules and visit replay in a Node-tested core, synthesised sound, traces kept seven days in a Cloudflare Worker, phone portrait
Foyer · Five Minutes Before Curtain · play A small online foyer before a show, five minutes a sitting: one stage, twelve seats, strangers waiting together. No chat; you can only sit, light a lantern, clap, pass tea to a neighbour, photograph the stage, leaf through the programme, leave. A full hall opens the next; a gong on the hour; drums warming up backstage; three bells, house lights down, the curtain parts and the show begins. The others are replays of your own earlier visits kept in the browser, plus grey figures labelled as not people. Take a "who was here tonight" picture when you go. The show named is a real touring production, title and company from public reports 2D canvas, seating rules, visit replay, bells and backstage schedule in a Node-tested core, synthesised sound, no server and no requests, phone portrait
Which Pillar Are You? · play A Cantonese opera troupe stands on six leading performers, the six pillars. Answer eight everyday questions to find which pillar you are, read a few sourced facts about it and the role you would play in The Flower Princess, then long-press to save a share image Plain HTML and a canvas share image; questions, facts and scoring in a Node-testable core that checks the result spread over all 4^8 answer sets; phone portrait
Drizzle at Jianmen · play Step into Gao Jianfu's 1926 landscape, painted after Lu You's poem about riding a donkey into Jianmen Pass in the rain. In drizzle and drifting cloud, turn your head to find the four places the poem names; each one you settle on brushes a line onto the poem slip. Turn around to see the half the painter never painted Gaussian-splat scene generated from one painting with PINOC (Viggle JST-2), on PlayCanvas; mist and waterfall in the shader, synthesised rain; keyboard/mouse and touch
Wangchuan, Lying Down · Deer Park · play Wang Wei's poem "Deer Park": four lines, four paintings in the Tang manner of fine outline and flat colour, walked one after another into the hills. Empty mountains from afar, voices at the edge of the wood, late sun entering the deep wood, light and creeping tree shadows on the moss; then the poem appears on plain paper. Two seconds is enough to get something AI-generated paintings and calligraphy (with the Tang copy of the Admonitions scroll and Ouyang Xun's regular script as references), a depth map per painting plus one full-screen shader for push-in, mist, light, shadows and scene changes, Web Audio wind, no build, no dependencies
Back to the Pit · play On a little Yingge stage a white-robed puppet climbs out of the orchestra pit; tap a lane the moment its iron rod lights and a Yingge paper puppet bats it back down. Three waves, a big gong, and two players can share one phone 2D canvas, stage and puppets from a short film's art, the boss drawn in code, synthesised gongs and drums, touch and keyboard, portrait or landscape
Herb Match · play Herbs fall from an apothecary shelf; file each into the cold, cool, warm or hot basket before it lands, and a wrong answer flips its label to explain. For learning the four natures, not medical advice 2D canvas, flat herbs drawn in code, synthesised sound, touch and mouse, portrait or landscape
Drug Mystery Desk · play Seven fictional clinical-trial mysteries: read the exhibits, link the clues, break the testimony, and close the case only with a complete chain of evidence. Lives in its own repository; only the shelf entry is here Single-file React build, progress kept in the browser, phone or desktop
Qilou Rain · play A rainy night on an arcade street in old Guangzhou: three manholes are open and giant cockroaches pour out. First person; spray the far ones, slap the close ones with a slipper, seal the manholes one by one and catch the last ferry. Crawlers, flyers and an armoured charger each telegraph their attack Code-only first-person game in Three.js with no image, model or audio files; neon reflections and rain; mouse, keyboard and touch; single offline file
Qilou Brawl · play A street brawl down a dusk arcade street in old Guangzhou to a lion-dance ring: dim-sum grannies, a belly-charging landlord, then the lion-dance head; punch and kick chains, rolls, blocks and a gong-and-drum power mode Rigged Gaussian-splat characters generated from single images with PINOC, on PlayCanvas; code-built street and synthesised drums; keyboard/mouse and touch
Late-Night Grocery · play A rainy-night street-corner miniature: zoom in and you walk into the one old grocery still lit, to work a night shift. There are scares; follow the shift rules until you get out Three.js grey-box blocks, synthesised positional sound, keyboard/mouse and touch, standalone offline HTML
Shadow Gong · play A parry duel on a shadow-puppet screen after the show: block the moment a blade lights up, and a perfect timing rings the gong and slows time before the finishing blow Three.js 2.5D, hero sprite from Google Flow video (code puppet with ?rig=1), procedural enemies and synthesised sound, keyboard/mouse and touch, standalone offline HTML
Slipper Smash · play Swipe a flip-flop across leaping cockroaches in a rainy Guangzhou alley, spare the milk tea, then wear down the boss 2D canvas, synthesised sound, touch and mouse, portrait or landscape
Rooftop Splash · play A first-person rooftop water fight with bot teams, three blasters, water balloons and respawns Three.js, procedural scenery, keyboard/mouse and touch, standalone offline HTML
Xiaoju Racing · play A furry orange tabby races five cats through a Guangzhou-inspired circuit, with drifting and nitro Three.js, procedural fur and standalone offline HTML
Dino Craft · play A first-person voxel survival sandbox on a prehistoric archipelago that generates as you walk: mine and place blocks, build a shelter, craft a few things; a T. rex hunts you, herds of plant-eaters scatter, pterosaurs circle overhead; an infinite-ammo rotary gun and a headlamp for the night — survive the first one Three.js built entirely in code with a code-drawn pixel texture atlas, chunks streamed in and out as you move, keyboard, mouse and touch, one offline file
Aju’s Guangzhou Ride · play An orange cat bikes across Guangzhou — calico challenges and neighbourhood exploration Three.js, packed into a single offline HTML

3D exhibits

Exhibit What it is Stack
Lens Lab · view An optical bench for the convex lens: find the focal point with parallel light, then drag the candle and the screen until the picture is sharp. Find the five cases one by one (smaller, same size, larger, no image, the magnifier's virtual image) as the table fills itself in, and end on why a magnifier shows things upright while a projector throws them upside down (the lesson text is Chinese) Three.js, thin-lens equation computed live, mouse and touch, standalone offline HTML
Mac mini SSD Swap · view My Mac mini is filling up and I didn't dare open it, so this takes it apart for me in 3D, following iFixit's SSD guide: 21 steps, 13 screws, 4 bits, counters climbing; on the way, the memory turns out to be soldered next to the M4, and the SSD that comes out is not a normal M.2 drive (the page text is Chinese) Three.js machine built entirely in code; one teardown progress drives the parts, the counters and the tests; mouse and touch; one offline file
The Flashiest Guy in Town · view A Guangzhou cockroach scaled up 85 times, running in place on red floor tiles: drag the speed and watch it go from two alternating tripods to lifting its front legs, then running on its hind legs alone (as measured by Full & Tu, 1991); look at one part, X-ray it, take it apart, spread its wings, then make it stand up in sunglasses Three.js insect built entirely in code; one speed drives the legs, the panels and the tests; mouse and touch; one offline file
Sandworm · view A fictional engineering archive for a mechanical sandworm tunnelling under the desert: six camera presets, X-ray for the buried part, armour that pulls apart Three.js, procedural modelling, keyboard/mouse and touch, standalone offline HTML
Floor Plan · 3D Sample · view A public-domain floor plan read into walls, openings and rooms, extruded into a model you can orbit, with a CAD sheet, path-traced renders and a winter-solstice sunlight study Three.js phone page; data and renders come from a local video project
Floor Plan · Walk-in · view The same floor plan as a coloured plan you furnish yourself: drag pieces in from a library, switch to 3D and the house grows out of the plan; orbit it or walk in through the front door; real sunlight, night, cut walls, whole-house wood swap SVG plan + Three.js, 60 furniture pieces (symbols and models ported from floorplan-3d, MIT), keyboard/mouse and touch, standalone offline HTML
Thirteen Hongs Waterfront · view The foreign factories of Canton around 1805: thirteen trading houses, flagstaffs, a landing, 29 boats and more than 600 people each busy with something, with the bank and boats mirrored in the water; look from above, walk in at eye level or follow nine subjects from a tea lighter to a sedan chair, switch between afternoon, dusk and night, with a tea-loading set piece every few minutes Three.js scene built entirely in code, no models, images or audio files; WebGL and WebGPU builds; mouse and touch; one offline file
Sacred Heart Cathedral, Guangzhou · view The granite cathedral on Yide Road in Guangzhou built entirely in code: a south front with three portals, a rose window and twin octagonal stone spires, flanks with clerestory windows, flying buttresses and side chapels, and the apse; inside, clustered piers, brick rib vaults and coloured light from the glass on the floor and piers; eighteen viewpoints, orbit, walk or fly, morning, noon and evening light Three.js, pure code with no models or images, mouse and touch, single file works offline; sources for the building facts are in facts.md
Sagrada Família · view The Sagrada Família built entirely in code: eighteen towers, three façades and the chamfered city blocks around it; inside, branching columns, a vault with skylights and stained glass that is warm on one side and cool on the other; seventeen viewpoints, orbit, walk or fly, morning, noon and evening light Three.js, pure code with no models or images, mouse and touch, single file works offline
A Corner of a Lingnan Garden · view An AI picture drawn from researched features of Lingnan (Cantonese) gardens, then rebuilt in code as a courtyard you can walk through: grey brick walls on granite footings, a rectangular lotus pool joined to an octagonal one, an octagonal pavilion and covered bridge, a Ying-stone rockery with a cascade, Manchurian and oyster-shell windows, plaster-relief ridges, lychee and kapok trees; jump back to the camera of the picture and overlay the original to compare One picture to a Three.js code-only scene, sources in facts.md, source picture is AI-generated, first-person walk, mouse and touch, single file works offline
Huacheng Autumn Riverside · view Autumn on the south bank of the Pearl River in Guangzhou's Haizhu district: bougainvillea pouring off a footbridge, a white tram passing underneath, pink silk floss trees below Chigang Pagoda, Canton Tower on the same south bank, Zhujiang New Town across the river; drag the hour from day to night Three.js diorama built entirely in code, no models or image files; mouse and touch; one offline file
Cabin Above the Snowline · view A lit cabin on a snowy summit at night: tap the dark summits around it to light their lamps (seven bring shooting stars), drag the hour from dusk to dawn, or step inside and sit by the fire Three.js scene built entirely in code, no models or image files; mouse and touch; one offline file
Tidal Disruption · view A star falls toward a supermassive black hole and, over 108 seconds, is stretched, torn into streams, collides with its own returning debris and settles into an accretion disk; light near the hole is genuinely bent, lifting the far side of the disk above and below the shadow, and the side turning toward you shines brighter; scrub the timeline and orbit freely, with a physics panel that names its approximations Three.js with hand-written GLSL, ray bending and debris computed on the GPU, capped at 30 fps with adaptive quality, mouse and touch, one offline file
Sky Citadel · view A voxel city adrift above a sea of cloud: an inverted cone of rock, walls and lanes, a palace under a gold-ribbed bronze dome, four satellite islets joined by stone and rope bridges, a waterfall dissolving into mist; drag the hour from dawn to deep night as windows light up, or tap the airship and ride along as it circles the island Three.js built entirely in code, nearly 480,000 voxels with only exposed faces uploaded, shadows baked once, capped at 30 fps, mouse and touch, one offline file
Clockwork · Generated from One Image · view A clock diagram handed to Gemini 4 Argon, which wrote this 3D page in one pass: a three-stage gear train meshing at the ratios printed on the diagram Generated by Gemini 4 Argon, Three.js, mouse and touch
Gear Repair · view A gear page written in one pass by DeepSeek Harness had one sign wrong in its involute formula, so both gear pairs passed through each other in every frame; given only the symptom and how to check, it found and fixed the bug itself. Switch between the original and the repair, with red marks where teeth overlap Three.js, both tooth-shape versions kept verbatim, one overlap checker shared by page and tests, mouse and touch
Shanhe Scroll · view A historical scroll you can step into: a paper timeline opens exhibit cards, each card walks you into a 360° panorama Three.js panorama sphere, swap one data file to change the subject
Nanchan Temple · Build It Up · view The Great Hall of Nanchan Temple (rebuilt 782), the oldest surviving timber building in China. Eleven buttons raise it one layer at a time: platform, columns, brackets, beams, rafters, tiles; then lift it apart and put it back. Sizes come from survey data, a cut-away shows how the roof's weight runs down through the bracket set into the column, and a day/night switch Isometric SVG made with the Anatomy skill (MIT), single HTML file, mouse, keyboard and touch
Xiguan House · Open It Up · view A Xiguan townhouse of west Guangzhou, from the entrance to the main hall. One click slides the bar gate into the wall, swings the doors open, folds the roof over and lifts it away, drops the front and gable walls and slides the coloured windows up; another click closes it along the same timeline. Tests check frame by frame that no part passes through another Hand-written Canvas 2D isometric renderer, mouse, keyboard and touch

Behind the AI

Piece What it is Stack
Dispatch Replay · watch Replays of real Claude Code jobs, two to switch between: the dispatcher spends 68 minutes splitting a fact-check of 15 posts across 21 subagents, each reading in over a hundred thousand tokens and handing back a few hundred characters; making a short film, it sends out 8 subagents and calls an external AI, Codex, 8 times for pictures, a black box in the transcript 2D canvas, data extracted from a local session transcript (labels, times, token and character counts only), pause and scrub, phone or desktop
Agent Engine · watch Six scenes on the three layers of an AI agent (API, engine, harness): where a bare API gets stuck, what the loop adds, and the failures the engine has to catch outside the loop; the loop on the page is a small teaching implementation that really runs Explainer page, plain front end, step through or autoplay, phone or desktop
Handwriting Board · watch Two pages of handwritten board write themselves out stroke by stroke, explaining how the board itself is made: a handwriting font revealed character by character, a hand following the pen, red-pen circles; pause, speed, page or scroll mode, font switch (the board text is Chinese) DOM text and SVG on a GSAP timeline, font subset bundled, no build step
Pixel Office · watch Eleven AI teammates each at a desk: typing while busy, a hop and confetti when done, queuing at the boss desk when they need a decision; a courier hands over notifications as paper slips and the board keeps them. Online is the demo; the real one runs a dependency-free local server on your own machine Canvas 2D pixel art, one-minute demo loop, day/dusk/night lighting by Beijing time, no build step
Daomadan Sprite · watch One master still of a Cantonese opera female warrior turned by AI into five game actions (idle, walk, spear thrust, jump, hurt): costume colours fixed against opera references, each action one image-to-video clip from the same still, cut into frames, then a small stage to try them. Running did not work out; the page says why Canvas 2D frame atlases from agent-sprite-forge, WebP, no build step

Tools

Toy What it is Tech
Phone Keyboard · view An unfolded Android phone as a Bluetooth keyboard and trackpad for an iPad; built for the OPPO Find N6 Android app, 25 KB install, nothing to install on the iPad
Phone Remote A phone web page as a wireless keyboard and shortcut pad for a Mac: dictate with the phone's own voice input, which remote-desktop tools fail to forward, and open Claude Code, Codex and other CLIs with one tap. Its own repo; only the entry lives here A zero-dependency server on the Mac, a web page on the phone

Adding a new toy

Start with the production and acceptance guide and write a one-page spec in the toy's own folder.

  1. Drop it in its own folder at the repo root.
  2. Add a build step to .github/workflows/pages.yml that copies its static output into _site/<name>/.
  3. Add a card to the matching board (games, 3D exhibits, behind the AI or tools) in the root index.html. The home page opens on a landing view of the boards and shows one board's cards at a time; the counts and previews on the landing view update themselves. To open a new board, copy an existing <section class="board" data-key="short-name" data-blurb="one-line intro"> and keep h2.shelf directly followed by div.grid; the landing view picks it up automatically, but the count boxes at the top of roadmap.html are written by hand, so add one there too. Give the card a short image-wall tag, data-tag="…" (a few words about how it plays, not the tech), and a cover at covers/<folder>.webp (640×480, the opening or best-looking moment, compressed with cwebp -q 78 -resize 640 480, a few dozen KB). An external link has no folder to infer from, so give its card data-cover="covers/<name>.webp". A missing cover doesn't break anything; the tile just says there is no cover yet. The three pictures on each landing tile are picked by the board's data-hero attribute.
  4. Check the root roadmap.html: the "shipped" list reads itself from the home page, but the "still polishing" and "up next" tables are written by hand, so move the new piece out of them if it was listed. The pixel office keeps its own arcade and showroom menus in ai-office/index.html; add a line there too.

Static toys only need a copy step. Anything needing a build gets its build command in that same workflow — see how aju-guangzhou-ride inlines its sources via build.py.

Single-file 3D pages built by tools/build.mjs get a Content Security Policy as the first thing in <head>, via withCsp() from tools/csp.mjs: the page may only use the code and data inside the file, and the browser refuses every network request, outside image or font, so it is the browser that proves the page loads nothing from elsewhere. Copy the line from an existing build.mjs for a new page, then run tools/csp-check.cjs locally (usage at the top of the file) to confirm the policy blocks nothing the page needs.

Local preview

Each folder runs standalone over plain HTTP (ES modules need a real server, file:// will not work):

cd shanhe-scroll && python3 -m http.server 8777

Licence

All rights reserved: the code, art, layouts, music and films here are mine, and copying them or putting them into another app or product needs my written permission. Ideas are free to borrow — build your own. Full terms in LICENSE.

Toy sources are mine. Bundled three.js keeps its own MIT licence — see the THIRD_PARTY_NOTICES / THREE-LICENSE files in each folder. External material used by the exhibits (the floor plan, the models) and their design references are listed in their own THIRD_PARTY_NOTICES too.

About

做着玩的小东西都在这儿 — 一个仓一个子目录一个 Pages 站点 / Small things built for fun: one repo, a subfolder each, one Pages site

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages