Twine
A tool for writing branching interactive stories.
Each passage a box, each choice an arrow: the branching story drawn as a map.
Twine is a free, open-source tool for interactive, nonlinear stories, created by Chris Klimas in 2009. Passages are written as linked boxes on a map, no code is needed for a simple story, and variables, conditions, CSS and JavaScript can be added later. Twine 2 runs in the browser or as a desktop app and publishes to a single HTML file.
It made branching fiction writable without programming, and it is the easiest way to prototype a choice-based story or a game's narrative before building anything else.
Example
Twine (twinery.org, read 2026)
The site describes an open-source tool for interactive, nonlinear stories that needs no code for a simple story, can be extended with variables, conditional logic, images, CSS and JavaScript, and publishes directly to HTML.
How to use it
- Write passages first; link them with double brackets.
- Keep the map readable: one branch at a time.
- Add variables only when a choice must be remembered.
- Publish to HTML and test every path.
Common mistakes
- Branching so widely that no path is finished.
- Choices that change nothing; readers notice.