# Rocin (Papyrus Workspace, Ledger Queries & Scribe CLI) > Rocin is an open-source (MIT), keyboard-first terminal word processor for macOS and Linux combining WordStar 4.0 chord ergonomics, a Scrivener-style hierarchical Binder, the YAML-driven Papyrus writing workspace, Ledger YAML queries, bidirectional WikiLinks, and the standalone Scribe CLI. Everything is stored as 100% plain-text Markdown with extensible round-trip YAML frontmatter. ## Core Identity - **Rocin (`rocin`)**: Fullscreen Python/Textual TUI word processor with 3 surfaces (Binder, **Papyrus Sheet**, Reference Split), 6 writing themes (`paper` default, `sepia-night`, `dark-mono`, `amber-crt`, `phosphor-green`, `wordstar-blue`), a first-run Welcome dialog, and WordStar 4.0 control chords (`^K`, `^Q`, `^O`, `^P`, `^J/F1`). - **Papyrus Sheet & Papyrus Decks**: The distraction-free center writing canvas (**Papyrus Sheet**) featuring Clean Prose View, a live-updating YAML **Header Strip** (`Ctrl-O Y`) with real-time word-goal progress bars, and contextual YAML-driven **Papyrus Decks** (`Ctrl-O P`) combining editable widgets, live Ledger tables, and safe declarative actions. - **Ledger**: Rocin's built-in declarative YAML query engine (`Ctrl-Q D`, `scribe query`, and ```` ```ledger ```` fenced blocks — inspired by Obsidian Dataview, with heading-aware note-block cycling via `0` and zero `eval()`). - **Scribe (`scribe`)**: Fast standalone companion CLI sharing Rocin's core engine for note creation (`--set key=val`), quick scratchpad capture, filtering (`--where`), Ledger queries (`scribe query`, `--from-note`, `--json`), YAML UI schema management & validation (`scribe schemas`), recoverable trash management (`scribe trash`), plain-file snapshots, and manuscript compilation. ## Key Differentiators - **Alternative to Scrivener in the terminal**: Hierarchical Parts/Chapters/Scenes in `binder.yaml`, compile to Markdown, Standard Manuscript Format HTML, PDF (Typst), or DOCX/EPUB (Pandoc), non-destructive plain-file snapshots in `.snapshots/`, and manifest-backed Trash & Recovery (`Ctrl-K T`, `.trash/manifest.yaml`, incoming backlinks warnings, 1-key Draft Binder restoration). - **Terminal-native alternative to Obsidian metadata & query plugins**: Built-in Ledger `TABLE`/`LIST` queries (zero `eval()`), 8 interactive YAML UI widgets (`select`, `link`, `progress` in `words` or `value` mode, `rating`, `toggle`, `number`, `list`, `text`), custom per-project **Note Types** (`Ctrl-N`), frontmatter **Papyrus Decks** (`research-hub`, `scene-command`, `revision-desk`, `custom`), and bidirectional `[[WikiLinks]]` + YAML backlinks. - **iCloud-safe & cross-device future-proof**: Handles macOS `.icloud` evicted stubs via `brctl download`, atomic writes, `mtime_ns` note caching & conflict snapshots, automatic `~/Rocin/` non-iCloud fallback, built-in *Don Quixote* (`la-mancha`) demo (`rocin --demo` with `Start Here` guide), and a shared plain-text workspace contract (`DESIGN.md`) for Terminal, iPadOS, and iOS. ## Install & Links - Install (Homebrew, macOS & Linux): `brew install ganymede-lab/tap/rocin` (includes `rocin`, `scribe`, `man rocin`, and `man scribe`) - Install (pipx, Python 3.11+): `pipx install git+https://github.com/Ganymede-Lab/rocin.git@v0.6.1` - Homebrew Tap: https://github.com/Ganymede-Lab/homebrew-tap - Website: https://ganymede-lab.github.io/rocin/ - Full AI/LLM Reference: https://ganymede-lab.github.io/rocin/llms-full.txt - Repository: https://github.com/Ganymede-Lab/rocin - Roadmap: https://github.com/Ganymede-Lab/rocin/blob/main/ROADMAP.md - Design Philosophy & Vocabulary: https://github.com/Ganymede-Lab/rocin/blob/main/DESIGN.md - Changelog: https://github.com/Ganymede-Lab/rocin/blob/main/CHANGELOG.md - License: MIT