The RFD format: a YAML-based open standard for interactive stories

RFD (ReelFork Drama) is the open format powering every drama on the platform. It's human-readable YAML that defines nodes, choices, conditions, and media — and it works with both the visual editor and direct upload.

June 2026 · 7 min read

What RFD is and why it exists

RFD (ReelFork Drama) is a YAML-based open format for describing interactive video stories. Every drama on PlotDoor is backed by an RFD file, whether it was created in the visual canvas or uploaded directly.

The format was designed to be human-readable and version-controllable. A creator with a text editor can write or edit an RFD file directly, commit it to Git, and deploy changes without touching the visual interface. It also makes dramas portable — an RFD file fully describes a story independent of any platform.

Minimal YAML structure

Every RFD file starts with four top-level fields: the format version, a title, a cover image path, and a list of nodes. The `rfd` field pins the specification version so the parser knows which syntax to apply.

  • `rfd: "1.0"` — format version
  • `title: "Your Drama Title"` — display name
  • `cover: "cover.jpg"` — thumbnail used on the cinema listing page
  • `nodes:` — list of scene nodes (the story itself)

Defining a node

Each node represents one scene. A node has an `id`, a `video` path, and either a `next` field (for linear continuation) or a `choices` field (for a branch point). Nodes without either field are treated as endings.

  • `id: scene_01` — unique identifier referenced by choices and conditions
  • `video: "clips/scene_01.mp4"` — relative path to the media file in the package
  • `next: scene_02` — unconditional transition to the next node
  • `choices:` — list of choice options shown to the viewer at the end of the clip

Choices syntax

A choices list is an array of two-element arrays: a display label and a target node ID. The player renders these as buttons when the clip ends.

Each choice entry looks like `- [label, target_node]`. For example, `- ["Help the stranger", scene_help]` would show a "Help the stranger" button and navigate to the `scene_help` node when selected.

Conditions and effects

Nodes and choices can carry conditional logic using `if:` expressions. A choice with `if: trust > 2` is only shown to viewers whose `trust` variable is greater than 2. This enables choices unlocked by earlier decisions.

The `effects:` field on a node or choice modifies variables when that path is taken. For example, `effects: { trust: +1 }` increments the `trust` counter. Variables are scoped to the viewer session and persist across nodes within a single playthrough.

Text game nodes: visual-novel scenes without video

RFD also supports a `textgame` node type for visual-novel style scenes: background art, character sprites, typewriter dialogue, music, and voice — all rendered live by the player, with no video file involved. A text game node declares `type: textgame` and carries a compiled `textgame` payload (`schema: reelfork.textgame`) plus a `next` field for its exit.

A published example shows the economics: in the wuxia drama "Three Invitations at the Ferry", the 54-line centerpiece — three characters arriving one by one, sprites trading center stage, backgrounds cutting between wide and close views — is a single text game node that compiles to about 60KB, less than one second of video. One branch even ends in a second text game node with no exit at all: a text-only ending. The choice buttons render over the scene's lingering final frame.

Unlike the rest of RFD, the payload is not meant to be hand-written. You author text game scenes in the PlotDoor Studio story tree with the built-in Text Game editor; publishing compiles the scene into the RFD automatically. Hand-crafted payloads are rejected at upload validation.

Packaging and uploading

An RFD package is a zip file containing the YAML file (named `drama.rfd.yaml`) and all referenced media files at their relative paths. Media files can be MP4 video clips, JPEG or PNG images for covers, and optionally subtitle files.

Packages can be uploaded via the PlotDoor Studio upload interface or pushed programmatically through the API. The platform validates the YAML structure, checks that all referenced media paths exist in the archive, and rejects packages with missing assets before publishing.