Launching today

Branching Story Kit
Zero-dep 207-line story-state kernel for AI fiction (MIT)
0 followers
Zero-dep 207-line story-state kernel for AI fiction (MIT)
0 followers
Zero-dependency 207-line ESM story-state kernel (MIT) that keeps flags, relationships, and scene graphs outside the LLM prompt window so AI fiction stops drifting. Built by Ouba Studio from our 10-app continuity benchmark, with live browser sandbox.

Launch Team

AWS Startup AdvisorPersonalized AWS guidance that meets you where you’re already building
Promoted
Hi Product Hunt — Ouba Studio here! We open-sourced branching-story-kit (MIT) after running a 15-turn continuity benchmark across 10 AI interactive fiction apps (dataset archived on Harvard Dataverse: https://doi.org/10.7910/DVN/YEBHQR).
The failure mode we kept hitting wasn't prose quality — it was silent state drift. By turn 10-15, prompt-only chat loops drop injuries, promises, inventory, and relationship axes or quietly contradict earlier canon.
branching-story-kit is a 207-line zero-dependency ESM kernel that separates canonical story state from LLM prose generation:
- Declarative JSON story graph (scenes, flags, relationship axes, transition guards)
- Deterministic reducer with invariant checks + undo/branch history
- Runs identically in browsers, Node, and edge runtimes — live sandbox: https://ouba-studio.github.io/br...
- Source (MIT): https://github.com/ouba-studio/b...
- Zenodo snapshot DOI: https://doi.org/10.5281/zenodo.2...
Would love feedback from anyone building interactive fiction, RPG state engines, or narrative AI tools!