TypeScript · DOM-optional · MIT

A 2D grid for web games

Stateful coordinates, movement rules, events, zoom regions, and optional rendering — or use it headless as a pure matrix API.

Interactive demos

Coin mazes, event logging, zoom quadrants, and mobile touch controls — all built with the library.

Open demos →

API reference

Full TypeDoc coverage for GameGrid, options, events, zoom helpers, and exported types.

Read the docs →

Source on GitHub

Issues, releases, and the full README with install instructions and configuration examples.

View repository →