Tools

Everything you need to write, check and ship an OSF story.

Write by hand in your editor or visually in LoreHub, check and convert with the osf CLI, and play the result in your game. Every tool here is free to start with.

One binary with no dependencies, for macOS, Linux and Windows. It checks a project against the spec, formats .osf files for clean diffs, converts between .osf, JSON and YAML, and plays a dialogue in the terminal.

  • osf validate: schema, references, variable types, unreachable nodes and translations, each problem with a stable code
  • osf fmt: the standard layout, so diffs stay small
  • osf convert: .osf to OSF JSON or YAML resources, and back
  • osf play: play a dialogue in the terminal, or check every path
Install
$ curl -fsSL https://openstoryfoundation.com/install.sh | sh

02 · Editor

VS Code extension

1.0.1MIT

Open Story Format for VS Code: syntax highlighting and editing support for .osf files, covering the whole language as of OSF 0.6.0.

  • Highlighting for every block, field, reference and {{ }} text reference
  • Long text with writer’s notes, requires with or alternatives, conditional next
  • Comment toggling, bracket matching, folding and auto-closing quotes and braces
  • Two-space indentation by default, the layout osf fmt writes
Install
$ code --install-extension lostwood.osf

03 · Visual editor

LoreHub

lorehub.appFree plan

LoreHub, the first visual editor for OSF. Lay out dialogues as a node graph, with characters, documents, variables and translations next to them. Made by Lostwood Games, and one implementation of the standard, not its owner.

  • Node editor for branching dialogue
  • Characters, documents, variables and translations in one world
  • Export JSON or YAML for your engine

04 · Game engine

Godot player

v0.1.0MIT

LoreHub Dialogue Player for Godot 4.3 and later: plays dialogues in your game with a drop-in dialogue box, or drives your own UI. Pure GDScript, so it works in the standard and .NET builds and on every export target, web included.

  • Nodes, options, conditional links, number and boolean variables, played and selected state
  • Drop-in dialogue box, or signals for your own UI
  • Save and load mid-dialogue

Reads LoreHub’s JSON export (Export Schema v2) today, not OSF resources.

Building a tool on OSF?

Tell us, and once its output passes osf validate it is listed on the members page.

Join the foundation