ScriptCraft
Screenwriting; an open-source screenplay editor, built in pure Rust.
Write screenplays with industry-standard formatting and pagination: scene headings, action,
characters, parentheticals, dialogue, transitions and shots, laid out on US Letter or A4 in 12 pt
fixed-pitch type. Opens and saves Fountain (.fountain), opens FDX files, and hands
scenes to BoardCraft for storyboarding. Part of the Crafting Apps film pipeline:
ScriptCraft → BoardCraft → FilmCraft.
What works ·
Getting started ·
Command line ·
Roadmap ·
Contributing
What works today
Measured against the industry's screenwriting apps: 82% weighted parity
(details). Built to avoid what their users complain about most:
no activation or account, no cloud lock-in, plain local files with autosave and backups, and
no crashes on bad files (user research).
- Screenplay elements: scene heading, action, character, parenthetical, dialogue, transition,
shot, centered text, lyrics, plus outline sections, synopses, notes and omitted text that are
kept but not printed; a title page.
- Typing: Enter starts the element that usually follows (character → dialogue, dialogue →
action, transition → scene heading…); Tab and Shift+Tab change the element; Backspace at the
start of an element joins it to the one above. Headings, cues and transitions are capitalised as
you type. All keys.
- Fast on feature-length scripts: only the lines near the window are live text fields.
- Clipboard: Shift+↑/↓ at a line's edge selects whole elements; cut and copy them as Fountain;
paste screenplay text from anywhere and it becomes typed elements.
- Auto-complete of character names, scene heading prefixes, places and times of day, and
transitions. Find and replace (Ctrl+F, Ctrl+H, F3). Spell-check as you type, with F7 for
the next misspelling and suggestions (craft-libs craft-proof).
- Formatting and pagination: spec-script indents, 54 lines per page on US Letter and 58 on A4,
headings and cues kept with what follows, (MORE) and (CONT'D) across pages, automatic (CONT'D)
for the same speaker, dual dialogue side by side, scene numbers in both margins.
Rules.
- PDF export with exactly the pages the preview shows, font embedded.
- Structure: a scene navigator, and index cards with synopses on the cards; move scenes with
Alt+arrows.
- Production: lock scene numbers (new scenes become 4A, 4B), revision mode with margin marks
and coloured pages (Blue, Pink, Yellow…), kept in the Fountain file.
- Reports: statistics, characters (speeches, words, scenes) and locations.
- Files: Fountain open and save (lossless), FDX open and save, plain text, the scene list for
BoardCraft. Saves are atomic, the previous version is kept as a backup, and changes are
autosaved every minute and offered back after a crash.
- Focus mode (F11), typewriter scrolling and a dark page.
- Accessible and translatable: every control and script line has an accessible name, changes
are announced, the page preview publishes its text; keyboard flows are tested with
egui_kittest's accessibility check. Interface text goes through craft-i18n.
Not yet: anchored comments, selection from mid-element, styled text, locked pages, translated
catalogs. See the roadmap.
Getting started
Requires Rust 1.95 or newer.
git clone https://github.com/storytold/scriptcraft
cd scriptcraft
cargo run -p scriptcraft -- --sample # open the bundled sample script
cargo test # all tests; no display needed
Translations come from craft-i18n the same way
(CRAFT_I18N_DIR=$PWD/../craft-i18n); without it the interface is English.
Scripts are set in Liberation Mono (SIL OFL 1.1) from
craft-fonts when you build with a checkout of it;
without one, egui's built-in monospace face is used and pagination is unchanged:
git clone https://github.com/storytold/craft-fonts ../craft-fonts
CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo run -p scriptcraft -- --sample
scriptcraft --help lists the options (--preview, --paper a4, --screenshot <file.png>…).
Command line and agents
Every menu action is a command with a stable id (file.save, element.character,
file.export_scene_list…). scriptcraft-cli works without a window:
scriptcraft-cli scenes script.fountain --out script.scenes.json # scene list for BoardCraft
scriptcraft-cli convert draft.fdx draft.fountain # FDX → Fountain
scriptcraft-cli pages script.fountain --paper a4 --scene-numbers # paginated plain text
scriptcraft-cli pdf script.fountain script.pdf --scene-numbers # PDF
scriptcraft-cli fdx script.fountain script.fdx # FDX
scriptcraft-cli stats script.fountain # pages, scenes, words
scriptcraft-cli report script.fountain # characters and locations
scriptcraft-cli commands # command ids and labels
Architecture
| Crate |
What it does |
UI? |
scriptcraft-model |
Screenplay, elements, title page |
no |
scriptcraft-fountain |
Fountain reader and writer |
no |
scriptcraft-fdx |
FDX import and export (via craft-libs craft-xml) |
no |
scriptcraft-layout |
Formatting, word wrap, pagination, plain-text pages |
no |
scriptcraft-interchange |
Scene list for BoardCraft (JSON) |
no |
scriptcraft-pdf |
PDF export (via craft-libs craft-pdf) |
no |
scriptcraft-engine |
Document, undo, Enter/Tab rules, auto-complete, find, spelling, numbering, revisions, reports, autosave, commands, file I/O |
no |
scriptcraft-fonts |
Liberation Mono from craft-fonts (CRAFT_FONTS_DIR) |
no |
scriptcraft-ui-egui |
Editor, page preview, navigator, dialogs |
egui |
apps/scriptcraft, apps/scriptcraft-cli |
Desktop app and command-line tool |
|
More in docs/architecture.md.
Roadmap
ScriptCraft is heading for alpha: the core and the main writing, revising and delivery flows
work and are tested.
ROADMAP.md has the stage and next steps; docs/gaps.md the ranked
work list.
Contributing
Read AGENTS.md first: the Craft house rules, never crash, clean room, layering,
assets. Run cargo xtask ci before every pull request.
License
Code: MIT OR Apache-2.0, at your option. Third-party material is
listed in NOTICE and ATTRIBUTION.md.