Notes & Knowledge Base · Python · MIT · v3.1.0

Portable Notes — Your Markdown Second Brain, Fully Local

A private, local-first Markdown notes and personal knowledge-management application inspired by Obsidian, OneNote, Notepad++, and VS Code. Plain .md files stay the source of truth — no account, no telemetry, no cloud lock-in.

Python 3.9+ · MIT License · Local-first Open http://127.0.0.1:8765 after running python app.py
View on GitHub Download ZIP

Overview

Portable Notes is a zero-dependency, local-first Markdown notes and personal knowledge-management app built on the Python standard library and vanilla JavaScript. It serves a web UI from 127.0.0.1:8765 and stores everything as ordinary .md files under a vault folder — the same files Obsidian, Notepad++, VS Code or any Markdown editor can open. A disposable SQLite database (data/index.db) powers FTS5 full-text search, backlinks and the knowledge graph, and can be deleted and rebuilt at any time.

It exists for people who want the polished workflows of modern note apps — wiki links, graph view, task boards, templates — without handing their private writing to a hosted service. There is no account, no telemetry, and no sync server; your vault is just a folder you can back up, diff, or keep in Git.

It is a good fit for developers, researchers, writers and students who already think in Markdown, want serious task and project tracking derived from checkboxes, and prefer tools they can read, fork and run offline. Version 3.1.0 ("Constellation") is the current release, with 24/24 unit tests and 69/69 live end-to-end checks passing.

Use Cases

  • Personal knowledge base — link notes with [[wiki links]] and explore the force-directed graph to spot clusters and orphans.
  • Developer work journal — daily notes, templates and quick capture (Ctrl+Shift+N) for standups, decisions and debugging logs.
  • Project task hub — aggregate every Markdown checkbox across the vault into Overdue / Today / Next 7 days / Done lanes.
  • Meeting & research notes — slash commands, templates with {{title}}/{{date}} substitution, and FTS5-ranked search.
  • Offline-first field writing — a full notes app on an air-gapped laptop; nothing leaves 127.0.0.1.
  • Sprint & release tracking — task intelligence commands: burndown, capacity, critical path, delivery forecast, risk radar.
  • Migration off proprietary apps — drag & drop existing .md/.txt files straight into the app.
  • Durable plain-text archive — export the whole vault as a portable Markdown ZIP whenever you need it.

A Day with Portable Notes

Morning coffee: hit Ctrl+Shift+N and dump three raw thoughts into the Inbox. Open the Board view (Ctrl+Shift+2) and see everything due today across all projects — one overdue item flagged automatically. Click a card to jump straight into the source note, tick the checkbox, and the Markdown file is rewritten with a history snapshot taken first. During the commute you jot findings into today's daily note; back at the desk, the / slash menu drops in a table and a task list. After lunch, the weekly review command rolls up open work, overdue items and per-project counts. Before signing off, the knowledge graph reminds you that two notes you wrote weeks apart share tags — link them with a wiki link and the graph repaints live. Everything you did is still just .md files in vault/.

Features

Multi-view workspace with an activity rail — Notes, Board, Graph, Tags and Trash (Ctrl+Shift+1–5). The task board groups every checkbox by Overdue / Today / Next 7 days / No date / Done and can filter by project (/api/task-board?project=Name). The interactive knowledge graph is a deterministic force-directed canvas: drag nodes, scroll to zoom, folder-colored with a live legend.

Writing experience: slash block commands, a templates gallery from Templates/, Evernote-style related notes by shared tags, focus mode (Ctrl+\), light/dark/auto theme cycle, and clickable checkboxes in the preview that toggle the Markdown source. Reliability: automatic note-history snapshots with one-click restore, external file-change detection, rename-safe wiki-link updates, internal recoverable trash, and a print stylesheet. Search is SQLite FTS5-backed with saved searches, unlinked mentions and duplicate detection. Task intelligence spans 25 command-palette reports — dashboard, calendar, 7-day focus, weekly review, project health, milestones, dependencies, critical path, risk radar, workload, capacity, burndown and delivery forecast — all derived from Markdown, never a competing task database.

Installation

Portable Notes has no third-party dependencies — Python 3.9+ and the standard library are all you need. A virtual environment is optional but tidy:

git clone https://github.com/PeaBox-Lab/Portable-Notes.git
cd Portable-Notes
python -m venv .venv
# Windows: .venv\Scripts\activate
# Linux/macOS: source .venv/bin/activate
pip install -e .   # optional; app also runs without install
python app.py

On Windows you can also double-click start.bat. There is nothing to pip install for normal use — the app runs straight from the source tree.

Quickstart — 30 Seconds to Your First Note

git clone https://github.com/PeaBox-Lab/Portable-Notes.git
cd Portable-Notes
python app.py

Open http://127.0.0.1:8765, press Ctrl+N, type # Hello vault, press Ctrl+S. Your note is now vault/Hello vault.md — open it in any editor to verify. Add a second note with [[Hello vault]] inside it and switch to the Graph view (Ctrl+Shift+3) to see the link appear.

Configuration

Point the app at any vault with --vault; everything else lives in data/config.json (theme, vault path, UI state). The generated data/index.db is a disposable search index — delete it and it rebuilds.

python app.py --vault "D:\Notes\My Vault"
  • Theme — cycle light → dark → auto (follows OS preference) from the UI.
  • Task syntax — due: YYYY-MM-DD or 📅 YYYY-MM-DD; enhance with priority: high, project: Alpha, #project/Alpha, estimate: 2h, milestone: Release1, baseline: YYYY-MM-DD, taskid: Build and depends: Build.
  • Tests — python tests/e2e_ui_actions.py restores your real data/config.json after the run.

Keyboard Shortcuts

ShortcutAction
Ctrl+NNew note
Ctrl+SSave
Ctrl+KSearch
Ctrl+Shift+PCommand palette
Ctrl+Shift+1–5Switch views (Notes, Board, Graph, Tags, Trash)
Ctrl+Shift+NQuick capture to Inbox
Ctrl+\Focus mode — hide all panels
Ctrl+B / Ctrl+IBold / Italic

Task Intelligence

Checkbox tasks are aggregated across the vault. Past-due incomplete tasks are marked overdue; palette commands expose Dashboard, Calendar, Board, 7-day focus, Weekly review, Productivity stats, Project health, Milestones, Dependencies, Critical path, Risk radar, Workload, Capacity, Burndown, Delivery forecast, Schedule slippage, Metadata quality and Execution readiness. A planning snapshot API is also available: /api/task-calendar?start=YYYY-MM-DD&end=YYYY-MM-DD.

Troubleshooting

  • Port 8765 already in use — another instance is running; close it or stop the process holding the port, then re-run python app.py.
  • Notes not appearing — confirm you're pointing at the right vault (--vault) and that files end in .md; use the Import command for .txt files.
  • Search results look stale — data/index.db is disposable; close the app, delete the file and restart to rebuild the FTS5 index.
  • Graph view is empty — the graph renders [[wiki links]] only; make sure notes actually contain wiki-style links.
  • front matter flipped to true — upgrade to 3.1.0; the front-matter integrity fix stopped favorite/pinned flipping on rewrite.
  • E2E test pointed the app at a temp vault — 3.1.0's suite restores your real data/config.json automatically.
← Back to Repositories More Help →