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 / macOS
On 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 status
Four 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.
8765, automatically falls back to a free localhost port, and publishes the live URL in data/server.json.start.bat and start.sh replace the old launcher/stop/capture/protocol scripts. Both hide the server in the background by default and support status, stop, console, launch-mode selection, and local capture.⊙ button or the command palette.» 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.content-visibility), with no new dependency or build step./companion. It stays off the network unless you start with python app.py --lan; other devices can read notes but cannot change anything, and the LAN URL is published in data/server.json and /api/health.data/semantic.json on this machine.vault/Attachments/ through the local upload route, and an Inbox note links it with an editable transcript section. No speech service is contacted.PN_VOICE_MODEL to a local .pt/.bin model file, and optionally PN_VOICE_BIN to a local whisper/whisper-cli executable. 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/notes_fts rows are pruned together.static/; app.py, data/config.json, and the index DB are not reachable over HTTP.core/vault.py is now imported by app.py; the old divergent copies are gone.Ctrl+S status.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.md
Reports: 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.
127.0.0.1 only. No telemetry, account, subscription, or external API..portable-notes/ inside the vault and are excluded from indexes and exports..portable-notes/backups/. The command palette also offers standalone HTML and one-file Markdown exports.data/migrations/ for rollback.--capture, pn:// handler, local drop folder) write straight to Inbox/; they never upload or poll an account.| 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.
Current release notes: RELEASE_NOTES_v3.11.0.md. Older notes remain in RELEASE_NOTES_v*.md for historical reference.
MIT, see LICENSE.