For Cursor, Claude Code, Codex and AI app builders
Paste one prompt. Get a multiplayer app.
Models write plain HTML and JavaScript well. The network part is what they usually get wrong, and tickcli takes it off their plate.
Build a planning-poker app for up to 12 people in one HTML file with tickcli. Read https://tickcli.com/docs/llms.txt first. Use Room() from game.js (it starts by itself and has the invite link). Each vote is the person's own state (room.me.set); Reveal and New round ask the host with room.act, and the host writes room.shared. Test it in two browser windows with npx tickcli-js.
Build a live poll for a meeting of up to 16 people in one HTML file with tickcli. Read https://tickcli.com/docs/llms.txt first. Use Room() from game.js. The host writes the question and the options to room.shared; each answer is the person's own state (room.me.set); show the totals as bars. Test it in two browser windows with npx tickcli-js.
Build a brainstorming idea wall for up to 16 people in one HTML file with tickcli. Read https://tickcli.com/docs/llms.txt first. Use Room() from game.js. Each person's cursor is their own state (room.me.set with x and y, so it glides). Adding a note is room.act("note", ...); the host adds it to room.shared.notes (at most 64 notes, 200 characters each). Test it in two browser windows with npx tickcli-js.
Build a 4-player party game in one HTML file with tickcli. Read https://tickcli.com/docs/llms.txt first. Use Game() from game.js for the lobby and the room; each player moves themselves with g.me.set({x, y}) and draws g.players; the host runs rounds and scores with g.shared.set inside host(). Test it in two browser windows with npx tickcli-js.
What models get wrong, and what tickcli does instead
| Usual bug in AI-written multiplayer code | With tickcli |
|---|---|
| A feature added later is never synced | Whatever the host writes to shared reaches every screen. No sync code per feature. |
| Someone who joins late sees an empty board | A late joiner gets the whole shared state and everyone's own state. |
| A phone that switched apps loses its seat | The seat is held 30 seconds after a drop, 5 minutes if the page was put away first. |
| Two people press at once and one change is lost | Changes to the shared state go through the host as actions, in order, never merged or dropped. |
| Anyone can send anything | Each field has a declared range and the hub refuses values outside it. Every message has a size and a rate limit. |
Three steps
- 1
Paste the prompt
Your AI reads llms.txt and writes one HTML file.
- 2
Run it
npx tickcli-jsin that folder, then open the page in two windows. - 3
Send the link
Take it live with the laptop-to-live guide.
See what it makes
The planning-poker prompt above describes the Planning Poker example in the repo.