One TypeScript codebase for the web (WebGPU, with a Canvas 2D fallback for 2D games), iPhone, macOS, Windows and Discord. Native builds compile with scriptc, so there is no JavaScript engine in the binary. Every frame is deterministic, so an agent can play the game headless, render any frame, and catch a netplay desync.
npm i -g dotframe # needs Bun on PATH
npx skills add crafter-games/dotframe # the agent skilldotframe new my-game --template blank # fighter, platformer, blank
cd my-game && dotframe devAgents start with dotframe skills get core.
dotframe sim --mash 7 --frames 600 --json # headless run: state + checksum
dotframe snap --frame 300 --mash 7 # render one frame through WebGPU
dotframe replay record replays/a.json --mash 7
dotframe replay verify replays/*.json # replays are the tests
dotframe desync --latency 120ms --jitter 30ms
dotframe build web|ios|macos|discord
dotframe deploy web --prod --dry-run # external actions need --yes
dotframe doctor --fixEvery command takes --json. Errors carry a code, a fix, and the skill to read.
A game opts in with a dotframe.json (targets, deploy, relay) and a sim module that default-exports defineSim from src/sim.ts.
Espresso perfecto · Craft Ones · Crafter Smash · The Ones
Shipped one? Add the badge:
<a href="https://dotframe.crafter.games">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/crafter-games/dotframe/main/assets/badge/made-with-dotframe-dark.svg">
<img alt="Made with dotframe" src="https://raw.githubusercontent.com/crafter-games/dotframe/main/assets/badge/made-with-dotframe-light.svg" height="32">
</picture>
</a>- docs/internals.md: source layout, vendored SDL3 and wgpu-native, building examples by hand
- CHANGELOG.md
MIT