Skip to content

Throughline for Developers

Most document formats are not nearly detailed enough for storytelling purposes. They only contain the text of a story, but the text is just the outcome of the writing process! The decisions behind it live somewhere else: what purpose and position a scene has in an arc, what a character wants and needs, how two characters behave toward one another. They sit in the writer’s head and, maybe, in loose notes.

A .thrl (“thrill”) file contains all that information. It stores every Beat in story order with its summary, cast, Setting and, of course, script. It stores what each Character wants, what they need and the flaw in their way. It stores relationships as feelings that change from Beat to Beat, and each plotline as an Arc. Software that reads a .thrl reads the story as the writer planned it. The file is gzip-compressed UTF-8 JSON, so any programming language reads it with standard tools. Since format version 1.9, every file explains its own data model in a guide block. The format specification is free to use under CC BY 4.0, and any person or company may build software that reads .thrl files.

Give your users the whole story, not just the text. A few lines of code open a .thrl file in Python or JavaScript, with no extra packages. Read your first .thrl file →

The Draft Workspace of the demo project: stacks of Settings in the top row, Characters with their want, need and flaw in the middle row, Beats stacked under Structure Cards in the Throughline, and the Sparks inbox on the rightThe Draft Workspace of the demo project: stacks of Settings in the top row, Characters with their want, need and flaw in the middle row, Beats stacked under Structure Cards in the Throughline, and the Sparks inbox on the right

Everything you see here is in the file, down to the last stack and Spark.

PartWhat it contains
BeatsTitle, summary, status, cast, Setting, INT/EXT, time of day, scene number and script, in story order.
ScriptEach Beat’s scene text as a structured document: action, cues, dialogue, parentheticals, transitions, dual dialogue and alternate versions.
Structure CardsWhat each part of the story structure has to do, such as “Inciting Incident”. The Beats stacked on a card fulfill it.
CharactersName, color, summary, want, need, flaw and notes, plus a position on the relationship map.
RelationshipsHow each Character feels about another, such as “distrusts” or “mourns”, and how that changes from Beat to Beat.
ArcsEach plotline between two poles the writer names, with a charge from -1 to +1 at each of its Beats.
SettingsEvery location with its description, grouped in stacks, for example the rooms of one house.
SparksLoose ideas waiting in the inbox to become cards.
Project detailsTitle, logline, project language and the title page.
Recycling binDeleted cards, so the writer can still restore them. They aren’t part of the story.

This compares what each file format can contain, not the apps that use them.

.thrlFountainWord and PDFMarkdown
Script with element types (action, cue, dialogue)YesYesText onlyText only
Scene headingsYesYesText onlyText only
Scene summariesYesYesText onlyText only
Story structureYesYesText onlyText only
Character want, need and flawYesText onlyText onlyText only
Relationships that change from Beat to BeatYesText onlyText onlyText only
Arcs with a charge at each BeatYesText onlyText onlyText only
Explains its own data model inside the fileYesNoNoNo

Text only means the format can contain it as text, but software can’t read it as data.

Fountain is great at what it’s for: a script that reads well in any text editor and works with version control. Throughline imports and exports it, and imports Final Draft’s FDX too (see Importing and Exporting). So if you’re exchanging a script, Fountain will do, and if you’re exchanging a story, that’s what .thrl is for.

Creative Commons Attribution 4.0 International

The .thrl specification, the pages in this Throughline for Developers section, is licensed under CC BY 4.0.

You’re free to:

  • Build software that reads, converts or displays .thrl files, commercial or not. It’s free of charge, and you don’t have to ask.
  • Share the specification: copy it and pass it on in any medium or format.
  • Adapt the specification: change it and build on it.

Under one condition:

Attribution. Credit the specification with this line:

.thrl format specification by Peak State Entertainment GmbH (https://getthroughline.com/docs/developers/), licensed under CC BY 4.0.
  • Code examples on these pages: MIT License.
  • Not covered: the Throughline name and logo.
  • Copyright: Peak State Entertainment GmbH.