Plain-Text Terminal Writing App · macOS & Linux · MIT Open Source

Write long-form prose at terminal speed.

Rocin is a terminal writing app for novels, notes, and worldbuilding. Organize chapters beside your draft, keep character and lore research within reach, and own every word as portable plain-text Markdown files.

  • Papyrus Sheet & Decks — the distraction-free writing canvas (with a live YAML Header Strip) and contextual YAML-driven Papyrus Decks anchored to your draft.
  • Scribe — the included command-line tool for instant capture, Ledger queries, schema validation, trash recovery, and manuscript compiling from any terminal.
Everything visible on one calm page in Rocin’s warm paper theme (shown on the built-in la-mancha demo)—zero toolbars, zero mouse hunting, and every file saved as plain Markdown.

A Scene in Three Steps

How one scene comes together without leaving the keyboard

Follow a single drafting moment from the built-in la-mancha demo: outline in the Binder, draft on Papyrus with live progress feedback, and pull [[Rocinante]] into the Reference Split mid-sentence.

  1. 1

    Organize chapters & worldbuilding

    Keep your ordered manuscript under Draft while Characters, Places, Steeds, Timelines, and custom Note Types stay one keystroke away in the Binder (F2).

  2. 2

    Draft cleanly with live vitals

    The Papyrus Sheet hides raw metadata while you write, updating your POV, tension, and Word Goal bar on every keystroke. Toggle the Header Strip anytime with Ctrl-O Y.

  3. 3

    Follow links into Reference Split

    Type [[Rocinante]] (or a brand-new link like [[Inn of Juan Palomeque]]) and press Ctrl-Q L. Existing notes open beside your draft; new links spin up a pre-filled note straight into the Reference Split.

Modeless flow, zero mouse

Start typing the moment you open a file. Classic WordStar 4.0 chords (^K, ^Q, ^O, ^P) stay out of your way, with a 3-level Help ribbon (F1) until commands become muscle memory.

Research beside your draft

Never lose your place flipping browser tabs or heavy desktop apps. Pop open a character sheet, a custom worldbuilding table, or backlinks right next to the scene you’re writing.

Plain files you truly own

Every chapter and note is standard Markdown with YAML frontmatter. Atomic writes, macOS .icloud stub protection, and conflict snapshots keep multi-device sync safe.

Inside the Papyrus Workspace

Contextual Papyrus Decks and backlinks—driven purely by YAML

When you want more than a blank page, Rocin anchors interactive Papyrus Decks and bidirectional links directly to your active Papyrus Sheet—without installing a single plugin.

Papyrus Decks (Ctrl-O P)

Open a focused Papyrus Deck right over your Papyrus Sheet to update scene metadata, browse a live Ledger table of related notes, or run 1-key actions like Open POV in Ref or Mark Revised + Snapshot.

  • Ready-to-use Deck presets: Pick research-hub, scene-command, revision-desk, or custom right when creating a note, or switch between multiple decks on one note with [ and ].
  • Visual Deck Builder: Press C inside any Deck to tailor its title, widgets, Ledger query, and actions—saved as clean YAML in your note’s frontmatter.
  • Custom Note Types: Press Ctrl-N in New Note to create per-project Note Types (like steeds or places) with Fish-shell ghost autocomplete (→).
Papyrus Deck (Ctrl-O P): step widgets with ←/→, jump to tables with Tab, and run actions with 1–9.

Prose [[WikiLinks]] & YAML Backlinks (Ctrl-K L)

Rocin automatically connects both explicit [[WikiLinks]] in your prose and structured YAML links like pov: Don Quixote or rider: Don Quixote.

  • Instant lookup: Press Ctrl-Q L on any [[Link]] to open it in Reference Split—or create it on the spot if it doesn’t exist yet.
  • Full Backlinks panel: Press Ctrl-K L on any character, place, or steed to see every scene and note that references it.
  • Live Header Strip indicator: The Header Strip quietly displays ^K L Links (N) whenever other notes point to your current Papyrus Sheet.
Links & Backlinks (Ctrl-K L): jump to any linked note in your Papyrus Sheet (Enter) or Reference Split (R).

Standalone Companion CLI

Meet scribe — capture, query, and compile from any shell

You can use scribe completely independently of the full-screen Rocin editor—in shell scripts, Vim/Neovim setups, or quick daily capture. Both tools read and write the exact same Markdown files. Install Scribe ↓

