← @electriceeli

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

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.