# Tweego

Command\-line compiler for text\-authored Twine and Twee interactive stories\.

ID: Q205 · Revision: 189

Type: software · License: BSD\-2\-Clause compiler; story formats and bundled content have separate terms[^license] · Status: active

Website: https://www.motoslave.net/tweego/



Tweego compiles interactive stories from plain\-text sources into HTML using a Twine story format\. It lets writers keep passages in one or several files and use a separate text editor\. The compiler replaces part of the authoring and build workflow, while the selected story format supplies the player\-facing runtime\.[^home][^docs]

## Authoring workflow

Writers organize passages in their preferred editor and compile a playable HTML artifact when they want to test or distribute the story\. Splitting a project into ordinary text files can make changes easier to inspect in a source\-control workflow\. This is useful when editing prose alongside code, but it does not provide Twine's visual story\-map interface\.[^home][^twine]

## Passages and project metadata

Twee 3 identifies each passage with a header followed by its content\. Headers can carry tags and position or size metadata, while the StoryData passage holds project\-level information such as the story identifier, starting passage and story\-format details\. This distinction allows textual sources to retain organizational information without treating passage coordinates as narrative logic\. The specification recommends UTF\-8 and unique passage names\.[^spec]

## Runtime and media boundaries

The compiler must locate an installed story format\. Its default is SugarCube 2, but other formats can be selected\. Format decoding is strict, so a malformed package may fail even if another tool accepts it\. Embedded image, audio and video passages also depend on support in the selected runtime\. Bundling a file is therefore not proof that every story format can display or play it\.[^docs]

## Rebuilding and version selection

Watch mode rebuilds changed inputs\. StoryData's format\-version selects the highest installed release within the specified major version, rather than necessarily pinning the exact version written there; selecting a format ID gives more explicit control\. Directories are searched recursively, so unrelated assets should be kept outside the input tree when they should not be bundled\.[^docs]

## Interchange and release history

Tweego's documented history includes Twine archive output, HTML decompilation fixes, and the addition of Twee 3 with read\-only support for unofficial Twee2 notation\. These provide practical interchange routes, but should not be interpreted as a universal conversion between story formats' macros\. The download page lists version 2\.1\.1 packages for Windows, macOS and Linux; this does not verify compatibility with every current operating\-system release or processor architecture\.[^release][^home][^docs]

## Distribution and licensing

The compiler is distributed under a two\-clause BSD license, permitting source and binary redistribution with the required notices and disclaimer\. A game's selected runtime and included media need their own licensing review\. As with other Twine HTML output, generating the file is separate from hosting it: a download service may let readers obtain the file without offering in\-browser play\.[^license][^publish]

## Substitution considerations

Tweego can substitute for the authoring\-and\-compilation portion of [Twine](/twine) when a team prefers text files and scripted builds\. It can also complement that ecosystem rather than replace the runtime\. The choice is chiefly about how a story is maintained: a text\-editor workflow trades visual passage arrangement for explicit source files\. Existing stories still need testing with their chosen format; no automatic migration or hands\-on compatibility testing is claimed here\.[^home][^twine][^spec]

## Capabilities and substitutions

### Text\-to\-HTML compilation — supported

Combines passage files with a selected story format\.[^home]

Use case: Text\-based authoring and compilation of Twine stories · Platforms: Windows, macOS, Linux, Web output · Region: Version, build and integration requirements apply

### Watch rebuilding — supported

Rebuilds after input changes; release 2\.1\.1 fixed a rename/move crash\.[^release]

Use case: Text\-based authoring and compilation of Twine stories · Platforms: Windows, macOS, Linux, Web output · Region: Version, build and integration requirements apply

### Story\-format compatibility — limited

Strict format decoding can reject malformed packages; media\-passage support depends on runtime\.[^docs]

Use case: Text\-based authoring and compilation of Twine stories · Platforms: Windows, macOS, Linux, Web output · Region: Version, build and integration requirements apply

### [Substitute for Twine](/twine) — limited

Replaces visual\-editor authoring with text files and command\-line compilation for compatible stories, while retaining a Twine story format\.[^home][^twine]

Use case: Text\-based authoring and compilation of Twine stories · Platforms: Windows, macOS, Linux, Web output · Region: Version, build and integration requirements apply

## References

[^home]: [Tweego overview and downloads](<https://www.motoslave.net/tweego/>) — Text\-editor workflow; listed Windows, macOS and Linux packages (vendor; retrieved 2026-10-07T20:53:12Z)

[^docs]: [Tweego documentation](<https://www.motoslave.net/tweego/docs/>) — Story formats, input processing, watch mode and version selection (vendor; retrieved 2026-10-07T20:53:58Z)

[^spec]: [Twee 3 specification](<https://github.com/iftechfoundation/twine-specs/blob/master/twee-3-specification.md>) — Passage headers, metadata and StoryData (vendor; retrieved 2026-10-07T20:54:04Z)

[^release]: [Tweego release notes](<https://www.motoslave.net/tweego/releases.php>) — 2\.1\.1 watch fix; 2\.0 Twee 3 support; archive and decompilation changes (vendor; retrieved 2026-10-07T20:54:04Z)

[^license]: [Tweego license](<https://github.com/tmedwards/tweego/blob/master/LICENSE>) — Two\-clause redistribution license and disclaimer (vendor; retrieved 2026-10-07T20:54:04Z)

[^twine]: [Twine overview](<https://twinery.org/>) — Visual nonlinear story authoring and HTML output (vendor; retrieved 2026-10-07T20:47:21Z)

[^publish]: [Publishing a Twine story](<https://twinery.org/reference/en/publishing/publishing.html>) — HTML distribution and hosting distinction (vendor; retrieved 2026-10-07T20:54:18Z)

Source revision: https://substitutefor.net/entities/Q205?revision=189
