Portable-Notes

PeaNote

Release License Python Local First

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


Run it

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.


Next (unreleased)

What’s new in 3.11.0

3.11.0 adds a deliberate Reload note from disk command and stops repeated launcher clicks from spawning duplicate local servers.

What’s new in 3.10.0

3.10.0 completes the conflict loop: a stale save shows both versions side by side so you can choose deliberately instead of guessing.

What’s new in 3.9.0

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.

What’s new in 3.8.0

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]].

What’s new in 3.7.0 — Constellation follow-ups

3.7.0 is the first formal release after the 3.1 audit/revamp. That baseline fixed:

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.

Testing

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


Privacy and data

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.


Keyboard shortcuts

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.


Capability timeline

Current release notes: RELEASE_NOTES_v3.11.0.md. Older notes remain in RELEASE_NOTES_v*.md for historical reference.


Documentation

License

MIT, see LICENSE.