Gamebook Compiler
A tool that unfolds a branching interactive-fiction story into a choose-your-own-adventure style EPUB, so it reads like a classic gamebook on an e-reader.
- Type
- Tool
- Role
- Solo
- Year
- 2025
- Status
- Shelved
- Built with
The idea
Interactive fiction typically lives in engines and browsers, with the likes of Twine, ChoiceScript, and a large variety of offshoots and variants.
Gamebooks live on paper: “turn to page 47”.
This tool takes a branching story and compiles it into an EPUB of linked sections, so it works on an e-reader with no runtime.
The moonshot idea was being able to go through a story and end up at the end with a “finish code” that records what happened in a simple string, what choices were made, etc, and then being able to get a follow up story after that. Maybe tied to being able to do some combination of Proc. Gen and LLM text generation. That feels like a better, more controllable, approach than the open ended LLM-guided roleplaying stories— they always felt too easy to nudge off topic, and plus, required a computer and/or internet connection.
Status
Because I’m a TypeScript dev, I naturally setup a way of parsing a nested JSON object of different sections into a branching epub.
It works on a small scale to create branches and compile into a functional ebook! Huzzah!
The idea is really neat and might have some more legs, but I shelved it somewhere lost between:
- You dive ever deeper into figuring out how to cull branches, and make this not a 10,000 page ebook…
- You get lost in developing better branching-narrative tooling…
- Figure out how to get an LLM to generate new texts and choices, based on your choices through the story…
- A new shiny project glimmers in the tall grass of your mind…