A fast, private, self-hosted notes app. It looks and feels like a native Mac app, and power users get a tiling workspace.
Create, organize, and search notes with near-zero perceived latency. Every interaction resolves instantly in client state while the backend persists asynchronously in the background.
"Backend stores. Frontend thinks."
- A clean, native-feeling interface: a system font stack, semantic colours, a translucent sidebar, a unified toolbar, segmented controls, alerts and sheets
- Light, Dark and Auto appearance, plus eight accent colours
- Modular colour themes: the default theme, Catppuccin (Latte, Frappé, Macchiato, Mocha), Gruvbox and Everforest (Hard, Medium or Soft contrast), Nord and Solarized, each in Light and Dark. Pick a theme and its flavour or contrast in Settings, or from the command palette. Each theme also themes the editor's syntax colours (
--syntax-*), and "Theme default" uses the theme's own accent - Three-column layout: Folders, a notes list with date sections, previews and folder chips, and the editor
- Untitled notes take their title from the first line
- Folders: Unfiled is listed last. Move a note with the folder chip on its row, the folder subtitle in the toolbar, or
Ctrl+Alt+M(palette move mode). Each menu offers "New Folder…". Dragging is forgiving: drop on a folder header, and folders spring open while you hover - A fountain-pen logo (
client/public/brand/) is used as the favicon and in the sidebar - Responsive layout: the folders column collapses below 1180 px, and phones get an overlay sidebar with a single tile
- Split the editor into tiles and work on several notes side by side
- Dwindle auto-tiling: each new tile splits the focused one along its longer side
- Sliding mode (
Ctrl+Alt+Ttoggles it) is the scrolling alternative, in the style of niri and PaperWM. Tiles sit in columns on a horizontal strip that scrolls to keep the focused column in viewCtrl+Alt+Ccycles the column width (½, ⅔, full, ⅓).Ctrl+Alt+-stacks a tile in the focused column- Focus, swap, split, close and zoom work per column
- Wheel or drag to pan, drag a column edge to resize, and use the column minimap to jump
- The mode is a "Tiling" row in Settings and is stored with the layout
- Directional focus, swap, zoom (monocle), rotate split, equalise, and drag-to-resize dividers
- Drag a note from the sidebar or the tab bar onto a tile edge to split there. Drop it in the centre to replace the note
- Empty tiles act as a launcher: type to filter, then press ↩ to open
- The whiteboard is just another tile (
⌘⇧D). Whiteboards are stored in SQLite, so they sync across devices like notes do - Tabs and the tile layout are restored after a reload
- CodeMirror 6 with Obsidian-style live preview: headings, emphasis, bullets, round checklist toggles and images
- Proportional reading type by default. Choose System, Serif or Mono, set the text size and line width
- Read mode (
⌘E) for typeset Markdown, sanitised with DOMPurify - Formatting shortcuts: bold, italic, strikethrough, inline code, link, cycle heading, checklist
- Paste or drop images. They are stored as server-side assets
- Status bar: words, characters, save state, and a warning when a note passes the 1 MB soft cap
- Each note can have an Excalidraw whiteboard. The scene is saved to the server (
whiteboardstable, up to 10 MB) through a queued, retrying save (client/src/lib/boardSync.ts), so a board drawn on one device loads on another - Deleting a note deletes its board. Boards previously kept in
localStorageare uploaded once on first load (client/src/lib/boardMigration.ts)
- Optional, switched on in Settings → Plugins (guide:
docs/plugins.md) - LaTeX: a live preview tile beside a LaTeX note (KaTeX maths, numbered equations and references), PDF compile with the server's TeX engine and clickable errors,
.texand PDF export - Books: add EPUB and PDF files, browse them on a Bookshelf from the Books folder, read them in a tile beside your notes, resume exactly where you left off on any device, turn pages with a curl or slide effect or scroll, read on a paper-like page in every theme, highlight and bookmark, and get a per-book highlights note with links back to each place
- Blog Reader: open a blog post as a Markdown note beside your notes, with read / unread status
- Herdr: share a note with a coding agent running in herdr and follow it on the Agents board
- Command palette (
⌘P): full-text note search with highlighted matches. Type>to run any command.⌘↩opens the result in a new tile - FlexSearch index cached in
localStorage, so it is never rebuilt cold - Find in note (
⌘F)
- Local-first: the UI never waits on the network
- An auto-save worker with per-note revisions and a single in-flight request. It sends partial payloads, debounces for 800 ms with a 5 s max-wait, and flushes on tab close and page hide
- Back-off retries, then a visible "Offline" state. Saving resumes automatically on reconnect.
⌘Sforces a save - Destructive actions (delete note, delete folder) use confirmation alerts, with Cancel as the default
- Markdown export worker mirrors every note to
~/velocity_docs. It is event-driven and incremental, follows renames and deletes, and copies images next to the Markdown files - Empty-note cleanup: untitled, blank notes with no whiteboard are pruned so they do not pile up. The client removes inactive ones (not open, not dirty, older than 30 s) and keeps the 5 most recently used. A server sweep runs on startup and hourly, never touches notes edited in the last 10 minutes, and can be disabled with
EMPTY_NOTE_CLEANUP=off
Browsers reserve ⌘/Ctrl + N, W, T and 1–9, so they never reach a web page. Every such action also lives on the ⌃⌥ (Ctrl + Alt) layer, which works the way Hyprland's Super key does for window management. Shortcuts match physical keys, so they work on any keyboard layout. AltGr is ignored, so typing @ { [ € never triggers a shortcut.
Mod is ⌘ on macOS and Ctrl on Windows and Linux. Press Mod + / in the app for the full sheet.
| Action | Shortcut |
|---|---|
| New note | Ctrl+Alt+N (Mod+N where the browser allows it) |
| New note in a new tile | Ctrl+Alt+Shift+N |
| Close note tab | Ctrl+Alt+W |
| Rename note | F2 |
| Move note to folder | Ctrl+Alt+M |
| Save now | Mod+S |
| Delete note | Mod+Shift+Backspace |
| Export as Markdown | Mod+Shift+E |
| Search notes / quick open | Mod+P or Mod+Shift+F |
| Command palette | Mod+Shift+P or F1 |
| Find in note | Mod+F |
| Next / previous tab | Ctrl+Alt+] / Ctrl+Alt+[ |
| Go to tab 1–9 | Ctrl+Alt+1…9 |
| Focus notes list | Ctrl+Alt+0 |
| Split tile (auto) | Mod+\ |
| Split right / down | Ctrl+Alt+\ / Ctrl+Alt+- |
| Focus tile | Ctrl+Alt+Arrows or Ctrl+Alt+H/J/K/L |
| Move note to neighbouring tile | Ctrl+Alt+Shift+Arrows |
| Zoom tile | Ctrl+Alt+Enter |
| Close tile | Ctrl+Alt+Q |
| Equalise / rotate split | Ctrl+Alt+= / Ctrl+Alt+R |
| Toggle tiling mode (dwindle / sliding) | Ctrl+Alt+T |
| Cycle column width (sliding) | Ctrl+Alt+C |
| Toggle sidebar / folders | Ctrl+Alt+S / Ctrl+Alt+Shift+S |
| Read mode | Mod+E |
| Whiteboard tile | Mod+Shift+D |
| Text size | Mod+= / Mod+- / Mod+0 |
| Settings | Mod+, |
| Bold / italic / link | Mod+B / Mod+I / Mod+K |
| Strikethrough / inline code | Mod+Shift+X / Mod+Shift+M |
| Cycle heading / checklist | Mod+Shift+H / Mod+Shift+L |
| Multi-cursor | Alt + Click |
In the notes list, ↑/↓ browse, ↩ opens, ⌘↩ or Alt+↩ opens in a new tile, and ⌫ deletes after confirmation.
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | React 18 + Vite | Fast builds, small bundles |
| Editor | CodeMirror 6 | Multi-cursor, Markdown, keymaps |
| Whiteboard | Excalidraw | Per-note drawing canvas (lazy-loaded) |
| State | Zustand | Client-side source of truth |
| Search | FlexSearch | Sub-10 ms full-text search |
| Styling | CSS Modules + design tokens | Scoped, zero-runtime styles; light/dark/accent and colour-family theming |
| Backend | Hono on Bun | Thin REST API (gzip for note bodies) |
| Database | SQLite (bun:sqlite) | Embedded persistence |
| Tests | Vitest, bun test, Playwright | Unit, API/worker, end-to-end |
| Deploy | Docker Compose + nginx | Self-contained deployment |
A self-contained static marketing page lives in landing/ (plain HTML, CSS and ES modules, no build step, relative paths, so it also works on GitHub Pages). It defaults to Gruvbox Light Hard regardless of the OS setting; the nav toggle switches to Gruvbox Dark Hard and the choice is remembered in localStorage. Run it with bun run landing (http://localhost:4173). Product clips and stills are listed in landing/scripts/media.js and live in landing/media/. bun run test:landing runs the page checks and writes review screenshots to docs/screenshots/landing/.
Requires Docker and Docker Compose.
git clone <repo-url> velocity
cd velocity
cp .env.example .env
make up| Service | URL |
|---|---|
| Client | http://localhost:37801 |
| API (via proxy) | http://localhost:37800 |
make down # stop containers
make restart # rebuild and restart
make rebuild # clean rebuild (no cache)
make latex # rebuild the server with TeX Live for LaTeX PDF compiles
make ps # container status (the server has a health check)
make logs # follow the server logs
make help # every target, including the local Bun ones (install, dev, test, lint, …)Both images build on oven/bun:1.4-alpine: the server runs bun index.ts (SQLite through the built-in bun:sqlite, so no native build tools), and the client is built with Bun and served by nginx. Data is stored in the velocity_data Docker volume. Markdown image assets are also written to ~/velocity_docs on the host (mounted into the server container).
Requires Bun 1.4+ (runs the server, Vite, Vitest, ESLint and tsc). Playwright's test runner still needs Node.js 18+.
bun run install:all
cp .env.example .env
bun run dev| Service | URL |
|---|---|
| Client | http://localhost:5173 |
| Server | http://localhost:3000 |
bun run dev:client # Vite only
bun run dev:server # Hono only
bun run build # production client build
cd client && bun run lintcd client && bun run test # Vitest: tiling and sliding engines, auto-save worker, board sync, cleanup, themes, shortcuts
cd server && bun run test # bun test (node:test API): API routes, whiteboards, cleanup + Markdown export worker
cd client && bun run test:e2e # Playwright (headless Chromium): full product walkthroughThe E2E suite starts its own API server on a throwaway database. It writes review screenshots to docs/screenshots/after/. The original UI is preserved in docs/screenshots/before/, and the redesign plan and UX audit are in docs/ux-revamp/PLAN.md.
Velocity/
├── client/ # Vite + React frontend
│ ├── e2e/ # Playwright end-to-end suite
│ └── src/
│ ├── components/
│ │ ├── chrome/ # Toolbar, tab bar, status bar
│ │ ├── sidebar/ # Folders + notes list
│ │ ├── workspace/ # Tiling workspace, tiles, empty-tile launcher
│ │ ├── overlays/ # Command palette, alerts, settings, shortcuts sheet
│ │ └── ui/ # Shared controls (segmented, toolbar button, menu, kbd)
│ ├── lib/ # tiling + sliding engines, sync engine, board sync, themes registry, cleanup, command registry, workspace actions
│ ├── store/ # Zustand: editor, layout, ui, groups, search
│ └── styles/ # Design tokens + global base styles
│ └── themes/ # One CSS file per theme family
│ └── public/brand/ # Logo and favicons
├── server/ # Hono + Bun backend
│ ├── routes/ # /api/pastes, /api/groups, /api/assets, whiteboards
│ ├── db/ # SQLite client + migrations
│ ├── workers/ # Markdown export + empty-note cleanup workers
│ └── tests/ # API + worker tests
├── docs/ # Redesign plan, before/after screenshots
├── data/ # SQLite database (gitignored)
├── docker-compose.yml
└── Makefile
Copy .env.example to .env before starting.
| Variable | Default | Description |
|---|---|---|
PORT |
3000 |
Hono server listen port |
CLIENT_URL |
http://localhost:5173 |
Allowed CORS origin |
VITE_API_URL |
http://localhost:3000 |
API base URL (client build-time) |
DB_PATH |
data/velocity.db |
SQLite database file |
ASSETS_DIR |
data/assets |
Uploaded image storage |
DOCS_DIR |
~/velocity_docs |
Markdown export folder |
DOCS_SYNC |
on |
Set to off to disable the Markdown export worker |
EMPTY_NOTE_CLEANUP |
on |
Set to off to disable the server's empty-note sweep |
For Docker, set CLIENT_URL=http://localhost:37801 and VITE_API_URL=http://localhost:37800 in .env.
All routes return { success, data?, error? }.
| Method | Path | Description |
|---|---|---|
GET |
/api/pastes |
List notes (metadata only; includes has_whiteboard, is_empty, content_length) |
GET |
/api/pastes/:id |
Fetch note with content |
POST |
/api/pastes |
Create note |
PUT |
/api/pastes/:id |
Partial update (returns metadata, not the body) |
DELETE |
/api/pastes/:id |
Delete note. With ?only_if_empty=1 it returns 409 if the note has gained content |
GET/PUT/DELETE |
/api/pastes/:id/whiteboard |
Read, save or remove a note's whiteboard scene (413 above 10 MB) |
GET/POST/PUT/DELETE |
/api/groups |
Group CRUD |
POST |
/api/assets |
Upload image asset |
- No authentication. Velocity is intended for trusted local or self-hosted use
- No collaboration or real-time sync. Whiteboards load from the server when a note is opened, not live
- Preferences and the tile layout are stored per browser (
localStorage). Notes and whiteboards are stored in SQLite - Browser-reserved shortcuts (
⌘N,⌘W,⌘1) only work where the browser passes them through. Use the⌃⌥equivalents
ISC