Play the game from the demo: https://buildwithstar.com/games/fd073fef-6525-422f-a0ef-d0fa...
Tell Claude Code, Cursor, or Codex to "build a game with a leaderboard using star-sdk" and it just works. The agent discovers the package, registers your game, and wires up audio, canvas, and leaderboards autonomously.
npx star-sdk init "My Game"
import Star from 'star-sdk';
Star.init({ gameId: '<gameId from .starrc>' });
Star.audio.play('coin'); // built-in sounds, works on iOS Safari
Star.leaderboard.submit(1250); // no backend, no auth
Star.leaderboard.show(); // built-in leaderboard UI
npx star-sdk deploy
# => Live at https://buildwithstar.com/games/<id>
Two commands: register and deploy. Everything in between is just code.Three things break every time you generate a browser game: audio on mobile (especially iOS Safari), canvas sizing across devices, and leaderboards without a backend. Star SDK fixes all three.
Audio is the sneaky one. Star SDK ships 17 procedural synth sounds that just work everywhere — no asset files, no loading screens. Bring your own MP3s when you're ready; the SDK handles cross-browser audio and iOS unlocking so you don't have to.
The SDK is the documentation. Built by LLMs, for LLMs — run "npx star-sdk install" and your AI agent gets full API docs, examples, and correct usage patterns automatically. No docs to read. The agent reads them for you.
"npx star-sdk deploy" gives you free hosting with a shareable link — leaderboards just work. No servers, no Vercel, no GitHub Pages.
Why I built this: I run a game platform (Star, YC S22) with over 2,000 published games built on the same SDK. These pain points came up constantly. Now extracted so anyone can use it.
Why free? The SDK feeds into Star, but works standalone. You never have to touch Star if you don't want to.
Try the examples: https://buildwithstar.com/sdk/examples/click-frenzy/ | https://buildwithstar.com/sdk/examples/dodge/ | https://buildwithstar.com/sdk/examples/reaction-time/ — single HTML files, view source to see the code.
See what others have built: https://buildwithstar.com/explore
npm: https://www.npmjs.com/package/star-sdk
Docs: https://buildwithstar.com/docs/sdk
GitHub: https://github.com/buildwithstar/star-sdk
Would love feedback — especially if you're building games with AI agents. What other pain points should this solve?