Skip to content

About

A lightweight, portable markdown note-taking application built in Python with Tkinter. Fast, simple, and 100% offline — all notes saved as plain text Markdown files. Easy to backup, move, and run on any modern Windows system.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

73 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

  • Port independent launch: prefers 8765, automatically falls back to a free localhost port, and publishes the live URL in data/server.json.
  • One script per OS: 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.
  • 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 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.
  • 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.json on 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_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.

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:

  • 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_fts rows 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.py is now imported by app.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+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.

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.

  • Binds to 127.0.0.1 only. 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 to Inbox/; they never upload or poll an account.
  • The same notes open in Obsidian, VS Code, Notepad++, or any text editor.

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

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


Documentation

License

MIT, see LICENSE.

About

A lightweight, portable markdown note-taking application built in Python with Tkinter. Fast, simple, and 100% offline — all notes saved as plain text Markdown files. Easy to backup, move, and run on any modern Windows system.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages