Skip to content

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

Advanced mechanics

Engineering

  • Headless testing — deterministic simulation tests with advance and manualScheduler, 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.