{"schemaVersion":"1.0","record":{"label":"ink","description":"Narrative scripting language and runtime with Inky authoring and game-engine integrations.","aliases":["inkle ink"],"kind":"software","website":"https://www.inklestudios.com/ink/","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.","license":"MIT-licensed core, Inky editor and ink Unity integration","lifecycle":"active","example":false,"features":[{"name":"Narrative state serialization","status":"supported","detail":"Runtime story state can be saved and restored as JSON, separate from surrounding game data.","useCase":"Persist branching narrative","platforms":["Authoring and runtime targets differ; see article"],"region":"Distribution platforms, component licenses and content rights apply","evidence":[{"url":"https://github.com/inkle/ink/blob/master/Documentation/RunningYourInk.md","locator":"Runtime text/choice integration, variable access and JSON story state","retrievedAt":"2026-10-06T22:55:42Z","kind":"vendor"}]},{"name":"Runtime portability","status":"limited","detail":"Compiler/runtime compatibility and differences in community ports must be considered.","useCase":"Ship stories across runtimes","platforms":["Authoring and runtime targets differ; see article"],"region":"Distribution platforms, component licenses and content rights apply","evidence":[{"url":"https://github.com/inkle/ink","locator":"C# runtime, compiler, community inkjs and internal story/save format versions","retrievedAt":"2026-10-06T22:55:08Z","kind":"vendor"}]}],"alternatives":[],"slug":"ink","draftAlternatives":[{"targetSlug":"yarn-spinner","status":"limited","detail":"Can provide narrative logic with custom game integration; scripts, commands and state are not drop-in compatible.","useCase":"Embedded branching narrative","platforms":["Authoring and runtime targets differ; see article"],"region":"Distribution platforms, component licenses and content rights apply","evidence":[{"url":"https://github.com/inkle/ink/blob/master/Documentation/RunningYourInk.md","locator":"Runtime text/choice integration, variable access and JSON story state","retrievedAt":"2026-10-06T22:55:42Z","kind":"vendor"},{"url":"https://docs.yarnspinner.dev/components/dialogue-runner","locator":"Unity runner, presenters, line providers and in-memory default variable storage","retrievedAt":"2026-10-06T22:55:42Z","kind":"vendor"}]},{"targetSlug":"sugarcube","status":"limited","detail":"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.","useCase":"Authoring standalone choice-based web fiction","platforms":["Inky on Windows, macOS, Linux","Web runtime"],"region":"Authoring tool, runtime version and content rights apply","evidence":[{"url":"https://www.inklestudios.com/ink/","locator":"MIT language/editor/Unity plugin; JSON and web exports; middleware role","retrievedAt":"2026-10-06T22:55:08Z","kind":"vendor"},{"url":"https://www.motoslave.net/sugarcube/2/","locator":"Twine/Twee format, browser requirements and format-specific add-ons","retrievedAt":"2026-10-11T14:49:20Z","kind":"vendor"},{"url":"https://github.com/tmedwards/sugarcube-2/blob/master/docs/core/twinescript.md","locator":"Story versus temporary variables, expressions and serializable state constraints","retrievedAt":"2026-10-11T14:49:20Z","kind":"vendor"}]}],"evidence":[{"url":"https://www.inklestudios.com/ink/","locator":"MIT language/editor/Unity plugin; JSON and web exports; middleware role","retrievedAt":"2026-10-06T22:55:08Z","kind":"vendor"},{"url":"https://github.com/inkle/ink","locator":"C# runtime, compiler, community inkjs and internal story/save format versions","retrievedAt":"2026-10-06T22:55:08Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://www.inklestudios.com/ink/","locator":"MIT language/editor/Unity plugin; JSON and web exports; middleware role","retrievedAt":"2026-10-06T22:55:08Z","id":"ink-home","title":"ink and Inky overview","kind":"vendor"},{"url":"https://github.com/inkle/ink","locator":"C# runtime, compiler, community inkjs and internal story/save format versions","retrievedAt":"2026-10-06T22:55:08Z","id":"ink-repo","title":"ink official repository","kind":"vendor"},{"url":"https://github.com/inkle/ink/blob/master/Documentation/RunningYourInk.md","locator":"Runtime text/choice integration, variable access and JSON story state","retrievedAt":"2026-10-06T22:55:42Z","id":"ink-runtime","title":"Running ink in a game","kind":"vendor"},{"url":"https://docs.yarnspinner.dev/components/dialogue-runner","locator":"Unity runner, presenters, line providers and in-memory default variable storage","retrievedAt":"2026-10-06T22:55:42Z","id":"yarn-runner","title":"Yarn Spinner dialogue runners","kind":"vendor"},{"url":"https://twinery.org/","locator":"Nonlinear stories, HTML publishing and commercial use","retrievedAt":"2026-10-06T22:55:08Z","id":"twine-home","title":"Twine overview","kind":"vendor"},{"url":"https://www.motoslave.net/sugarcube/2/","locator":"Twine/Twee format, browser requirements and format-specific add-ons","retrievedAt":"2026-10-11T14:49:20Z","id":"sugarcube-home","title":"SugarCube overview","kind":"vendor"},{"url":"https://github.com/tmedwards/sugarcube-2/blob/master/docs/core/twinescript.md","locator":"Story versus temporary variables, expressions and serializable state constraints","retrievedAt":"2026-10-11T14:49:20Z","id":"sugarcube-script","title":"SugarCube TwineScript reference","kind":"vendor"}],"overviewCitations":["ink-home","ink-repo"],"licenseCitations":["ink-home"],"sections":[{"id":"writing","heading":"Writing and compilation","paragraphs":[{"id":"editor","content":[{"text":"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."}],"citations":["ink-home"]},{"id":"integration","content":[{"text":"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."}],"citations":["ink-repo"]}]},{"id":"state","heading":"Game state and version boundaries","paragraphs":[{"id":"saving","content":[{"text":"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."}],"citations":["ink-runtime"]},{"id":"versions","content":[{"text":"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."}],"citations":["ink-repo"]}]},{"id":"substitution","heading":"Licensing and substitution","paragraphs":[{"id":"comparison","content":[{"text":"The core language, Inky and Unity integration are available under MIT terms. ink can substitute for "},{"text":"Yarn Spinner","targetSlug":"yarn-spinner"},{"text":" 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."}],"citations":["ink-home","ink-runtime","yarn-runner","twine-home"]},{"id":"comparison-sugarcube","content":[{"text":"ink with Inky can substitute for a "},{"text":"SugarCube","targetSlug":"sugarcube"},{"text":" 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."}],"citations":["ink-home","sugarcube-home","sugarcube-script"]}]}]},"id":"Q134","revision":1572,"updatedAt":"2026-10-19T12:13:04Z","sourceUrl":"https://substitutefor.net/entities/Q134?revision=1572"}}