Runnable Demo: Seed La Mancha → Query your draft → Sample output
# 1. Seed the built-in Don Quixote ('la-mancha') starter project
$ scribe projects demo
Created Don Quixote demo project 'la-mancha'

# 2. Query your manuscript's metadata with Ledger (sample output)
$ scribe -p la-mancha query \
    'TABLE title, status, pov, word_count FROM draft SORT title ASC'

Title                         Status   Pov           Word Count
----------------------------  -------  ------------  ----------
Manuscript Ledger             outline  Don Quixote   203
Start Here — Example Project  outline  Don Quixote   219
The Knight of La Mancha       revise   Don Quixote   137
The Windmills of Montiel      draft    Sancho Panza  131
More Scribe workflows: quick capture, Ledger JSON, schema validation, snapshots, trash & compiling (4 examples)
Quick Capture & Filter
# Log a fleeting note straight to scratchpad.md
scribe -p la-mancha quick \
  "Check windmills at Campo de Criptana" :research

# Filter notes by any YAML field
scribe -p la-mancha list \
  --where pov="Don Quixote"
Ledger Queries & JSON
# Run ```ledger blocks inside any note
scribe -p la-mancha query --from-note "Manuscript Ledger"

# Export structured JSON for scripts or jq
scribe -p la-mancha query \
  'TABLE title, rider, temperament FROM steeds' --json
YAML Schemas & Validation
# Edit custom widget schemas in $EDITOR
scribe -p la-mancha schemas edit steeds

# Catch broken links or invalid options
scribe -p la-mancha schemas validate
Snapshots, Trash & Compile
# Plain-file milestone snapshot & recoverable trash
scribe -p la-mancha snapshot \
  "Windmills" -l before-rewrite
scribe -p la-mancha trash list

# Compile Draft Binder to Markdown, HTML, PDF, DOCX
scribe -p la-mancha compile -f html \
  --title "Don Quixote"
Query your manuscript's metadata with Ledger—the same declarative engine powers scribe query in your shell and Ctrl-Q D inside Rocin.

Guided Setup

Go from zero to your first scene in 4 steps

Installing Rocin gives you both the rocin editor and the scribe CLI in an isolated environment—no global Python clutter.

  1. 1

    Install via Homebrew (macOS & Linux)

    One command installs rocin, scribe, Python, and both man pages:

    Homebrew (Recommended)
    brew install ganymede-lab/tap/rocin

    Upgrade anytime with brew update && brew upgrade ganymede-lab/tap/rocin.

  2. 2

    Or install with pipx (Python 3.11+)

    No Homebrew? Install pipx for your OS, then install tagged release v0.6.1:

    Linux (Debian / Ubuntu)
    sudo apt install pipx && pipx ensurepath
    Install v0.6.1 via pipx
    pipx install git+https://github.com/Ganymede-Lab/rocin.git@v0.6.1

    On Fedora use sudo dnf install pipx; on Arch use sudo pacman -S python-pipx. Open a new terminal window after pipx ensurepath. Omit @v0.6.1 for the latest development version from main.

  3. 3

    Try the Don Quixote demo (or start fresh)

    Run rocin on a fresh workspace for the Welcome dialog, or jump straight into the built-in la-mancha starter book:

    Launch Demo
    rocin --demo

    Or start an empty novel anytime with rocin --new-project my-novel (or rocin -p my-novel).

  4. 4

    Learn your first three shortcuts

    Ctrl-K N means press Ctrl+K, release, then press N.

    • Ctrl-K N — Create your first scene or character sheet.
    • Ctrl-K Y — Edit status, POV, and live word-goal progress bars.
    • Ctrl-J or F1 — Cycle the on-screen WordStar help menu anytime.

Where your files live (iCloud Drive vs. local folder)

On macOS with iCloud Drive enabled, Rocin saves projects inside iCloud Drive → Scribe (~/Library/Mobile Documents/com~apple~CloudDocs/Scribe/) so your drafts sync automatically across Macs while staying readable in Finder, iA Writer, or Vim. On Linux or Macs without iCloud Drive, Rocin automatically uses ~/Rocin/—or set export ROCIN_DIR="$HOME/Rocin" to choose any folder.

Need help or hit a snag? Check man rocin, man scribe, or open an issue on GitHub.

How Rocin Compares

How Rocin fits alongside Scrivener, Obsidian, and Vim

