nonelectric-engine
A small browser runtime for story games: branching dialogue, scene transitions, timers that only run while the game is in front of the player, and save/resume. It has no dependencies, no build step and needs no framework, and Astro is optional.
This is a private engine for my own games. The repository is private and the package is never published to npm. A game gets a version as a .tgz made by npm pack. See Installing the engine in a game.
In the engine repo:
npm start # http://localhost:4600/examples/parlour/
npm test
- Developer guide: quick start, API reference, and a worked example
- Installing the engine in a game: pack a release, install it, choose the dependency type, upgrade, and what stays private
- Sprite toolkit guide: an optional tool to draw, preview, approve and check pixel art
- Architecture (internal): what each piece does and leaves to the game, the rules that keep it working, and the choices made
- Code style guide: naming, screen code, and how to organize a growing game
- Crate delivery, Dodge, and Window garden: turn-based moves, continuous input, and offline growth
- The Quiet Parlour: a one-room mystery built on the engine, with its art made by the sprite toolkit
For browser regression tests, run npm ci, npx playwright install chromium, and npm run test:browser. The suite starts its own local server and exercises the Parlour playthrough and cross-tab save behavior.