substitutefor

software · Q134

ink

Narrative scripting language and runtime with Inky authoring and game-engine integrations.

Suggest a correction

Overview

ink is a narrative scripting language and runtime from inkle for branching stories. Its text-first authoring model supports both standalone interactive fiction and narrative embedded in a larger game. Inky is the companion editor; the runtime, editor and engine integrations are related components rather than a single complete graphical game engine.[1][2]

Writing and compilation

Inky provides a live play pane, error highlighting and navigation between story sections. It can export compiled JSON or a web version for customization. This lets a writer preview choices during editing while retaining the original text as the authoring source, distinct from the compiled file consumed by a game.[1]

The core runtime is written in C#, while the community-maintained inkjs implementation supports JavaScript-based delivery. Unity integration can recompile changed source automatically. The repository explicitly describes ink as middleware: a larger game supplies its own interface and connects narrative output to other systems.[2]

Game state and version boundaries

The runtime exposes story state as JSON for saving and loading. This is the narrative component's state, so integrating it into a larger title still requires coordination with that game's other data. Saving an ink conversation does not by itself preserve an unrelated inventory, world simulation or graphical scene.[3]

The compiler, editor and integration versions must be considered together. The repository distinguishes internal story and save-format versions, and notes that the JavaScript port may lag the main engine. A compiled story should therefore be checked against the runtime actually shipped, rather than treating every JSON export as version-independent.[2]

Licensing and substitution

The core language, Inky and Unity integration are available under MIT terms. ink can substitute for Yarn Spinner for branching narrative logic embedded in a game, but its source syntax, command hooks and state handling require integration work. For standalone browser fiction it can also cover tasks handled by Twine, with a text-centric workflow instead of a visual passage map.[1][3][4][5]

ink with Inky can substitute for a SugarCube story workflow when the goal is standalone choice-based fiction delivered on the web. Inky’s text editor, live play preview and web export suit writers who prefer to develop branching prose in source text. SugarCube is a Twine/Twee story format, while ink uses its own language and runtime. Rebuild variables, conditional choices and presentation; SugarCube macros, add-ons and saved games are not established as interchangeable with an ink story.[1][6][7]

Capabilities & limitations

Narrative state serialization

supported

Runtime story state can be saved and restored as JSON, separate from surrounding game data.[3]

Persist branching narrative · Authoring and runtime targets differ; see article · Distribution platforms, component licenses and content rights apply

1 source · check evidence
https://github.com/inkle/ink/blob/master/Documentation/RunningYourInk.md

Runtime text/choice integration, variable access and JSON story state

vendor · checked 2026-10-06

Runtime portability

limited

Compiler/runtime compatibility and differences in community ports must be considered.[2]

Ship stories across runtimes · Authoring and runtime targets differ; see article · Distribution platforms, component licenses and content rights apply

1 source · check evidence
https://github.com/inkle/ink

C# runtime, compiler, community inkjs and internal story/save format versions

vendor · checked 2026-10-06

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

Yarn Spinner for Embedded branching narrative

limited

Can provide narrative logic with custom game integration; scripts, commands and state are not drop-in compatible.[3][4]

Authoring and runtime targets differ; see article · Distribution platforms, component licenses and content rights apply

SugarCube for Authoring standalone choice-based web fiction

limited

With Inky, covers authoring and web export of standalone choice-based fiction. Requires rewriting story logic and presentation; SugarCube macros, add-ons and saves are not established as compatible.[1][6][7]

Inky on Windows, macOS, Linux, Web runtime · Authoring tool, runtime version and content rights apply

References

  1. ink and Inky overview

    MIT language/editor/Unity plugin; JSON and web exports; middleware role

    vendor · retrieved 2026-10-06
  2. ink official repository

    C# runtime, compiler, community inkjs and internal story/save format versions

    vendor · retrieved 2026-10-06
  3. Running ink in a game

    Runtime text/choice integration, variable access and JSON story state

    vendor · retrieved 2026-10-06
  4. Yarn Spinner dialogue runners

    Unity runner, presenters, line providers and in-memory default variable storage

    vendor · retrieved 2026-10-06
  5. Twine overview

    Nonlinear stories, HTML publishing and commercial use

    vendor · retrieved 2026-10-06
  6. SugarCube overview

    Twine/Twee format, browser requirements and format-specific add-ons

    vendor · retrieved 2026-10-11
  7. SugarCube TwineScript reference

    Story versus temporary variables, expressions and serializable state constraints

    vendor · retrieved 2026-10-11

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
15722026-10-19 12:13:04/* wbeditentity-statements-multiple-properties-update:0||2 */ sf:c4f89717-31c3-4de3-bde9-77ece5f17dc2:v1 | Add ink with Inky → SugarCube for standalone choice-based web fiction. Distinguish authoring tools and runtimes, and qualify macro, add-on and save migration. P | attribution: /proposals/c4f89717-31c3-4de3-bde9-77ece5f17dc2
1182026-10-10 06:45:01/* wbeditentity-create-item:0| */ sf:d6cf8b0a-1f61-4d6f-b1cc-5a3379044d10:v1 | Add ink with cited narrative workflows, licensing and deployment limits. | attribution: /proposals/d6cf8b0a-1f61-4d6f-b1cc-5a3379044d10