Built for writers and terminal users who want plain-text permanence alongside an ordered Draft Binder, structured YAML metadata, and a scriptable CLI.

Capability Rocin (Papyrus + Scribe) Scrivener Obsidian Plain Vim / Neovim
Interface Native terminal (Python + Textual) Desktop GUI Desktop GUI (Electron) Native terminal
File format Plain Markdown + YAML .scriv project bundle Plain Markdown + YAML Plain Markdown + YAML
Draft Binder & Compile Built-in (binder.yaml, MD/HTML/PDF) Built-in (rich layout export) Optional community plugins Custom scripts / Pandoc
Metadata UI & Queries Built-in YAML widgets & Ledger queries Built-in custom metadata Properties built-in; queries via plugins Optional plugins
Companion CLI Built-in (scribe with --json) None URI / external CLI tools Shell & Unix tools
[[WikiLinks]] & Backlinks Built-in (prose + YAML links) Internal document links Built-in Optional plugins

Trade-off to know: Rocin is best for keyboard-first writers comfortable in a terminal; it is not intended to replace a visual page-layout editor or WYSIWYG desktop publisher.

Frequently Asked Questions

Practical details before you start

How do YAML widgets and Decks stay safe without plugins?

Every schema, Ledger query, and Papyrus Deck action is strictly declarative YAML with zero eval() or shell execution. Actions are validated against a narrow built-in allowlist, and all file operations enforce workspace confinement and symlink refusal.

Is Rocin safe with macOS iCloud Drive?

Yes. Rocin detects macOS .icloud evicted placeholders so offloaded scenes are never pruned from your Binder or dropped during compile, writes files atomically, and snapshots external edits to .snapshots/.

What manuscript formats can Rocin and Scribe export?

Markdown and Standard Manuscript Format HTML work out of the box. Install optional Typst for PDF export or Pandoc for DOCX and EPUB.

What themes and requirements does Rocin ship with?

Requires Python 3.11+ on macOS or Linux. Includes 6 themes (paper, sepia-night, dark-mono, amber-crt, phosphor-green, wordstar-blue), full man rocin / man scribe documentation, and an MIT license.

Can I recover deleted notes or roll back revisions?

Yes. Trashing a note (Ctrl-K X) warns if other notes link to it and archives it in .trash/ with a manifest for 1-key recovery (Ctrl-K T or scribe trash restore). Plain-file snapshots in .snapshots/ let you diff and restore earlier drafts non-destructively.

Where is Rocin headed next?

Active milestones in the Roadmap include a live Markdown & inline Ledger preview pane (Ctrl-O M), project-wide Find & Replace, Outliner view, user YAML themes/presets, and a long-term SwiftUI iPad & iPhone companion app built on the same plain-text contract in DESIGN.md.

Technical Reference

YAML Widgets & WordStar Shortcuts

Need the exact widget syntax or chord map? Expand the quick reference below, or browse the full documentation in the GitHub README and man rocin / man scribe.

Expand quick reference: 8 YAML UI widgets & essential WordStar chords

8 Native Terminal Widgets

Configure fields in schemas/<kind>.yaml and step them with ← / → / Space inside Ctrl-K Y or Ctrl-O P:

Widget Terminal Rendering
progress (words)[██████░░░░] 60% (600/1,000w)
progress (value)[███████░░░] 66% (2/3 passes)
select◂ revise ▸
link◂ Don Quixote ▸ (live notes)
rating★★★★☆ (4/5)
toggle[x] yes / [ ] no
number / list / textSteppers, comma lists, inline edit

Essential WordStar Chords

Press Ctrl-J or F1 anytime to cycle Help Levels 0 → 1 → 2:

Chord Action
Ctrl-K N / F / MNew Note (Note Type + Deck) / Folder / Move
Ctrl-K Y / LYAML Properties UI / Links & Backlinks
Ctrl-K B / H / CSnapshot / History & Diff / Compile
Ctrl-K X / TTrash Note / Trash & Recovery
Ctrl-Q D / L / PLedger Table / Follow Link / Quick Open
F2 / F3 / F4Focus Binder / Papyrus Sheet / Reference
Ctrl-O P / Y / T / ZPapyrus Deck / Header Strip / Theme / Zen
Ctrl-P B / S / H / DBold / Italic / Heading / Scene Break

Start Writing

Ready to write your first scene?

Install Rocin and Scribe in under a minute, or explore the built-in Don Quixote demo with rocin --demo.