Your notes, your files, your machine. No account, no cloud, no lock-in — just fast, private Markdown that opens anywhere.
A local-first Markdown notebook for writing, finding, linking, and planning — with the speed of Notepad++ and the portability of plain files. See PRODUCT.md for the use case, audience, and USP.
PeaNote was formerly called Portable Notes. The rename changes the UI and launcher names only: your vault files, .portable-notes/ folders, config keys, API routes, and old shortcuts/URL schemes keep working.
Repository: https://github.com/PeaBox-Lab/Portable-Notes
git clone https://github.com/PeaBox-Lab/Portable-Notes.git
cd Portable-Notes
./start.sh # Linux / macOSOn Windows, double-click start.bat. Both are the only launch scripts and do the same thing: they start the local server in the background (hidden via pythonw.exe on Windows, nohup elsewhere) and open the UI at its actual address. Port 8765 is preferred; if another app is using it, PeaNote automatically picks a free localhost port. The live URL is written to data/server.json and printed by start.bat status / ./start.sh status.
Useful commands:
start.bat stop REM stop the background server
start.bat console REM run visibly with logs in the terminal
start.bat browser REM remember browser mode
start.bat window REM remember desktop-window mode
start.bat register REM enable peanote:// links (Windows only)./start.sh stop
./start.sh console
./start.sh statusFour editable examples are included under vault/Samples/ on new vaults; on an existing vault run python app.py --samples to add any missing ones without overwriting your notes.
Use a different folder for your notes:
python app.py --vault "D:\Notes\My Vault"No pip install, npm, build step, account, or network connection is required.
- Port independent launch: prefers
8765, automatically falls back to a free localhost port, and publishes the live URL indata/server.json. - One script per OS:
start.batandstart.shreplace the old launcher/stop/capture/protocol scripts. Both hide the server in the background by default and supportstatus,stop,console, launch-mode selection, and local capture. - Saved searches can now be recalled and applied from the
⊙button or the command palette. - Trash supports per-item and selected-item permanent deletion; the rest of the trash is left alone.
- The left activity rail can be expanded to show text labels (
»button,Ctrl+Shift+M, or the command palette). The choice is remembered locally. The note list has a reserved, visible scrollbar and supports arrow/Home/End navigation. - Folder tree rows and graph nodes are keyboard navigable; the graph announces the selected note and supports keyboard zoom.
- Task views now share one canonical Markdown task parser, so dashboard, board, calendar, planning, and quality endpoints read metadata consistently.
- Long note lists and folder trees render only what is on screen (
content-visibility), with no new dependency or build step. - A read-only phone companion lives at
/companion. It stays off the network unless you start withpython app.py --lan; other devices can read notes but cannot change anything, and the LAN URL is published indata/server.jsonand/api/health. - Optional semantic search uses a locally running Ollama instance. It is off until you enable it from the command palette; note text goes only to a loopback URL, and embeddings stay in
data/semantic.jsonon this machine. - Voice notes can be recorded in the browser with Record voice note…. Audio goes to
vault/Attachments/through the local upload route, and an Inbox note links it with an editable transcript section. No speech service is contacted. - Transcribe voice note locally… fills that transcript from an already-installed Whisper CLI. It accepts no command, URL, or model from the browser; set
PN_VOICE_MODELto a local.pt/.binmodel file, and optionallyPN_VOICE_BINto a localwhisper/whisper-cliexecutable. No model is downloaded and nothing leaves this machine.
3.11.0 adds a deliberate Reload note from disk command and stops repeated launcher clicks from spawning duplicate local servers.
3.10.0 completes the conflict loop: a stale save shows both versions side by side so you can choose deliberately instead of guessing.
3.9.0 makes sync safety visible and daily use quieter: a note changed by a sync tool shows a local notice when opened, sample notes teach formatting and workflows, and the Windows launcher runs the server without a console window.
3.8.0 hardens the sync-safety preview without changing routes or storage: board task toggles now carry the editor's stale-save guard, and renaming a note snapshots linked notes before rewriting [[links]].
3.7.0 is the first formal release after the 3.1 audit/revamp. That baseline fixed:
- Notes open reliably from the left panel — one delegated handler, keyboard-accessible cards, folder-tree filtering instead of duplicated note rows, and a guard against stale async opens.
- No more accidental duplicate notes — a single wikilink handler, whole-vault title lookup, and debounced quick capture.
- History stays out of search — internal snapshots are never indexed, exported, or link-rewritten; stale
notes/notes_ftsrows are pruned together. - No repository file disclosure — static serving is allowlisted to
static/;app.py,data/config.json, and the index DB are not reachable over HTTP. - Cross-origin writes blocked — localhost mutations require a same-origin request and a JSON body.
- Hidden slash menu no longer blocks clicks, and the destructive trash action moved out of the always-visible header into the command palette.
- One canonical vault layer —
core/vault.pyis now imported byapp.py; the old divergent copies are gone. - Narrow screens keep navigation via a rail toggle; tooltips and version strings match the running release.
- Smaller fixes: star/pin feedback, find-next, orphans dialog, board checkboxes, blank-project fallback, and honest
Ctrl+Sstatus.
The 3.0 “Nebula” workspace is retained: Notes / Board / Graph / Tags / Trash views, quick capture, slash blocks, templates, Markdown import, related notes, and focus mode.
In the main line (3.2 + 3.3): a searchable ? shortcut reference, a local-only first-run banner, background reindex, paged note lists, a capped graph, request timings, and a ?debug=1 diagnostics view. Onboarding state lives only in data/onboarding.json; see docs/BENCHMARKS.md for 1k / 10k / 50k timings.
Also shipped (3.4 Capture Everywhere): capture from a peanote:// link (or legacy pn://) or the clipboard, paste images into notes, import HTML/ENEX/CSV/Notion Markdown, and export HTML, PDF (print), or a one-file Markdown bundle. Everything stays local; see docs/CAPTURE.md.
Also shipped (3.5 Trust & Recovery): editor-scoped undo/redo, searchable/sortable trash with bulk restore and retention, labelled snapshots with side-by-side diff and restore-as-new, verified local ZIP backups with optional scheduling, a read-only vault integrity report, and backup-before-apply config/schema migrations with rollback. See docs/RECOVERY.md.
Also shipped (3.6 Developer Experience): a typed route registry at GET /api/routes, generated API reference, one runtime version source with CI drift checks, contract tests, and make check for the full pre-PR gate. No route or Markdown format changed.
Also shipped (3.7 Launch Modes): Windows now asks whether to open a browser tab or a focused desktop-style window on startup, with the choice remembered locally. Desktop mode is the same localhost UI in an Edge/Chrome app window — no packaged runtime, second UI, or feature difference. Scripts can use --launch, --ask-launch, --remember-launch, or --set-launch.
First 4.0 slice (sync protection): if you point the vault at OneDrive, Dropbox, or Syncthing, the app records external edits/removals in a local ledger, snapshots the previous disk text, and asks before a stale save can overwrite it. Nothing connects to those services; “Sync status / conflicts” in the command palette shows the local report. See docs/RECOVERY.md.
make check # full pre-PR gate (optional)
python scripts/check_version.py # runtime version drift
python scripts/generate_api_docs.py --check # generated API docs are fresh
python -m unittest discover tests -v # 78 tests
python tests/e2e_ui_actions.py # 114 live checks
python scripts/benchmark.py # writes docs/BENCHMARKS.mdReports: UI_TEST_REPORT_v3.11.0.md · Full findings: AUDIT_REPORT.md
Your notes are ordinary .md files under vault/ by default, with small YAML front matter for tags and state. data/index.db is only a disposable search index; delete it and the app rebuilds it at startup.
- Binds to
127.0.0.1only. No telemetry, account, subscription, or external API. - History snapshots, trash, and local backups live in
.portable-notes/inside the vault and are excluded from indexes and exports. - Export a versioned ZIP backup from the download button in the rail, or use "Back up vault now" for a verified, SHA-256-checked ZIP under
.portable-notes/backups/. The command palette also offers standalone HTML and one-file Markdown exports. - "Check vault integrity" is read-only; "Upgrade & recovery" previews migrations before writing and keeps local backups under
data/migrations/for rollback. - Optional capture surfaces (
--capture,pn://handler, local drop folder) write straight toInbox/; they never upload or poll an account. - The same notes open in Obsidian, VS Code, Notepad++, or any text editor.
| Shortcut | Action |
|---|---|
Ctrl+N |
New note |
Ctrl+Shift+N |
Quick capture to Inbox |
Ctrl+S |
Save now (autosave also runs after typing stops) |
Ctrl+K |
Focus search |
Ctrl+D |
Open/create today's daily note |
Ctrl+F |
Find & replace |
Ctrl+Z / Ctrl+Y |
Undo / redo in the editor (Ctrl+Shift+Z also redos) |
Ctrl+H |
Note history |
Ctrl+Shift+P |
Command palette |
Ctrl+Shift+1–5 |
Notes / Board / Graph / Tags / Trash |
Ctrl+Shift+V |
Outside the editor: new note from clipboard. Inside: cycle Edit → Split → Preview |
Ctrl+\ |
Toggle focus mode |
? |
Searchable shortcut and command reference |
All commands are searchable from the command palette (Ctrl+Shift+P). Paste an image into an open note to save it under vault/Attachments/ with a vault-relative Markdown link.
- 3.0–3.1 — multi-view workspace, board/graph/tags/trash, quick capture, task toggling, audit-driven reliability revamp.
- 3.2–3.5 — first-run guidance, scale/paging, capture everywhere, then undo/redo, recovery tooling, integrity checks, and upgrade-safe migrations.
- 3.6–3.7 — typed API contracts and developer gates, then a remembered browser/desktop-window launch choice with one shared UI.
- 4.0 (partial) — bring-your-own-folder sync protection: local change ledger, pre-change snapshots, and conflict-aware saves.
- 2.4–2.9 — FTS5 search, unlinked mentions, duplicate detection, task metadata, dashboard, calendar, and board.
- 2.10–2.29 — focus, weekly review, stats, project health/workspace/timeline, milestones, dependencies, critical path, risk, workload, capacity, burndown, forecast, schedule, slippage, baseline health, metadata quality, and execution readiness — all derived from Markdown tasks via the command palette, with no competing task database.
- 2.30–2.32 — centralized task syntax, domain/service/API boundaries, in-app dialogs, editor toolbar, and the corporate design system.
Current release notes: RELEASE_NOTES_v3.11.0.md. Older notes remain in RELEASE_NOTES_v*.md for historical reference.
- Product definition & USP
- Roadmap
- Audit & revamp report
- User guide
- Capture Everywhere
- Trust & Recovery
- Architecture
- API reference
- Contributing
- Migration guide
- Security policy
- Changelog
MIT, see LICENSE.