# Chapbook

Twine 2 story format with passage variables, presentation modifiers and browser\-local progress\.

ID: Q1332 · Revision: 1380

Type: software · License: MIT; commercial stories allowed; included assets retain separate rights[^license][^home] · Status: active

Website: https://klembot.github.io/chapbook/



Chapbook is a story format for Twine 2: it supplies the runtime and presentation of a published browser story rather than replacing the Twine editor\. It combines linked passages with a dedicated variables section, text modifiers and inserts\. Its authoring tools include a backstage view for inspecting state and revisiting test scenarios\.[^home][^intro][^backstage]

## Capabilities and substitutions

### Passage state and conditional text — supported

Variables are set at passage entry; modifiers govern subsequent text blocks\.[^vars][^conditions]

Use case: Runtime and presentation for choice\-based Twine 2 stories · Platforms: Twine 2 authoring, Modern web browsers · Region: Version, build and integration requirements apply

### Nested conditional modifiers — unsupported

Modifiers cannot directly nest; compound conditions or embedded passages express the intended logic\.[^conditions]

Use case: Runtime and presentation for choice\-based Twine 2 stories · Platforms: Twine 2 authoring, Modern web browsers · Region: Version, build and integration requirements apply

### Progress persistence — limited

Automatic passage\-boundary saves use the current browser's local storage\.[^saves]

Use case: Runtime and presentation for choice\-based Twine 2 stories · Platforms: Twine 2 authoring, Modern web browsers · Region: Version, build and integration requirements apply

### Backstage testing — supported

Authors can inspect and change variables and restore local state snapshots\.[^backstage]

Use case: Runtime and presentation for choice\-based Twine 2 stories · Platforms: Twine 2 authoring, Modern web browsers · Region: Version, build and integration requirements apply

### [Substitute for SugarCube](/sugarcube) — limited

Can replace SugarCube as a Twine 2 runtime for newly authored choice stories, but macros, variable conventions and saving expectations need rewriting and testing\.[^intro][^conditions][^sugar]

Use case: Runtime and presentation for choice\-based Twine 2 stories · Platforms: Twine 2 authoring, Modern web browsers · Region: Version, build and integration requirements apply

## References

[^home]: [Chapbook overview](<https://klembot.github.io/chapbook/>) — Twine 2 format and MIT commercial\-use statement (vendor; retrieved 2026-10-07T21:01:27Z)

[^intro]: [Chapbook guide introduction](<https://klembot.github.io/chapbook/guide/en/>) — Runtime role, Twine version scope and design choices (vendor; retrieved 2026-10-07T21:01:33Z)

[^vars]: [The vars section](<https://klembot.github.io/chapbook/guide/en/state/the-vars-section.html>) — Evaluation, naming and underscore convention (vendor; retrieved 2026-10-07T21:02:33Z)

[^conditions]: [Conditional display](<https://klembot.github.io/chapbook/guide/en/state/conditional-display.html>) — Non\-nesting modifiers and explicit SugarCube comparison (vendor; retrieved 2026-10-07T21:01:45Z)

[^saves]: [Continuity between sessions](<https://klembot.github.io/chapbook/guide/en/state/continuity.html>) — Passage autosaves, browser\-local state and restart semantics (vendor; retrieved 2026-10-07T21:02:33Z)

[^backstage]: [State backstage](<https://klembot.github.io/chapbook/guide/en/state/backstage.html>) — Variable editing, local snapshots and history (vendor; retrieved 2026-10-07T21:02:53Z)

[^media]: [Publishing models](<https://klembot.github.io/chapbook/guide/en/multimedia/publishing-models.html>) — Relative assets and externally hosted media workflows (vendor; retrieved 2026-10-07T21:02:33Z)

[^audio]: [Chapbook audio](<https://klembot.github.io/chapbook/guide/en/multimedia/audio.html>) — Ambient/effect distinction, text descriptions and autoplay limits (vendor; retrieved 2026-10-07T21:02:53Z)

[^history]: [Chapbook version history](<https://github.com/klembot/chapbook/blob/develop/guide/en/references/version-history.md>) — 2\.0 extension/state changes and 2\.3\.1 removed Unsplash insert (vendor; retrieved 2026-10-07T21:03:59Z)

[^license]: [Chapbook MIT license](<https://github.com/klembot/chapbook/blob/develop/LICENSE>) — Permission and copyright\-notice requirement (vendor; retrieved 2026-10-07T21:02:53Z)

[^sugar]: [SugarCube overview](<https://www.motoslave.net/sugarcube/2/>) — Alternative Twine/Twee story format (vendor; retrieved 2026-10-07T21:01:27Z)

Source revision: https://substitutefor.net/entities/Q1332?revision=1380
