# Narrat

Script\-based narrative game engine with dialogue, skill checks, inventory and quests\.

ID: Q993 · Revision: 1041

Type: software · License: MIT engine; game content and bundled dependencies retain their own terms[^license] · Status: active

Website: https://narrat.dev/



Narrat is a game engine for interactive fiction and narrative role\-playing games\. Authors write dialogue and branching logic in its own scripting language, with built\-in systems for skills, items and quests\. Its browser\-oriented presentation combines dialogue, character portraits and interactive screens; desktop distribution uses a separate packaging workflow\.[^home][^build]

## Script\-based authoring

A project separates narrative scripts from configuration and presentation\. Scripts organize commands into named labels: jumps transfer control, while function\-like calls can return to the caller\. Indentation determines the nesting of branches, and variables and expressions drive conditions\. This is a domain\-specific programming workflow, even though simple stories need relatively little syntax\. CSS provides a separate route for changing the interface\.[^syntax][^home]

## Stateful narrative mechanics

Skills can gain experience and levels, influence choices, or trigger passive narrative checks\. Their configuration controls dice and difficulty behavior, while TypeScript overrides allow more specialized rules\. Inventory and quest systems complement these checks\. A writer can therefore build a story where character state changes available outcomes without first designing all of those interfaces from scratch; the actual rules still require configuration and testing\.[^skills][^home]

## Saving and replay boundaries

The saving guide describes browser local storage and checkpoints generated when entering a label\. Loading can replay dialogue within that label rather than restoring an exact line\. It distinguishes a shared autosave with manual slots from per\-playthrough autosave slots\. A stable save\-file identifier is important for existing saves, and dynamic configuration changes may need a reload hook\. These details affect scene length and the placement of manual\-save prompts\.[^save]

## Building and distribution

A web build produces a static site that must be served over HTTP rather than opened directly as a local file\. The desktop template packages the web application using Electron and Electron Forge; makers and output packages vary by operating system\. Shipping the generated distribution is distinct from sharing the source project\. These documented routes do not establish console certification or a universally portable executable\.[^build]

## Localization and upgrades

The current localization guide documents support beginning with Narrat 4\.0\.0, using language configuration and translation resources for player\-facing text\. Existing projects need more than a package\-number change: the migration guide identifies Node\.js 22 or newer, a changed stylesheet import, and optional template, build\-script and settings\-interface updates\. Custom code and styling need reconciliation rather than blind replacement\. These version\-specific documents are more useful for migration than older general feature summaries\.[^localize][^migration]

## Licensing

The engine's MIT license permits modification and commercial distribution with its copyright and permission notices retained\. It does not provide a warranty\. That engine permission is separate from rights in a game's writing, art, audio and other dependencies, so adopting the template does not by itself settle the terms for every part of a finished release\.[^license][^build]

## Substitution considerations

Narrat can substitute for [Twine](/twine) for choice\-driven browser fiction, particularly when skills and persistent character state are central to the design\. The tradeoff is a script\-and\-project workflow rather than Twine's visual passage organization\. This assessment concerns creating an experience with overlapping narrative tasks; it does not establish automatic conversion of Twine passages, story\-format macros or existing saves\. No hands\-on migration or platform testing was performed\.[^home][^syntax][^save][^twine]

## Capabilities and substitutions

### Branching dialogue and skill checks — supported

Scripts support choices and variables; configured skills can determine active or passive narrative outcomes\.[^syntax][^skills]

Use case: Choice\-driven narrative games with RPG\-style state · Platforms: Web, Windows desktop packaging, macOS desktop packaging, Linux desktop packaging · Region: Version, build and integration requirements apply

### Save checkpoints — limited

Documented saves resume at a label boundary rather than the exact dialogue line; browser storage and stable save identifiers matter\.[^save]

Use case: Choice\-driven narrative games with RPG\-style state · Platforms: Web, Windows desktop packaging, macOS desktop packaging, Linux desktop packaging · Region: Version, build and integration requirements apply

### Localization — supported

The version 4 documentation describes i18next\-backed language resources and configuration; older games need migration\.[^localize][^migration]

Use case: Choice\-driven narrative games with RPG\-style state · Platforms: Web, Windows desktop packaging, macOS desktop packaging, Linux desktop packaging · Region: Version, build and integration requirements apply

### Web and desktop delivery — limited

Web builds need an HTTP server; desktop packaging uses Electron and platform\-specific makers\.[^build]

Use case: Choice\-driven narrative games with RPG\-style state · Platforms: Web, Windows desktop packaging, macOS desktop packaging, Linux desktop packaging · Region: Version, build and integration requirements apply

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

Can replace authoring of choice\-driven browser fiction when integrated RPG state is useful\. This is a workflow assessment, not Twine passage/macro import or equivalent visual authoring\.[^home][^syntax][^twine]

Use case: Choice\-driven narrative games with RPG\-style state · Platforms: Web, Windows desktop packaging, macOS desktop packaging, Linux desktop packaging · Region: Version, build and integration requirements apply

## References

[^home]: [Narrat overview](<https://narrat.dev/>) — How it works and feature overview (vendor; retrieved 2026-10-07T20:52:59Z)

[^syntax]: [Narrat language syntax](<https://docs.narrat.dev/scripting/language-syntax.html>) — Labels, jump/run, indentation and variables (vendor; retrieved 2026-10-07T20:52:45Z)

[^skills]: [Narrat skills system](<https://docs.narrat.dev/features/skills.html>) — Active and passive checks, configuration and TypeScript overrides (vendor; retrieved 2026-10-07T20:52:59Z)

[^save]: [Narrat saving and reloading](<https://docs.narrat.dev/features/save-and-load.html>) — Local storage, label checkpoints, save slots and reload hooks (vendor; retrieved 2026-10-07T20:52:45Z)

[^build]: [Building and exporting Narrat games](<https://docs.narrat.dev/guides/building-and-exporting.html>) — Web server requirement and Electron/Forge desktop packaging (vendor; retrieved 2026-10-07T20:50:19Z)

[^localize]: [Narrat localization](<https://docs.narrat.dev/features/localization.html>) — Localization from 4\.0\.0; configuration and translation resources (vendor; retrieved 2026-10-07T20:50:19Z)

[^migration]: [Narrat 4 migration](<https://docs.narrat.dev/tutorials/narrat-4-migration.html>) — Node 22, template changes, localization and UI migration (vendor; retrieved 2026-10-07T20:52:50Z)

[^license]: [Narrat MIT license](<https://github.com/liana-p/narrat-engine/blob/main/LICENSE>) — Permission, notice requirement and warranty disclaimer (vendor; retrieved 2026-10-07T20:53:12Z)

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

Source revision: https://substitutefor.net/entities/Q993?revision=1041
