First public release of fable-engine, a tiny, framework-free TypeScript engine for interactive narratives.
What it does
- Plays interactive branching stories (scenes, state variables, choices, conditionals) in a Canvas 2D player.
- Exports each story as a single self-contained, offline
.htmlfile (file over app): no server, no network requests, opens in any browser. - Produces a deterministic summary of a story's algorithmic structure (scenes, variables, branches, modifiers) as evidence for interpreting computational thinking, not a score of cognitive faculties.
- Zero runtime dependencies. Strict TypeScript, no
any.
Validation
- Headless self-check: 20/20 passing.
- End-to-end (Playwright): 3/3, confirming the exported
.htmlplays offline with zero external network requests. - Strict typecheck clean; ESM +
.d.tsbuild.
Install
npm install fable-engine
Citing
See CITATION.cff. Developed within the RemidiAção platform (PPGIE/UFRGS) to operationalize the remediation of written texts into interactive digital narratives.