日本語 · English
A foundation for letting AI write your programs
All you do is tell the AI what you want, in plain language.
The AI handles reading, writing, fixing, and testing the code.
If you want AI to build things for you but the code keeps falling apart between sessions — this addresses the problem from the structural side, not by hoping the model gets smarter.
A built-in mechanism crushes the combinatorial state-bugs that usually make AI-written code "work halfway, then collapse." It's especially effective for things with lots of branching logic: game rules, business rules, app UI state.
No commands to type. Just ask the AI in plain language.
Play them right on this page. Click a title to open in a new tab.
Click to paint colors that spread. When every ball is one color, you win. Touch friendly.
Drag the cursor to attract or repel particles. Touch friendly.
Hurtle through space and fly through rings. Drag or use arrow keys to steer; the radar at the bottom-left shows the next ring.
Cells + formula parser + dependency graph + recalc + UI — all in one 585-line file. SUM / AVG / IF / ranges / cycle detection.
Visual programming. Drag nodes, wire output ports to input ports, watch values flow into Output. DAG evaluation + cycle detection + pan + delete in one 514-line file.
Columns / cards / drag-and-drop (cards and columns both reorder) / inline edit / Undo / auto-save — all in one 554-line file.
Vector drawing tool. Tools / shapes / selection & resize handles / layers / properties panel / Undo / PNG export — all in one file.
Windows 10/11 instructions. All commands run in PowerShell (Start menu → "PowerShell").
On Mac/Linux, swap winget for brew / your package manager and the PowerShell env line for export in ~/.zshrc.
Empirically, gemini-cli is most stable on WezTerm (less likely to produce garbled output or input drift). Stating the fact, not explaining it.
node -v. Update if older than v20 (gemini-cli requires v20+).gemini --version.Read AI_ONBOARDING.md first, then build [what you want]Every demo above (Constraint Burst / Color Swarm / Space Race) is built as zero-dependency vanilla HTML + JS in one file. No framework, no build step.
The "heavy function + one file + zero deps" stance comes from a premise of ai-desk: the AI must be able to hold the whole file inside a single attention spotlight (each demo is roughly 200–500 lines).
Ask the AI "build this" and it can produce new games, visualizers, and small tools using the same structure, one after another. The demos you just touched are the exact templates you can ask for.