Appearance
Recipes
Copy-paste starting points for common idle-game patterns. Each recipe is a complete, self-contained example using only public imports — take one, rename the resources, and build from there.
Basics
- Simple clicker — state, a click action, DOM bindings, start. The smallest complete game.
- Idle production — passive income with the producers mechanic: cost curves, bulk buy, progress display.
- @idlekitjs/economy — resource declarations, upgrade previews, transactions, formatting and cost curve recipes.
Shipping essentials
- Save & load in the browser — versioned saves, autosave, reset button.
- Offline progress — page lifecycle + offline catch-up + a "welcome back" summary.
Advanced mechanics
- Crafting machine — recipes, a machine, a progress bar, and an auto-restart policy.
- Temporary boost — grant, countdown UI, expiry.
- Boosted production — boosts feeding the modifier registry feeding producers.
Engineering
- Headless testing — deterministic simulation tests with
advanceandmanualScheduler, no DOM.
The games are recipes too
The repository's games/ folder contains complete games built on these same APIs — when a recipe feels too small, read how a real game wires the same pieces.