# Twine

Visual passage\-based authoring tool for interactive stories published as HTML\.

ID: Q854 · Revision: 902

Type: software · License: GPL\-3\.0 editor; story formats have separate licenses; commercial stories permitted[^twine-repo][^twine-home] · Status: active

Website: https://twinery.org/



Twine is an authoring tool for interactive, nonlinear stories\. Writers arrange linked passages and can add variables, conditional behavior, images and styling as needed\. A published story runs as HTML without requiring players to install the editor, making the tool useful for browser\-based fiction and narrative prototypes\.[^twine-home][^twine-concepts]

## Passages and story formats

Twine's editor is distinct from the story format that supplies a story's runtime behavior\. Formats determine available macros, syntax and presentation\. They combine passage data with code into the published HTML\. Changing the selected format is therefore not simply changing a visual theme: existing format\-specific logic may need to be rewritten\.[^twine-formats]

Simple linked stories can be written without conventional programming, while more elaborate interactions use the chosen format's features\. CSS and JavaScript provide additional customization\. This supports text\-centered interactive experiences, but does not imply a general 3D engine or an automatic implementation of every game mechanic\.[^twine-home]

## Storage and publishing

Browser Twine keeps its story library in browser storage rather than a remotely synchronized account\. The desktop application keeps local story files\. Desktop backups are created automatically, whereas browser users must preserve their work through Archive\. Clearing browser data without a separate backup can therefore affect authoring work even if the website remains available\.[^twine-concepts][^twine-backup]

Publishing creates an HTML file, not a hosted website\. A creator can distribute it directly or place it on a host that serves playable HTML\. Some cloud file services only offer downloads, so uploading the file somewhere does not necessarily let a reader play it in place\.[^twine-publish]

## Licensing and substitution

The editor is GPL\-licensed, while the project expressly permits commercial stories\. Twine can substitute for [ink](/ink) with Inky for self\-contained, choice\-based browser fiction when visual passage organization is preferred\. It is not a source\-compatible replacement for ink scripts or an equivalent game\-engine integration; story\-format licenses and any imported media remain relevant to distribution\.[^twine-repo][^twine-home][^ink-home]

## Capabilities and substitutions

### HTML story publishing — supported

Produces a playable HTML file; separate hosting is needed for online publication\.[^twine-publish]

Use case: Browser interactive fiction · Platforms: Authoring and runtime targets differ; see article · Region: Distribution platforms, component licenses and content rights apply

### Browser authoring backup — limited

The browser library is local storage and needs user\-created archives\.[^twine-concepts][^twine-backup]

Use case: Preserve narrative projects · Platforms: Authoring and runtime targets differ; see article · Region: Distribution platforms, component licenses and content rights apply

### [Substitute for ink](/ink) — limited

Visual passage authoring can replace the story\-writing task, but ink syntax and engine integrations are not interchangeable\.[^twine-home][^ink-home]

Use case: Choice\-based browser stories · Platforms: Authoring and runtime targets differ; see article · Region: Distribution platforms, component licenses and content rights apply

## References

[^twine-repo]: [Twine application repository](<https://github.com/klembot/twinejs>) — GPL\-3\.0 application and Windows/macOS/Linux packages (vendor; retrieved 2026-10-06T22:55:42Z)

[^twine-home]: [Twine overview](<https://twinery.org/>) — Nonlinear stories, HTML publishing and commercial use (vendor; retrieved 2026-10-06T22:55:08Z)

[^twine-concepts]: [Twine basic concepts](<https://twinery.org/reference/en/getting-started/basic-concepts.html>) — Passages, library storage and story formats (vendor; retrieved 2026-10-06T22:55:08Z)

[^twine-formats]: [Twine story\-format specification](<https://github.com/iftechfoundation/twine-specs/blob/master/twine-2-storyformats-spec.md>) — Story formats compile passage data into runnable HTML; syntax varies (vendor; retrieved 2026-10-06T22:55:08Z)

[^twine-backup]: [Twine backups](<https://play.twinery.org/reference/en/troubleshooting/backups.html>) — Desktop automatic backups versus browser Archive responsibility (vendor; retrieved 2026-10-06T22:55:08Z)

[^twine-publish]: [Publishing a Twine story](<https://twinery.org/reference/en/publishing/publishing.html>) — HTML file delivery versus hosting for browser play (vendor; retrieved 2026-10-06T22:55:08Z)

[^ink-home]: [ink and Inky overview](<https://www.inklestudios.com/ink/>) — MIT language/editor/Unity plugin; JSON and web exports; middleware role (vendor; retrieved 2026-10-06T22:55:08Z)

Source revision: https://substitutefor.net/entities/Q854?revision=902
