Twine icon

Twine

Standard softwareFOSS · GPL-3.0

GPL visual hypertext story mapper & interactive fiction tool

Free (GPL-3.0) · Chris Klimas & Contributors · Standard software workflow; Steam AI disclosure does not apply.

AI
Standard
IP
Commercial-Safe IP
Engines
Web / JS, Godot, Unity
Platforms
Web · Windows · macOS · Linux
Version
2.9
Technical Summary

Twine is a 100% free, GPL-3.0 open-source visual hypertext story mapper and interactive fiction tool for Web, Windows, macOS, and Linux. Publishing standalone playable HTML games via SugarCube or Harlowe or exporting structured Twee and JSON passage graphs for Godot and Unity, it accelerates zero-royalty narrative prototyping.

Technical Overview

Architecture and Production Workflow

Created by Chris Klimas (v2.9), Twine lowers the barrier between narrative brainstorming and playable builds to near zero. Writers lay out branching scenes on an infinite 2D passage canvas: typing [[Examine the airlock->Airlock Scene]] inside a passage automatically draws a directed arrow and spawns the target card, making dead ends, circular loops, and act bottlenecks immediately visible across the map.

Twine separates its visual graph editor from pluggable Story Formats and CLI build tooling:

  • SugarCube 2 vs. Harlowe: Harlowe offers approachable, structured macros for rapid prototyping, whereas SugarCube 2 provides a full production HTML5 interactive-fiction engine complete with persistent save/load slots, inventory variables, JavaScript hooks, audio playlist managers, and full CSS UI skinning.
  • Single-File Web Publishing: Compiles self-contained .html builds ready to upload straight to itch.io or wrap into commercial Steam desktop apps via Electron, Tauri, or NW.js.
  • Engine & Git Pipelines: Advanced teams pair Twine with Tweego (compiling plain-text Twee 3 .twee files in Git) or install the Twison story format to export structured .json passage graphs for custom Godot, Unity, or web dialogue parsers.

Pricing, Licensing, and Commercial Rights

The Twine application is 100% free and open source under GPL-3.0, while core runtime story formats such as SugarCube 2 (BSD-2-Clause) and Harlowe (Zlib) use permissive non-copyleft licenses. Consequently, standalone HTML games and exported .twee / .json narrative files carry zero GPL source-disclosure requirements and 0% royalties on itch.io, Steam, and mobile stores.

Strengths and Tradeoffs in Studio Pipelines

Pipeline DimensionTwine AdvantageLimitation / When to Swap
Prototyping VelocityGoes from blank canvas to a clickable URL playtest build shared with teammates in minutesNative output is a browser HTML document, not an embedded C#/GDScript VM like ink or Yarn Spinner
Visual Topology2D passage map exposes orphaned scenes and broken links instantly without external pluginsGUI story storage defaults to single HTML archives unless converted to plain-text .twee via Tweego for Git
Standalone IF ShippingSugarCube 2 handles complete text-RPG UIs, save systems, and CSS styling without a separate game engineLarge 3D/2D NPC bark systems with localized VO tables are much cleaner in Yarn Spinner or articy:draft X

AI Transparency & Steam Disclosure

Standard Software

Procedural math, physics, or manual authoring software.

Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.

Technical FAQ about Twine

Can I sell a standalone Twine game commercially on Steam or itch.io under GPL-3.0?
Yes. GPL-3.0 applies only to the Twine desktop/web editor source code itself. Playable HTML builds published using SugarCube 2 (BSD-2-Clause) or Harlowe (Zlib) are governed by permissive runtime licenses, letting you sell closed-source commercial titles wrapped in Electron or Tauri royalty-free.
Should I use Harlowe or SugarCube 2 in Twine?
Use Harlowe for quick narrative greyboxing, design docs, or simple hypertext stories. Choose SugarCube 2 from day one if you plan to ship a commercial interactive fiction game needing multiple save slots, custom CSS layouts, audio controls, inventory macros, or custom JavaScript.
How do teams import Twine stories into Unity or Godot?
Load the lightweight Twison story format into Twine to export your entire passage map, tags, and outgoing links as clean JSON, or author in Twee 3 (.twee) plain text. While workable for prototypes, dedicated in-engine dialogue is usually smoother in Yarn Spinner or ink.

More tools like Twine