A local-first personal knowledge management (PKM) app for Linux. Capture what catches your attention, connect it to your notes, and find it when you need it.
Quick start · Walkthrough · Architecture · Desktop support
A useful idea rarely starts in a notes app. It might be a line in a report, a detail on screen, or a thought you want to revisit tomorrow. Ritual gives you a place to keep those pieces, link them to the work they belong to, and find them again through search.
Open an existing Markdown vault to bring your notes, tasks, and daily reflections together. Save only the windows or regions you choose, then annotate a capture, link it to a note, or turn it into a new one. Your vault stays in ordinary Markdown; captures and their search index stay in a separate encrypted archive on your device.
- Plan. Open an existing vault. Tasks shows today’s work and overdue items, with undated work in Backlog. Give a checkbox a scheduled date, a deadline, a priority, or a recurrence. Calendar puts dated tasks next to their daily and linked notes.
- Keep the evidence. Capture the foreground window or select a region. Set per-app capture rules to Allow, Ask, or Deny. Annotate a saved capture, link it to an existing note, or promote it into a new Markdown note.
- Reflect and find it later. Write down what you learned, see what you finished, and leave yourself a thought to pick up tomorrow. Search across notes, tasks, and captured text. Recall searches captures; Knowledge searches the vault.
| Calendar | Capture inbox |
|---|---|
![]() |
![]() |
Screenshots show Ritual’s interface rendered with a sample vault and capture data.
Use a Linux desktop with Node.js 22.12+ (or Node 20.19+ on the 20.x line), stable Rust, and the Tauri 2 Linux prerequisites. For screen capture, install the tools for your desktop listed below.
git clone https://github.com/Enixes/Ritual.git
cd Ritual
npm ci
npm run tauri devOn first launch, set an archive passphrase of at least 12 characters. Ritual asks for it on each launch; there’s no recovery or plaintext archive mode. In Settings, choose a Markdown folder. An existing vault works as-is, or you can start with a new folder containing a Markdown checklist. See task syntax and recurrence.
To build an AppImage, run npm run tauri build. Closing the main window leaves Ritual in the tray, where you can reopen it, pause capture, or quit.
Keyboard shortcuts
| Shortcut | Action |
|---|---|
| 1–4 | Tasks, Calendar, Notes, Inbox |
| N, J/K, Space | Add a task, move through tasks, complete the selected task |
| / or Ctrl+K | Search inside Ritual |
| Ctrl+Alt+Space | Open the global search overlay |
| Ctrl+Shift+Space | Capture the active window |
| Ctrl+Shift+R | Select a region; use arrows to move it, Shift+arrows to resize, Enter to save |
| E, L, P | Annotate, link, or promote a selected capture |
| ? | Open the shortcut guide |
Global shortcuts are configurable in Settings. Search supports app:, before:, and after: filters.
| Desktop | Capture backend | Status |
|---|---|---|
| X11 | EWMH window identity and ImageMagick’s import |
Linux target; window capture is exercised in CI under Xvfb |
| Hyprland Wayland | hyprctl and grim |
Linux target; see the live acceptance checklist |
| KDE Wayland | AT-SPI window identity and Spectacle’s active-window mode | Implemented; live acceptance still pending |
| GNOME Wayland | gdbus and GNOME Shell, with a Screenshot portal fallback if it offers Active Window |
Experimental; direct capture can be denied and many portal backends do not expose Active Window |
Non-Hyprland Wayland capture needs Python 3 with PyGObject/AT-SPI. KDE and GNOME also need /dev/shm for private screenshot staging. The Wayland GlobalShortcuts portal may prompt for permission; shortcut status and Rebind are in Settings. Install Tesseract 5 for optional local OCR. macOS and Windows are outside the v0.1 support scope.
The React/TypeScript interface talks to a Rust backend through Tauri 2. The backend keeps two types of data separate:
flowchart LR
A["Ritual · React and TypeScript"] --> B["Tauri · Rust"]
B --> C["Tasks and reflections"]
B --> D["Capture, OCR and search"]
C --> E["Your Markdown vault"]
D --> F["Encrypted local archive"]
| Where | What lives there |
|---|---|
| Your Markdown vault | Checkbox tasks, notes, and daily reflections. New tasks and the capture ledger live in Daily/YYYY-MM-DD.md. Opening the vault doesn’t rewrite notes; saves check for changes made in another editor. |
| Ritual’s local archive | Capture records, screenshots, extracted text, settings, and the search index. AES-256-GCM encrypts them at rest, with the Linux archive key derived using Argon2id. |
Ritual captures only on request. It refuses capture when the archive is locked or the active window cannot be identified reliably. X11 and Hyprland pipe screenshots without plaintext staging files. The Wayland Screenshot portal can create a temporary plaintext image outside Ritual’s archive; Ritual reads and removes the returned file before saving the encrypted capture. OCR runs asynchronously after the capture is saved. User-requested exports are plaintext by design. Deleting a capture removes it and its derived data from Ritual, but is not secure erasure of filesystem snapshots or SSD blocks.
Start with the code: Markdown task parsing · window capture · archive encryption · storage and search · React interface
npm run build
npm testThe Linux workflow also runs the locked Rust tests, checks X11 active-window capture under Xvfb, and builds the AppImage. For compositor-specific verification, follow QA.md.
Ritual v0.1 does not include continuous recording, cloud sync, AI, embeddings, or semantic search. VISION.md describes the keyboard-first direction and what a future evidence-linked question flow might look like.
Ritual is licensed under the Mozilla Public License 2.0. Dependencies retain their own licenses.


