Squander your time building games

Squander is a code-first browser game toolkit for spending your time making games, not managing engine ceremony.

Code-first, loop-owned

Inspired by Love2D and MonoGame, Squander keeps the API close to the game itself. You own your systems and decide how they compose around the update and draw loops.

The runtime handles WebGPU setup, resources, input, scenes, and lifecycle. Your code owns game state, rules, and the order those systems run. The core stays independent of Svelte; add Svelte 5 when you want a UI layer.

Svelte for UI, atop your game

The web has made user interfaces powerful and flexible. Use Svelte for menus, HUDs, overlays, and settings instead of rebuilding entire layout systems and rendering flows—or settling for rudimentary substitutes.

Squander keeps the game state and loop in your hands while Svelte handles the interface around it.

Built for agentically aligned development

Public types, copyable examples, and deterministic verification make Squander legible to both humans and coding agents. Read the llms.txt for a compact, agent-facing map of the API, current scope, and supported workflows.

Start with a working game loop

Install Squander, create a browser-safe game, and get your first update and draw loop running.

Read Getting started →