Architecture
Architecture and storage: how Portable Notes keeps state coherent
Vanilla JS and Python standard library; Markdown source of truth; disposable index; air-gapped by design.
Data ownership
The vault folder is canonical. data/index.db is a cache: delete it and search rebuilds. Backups are folder copies or Git repositories; no hidden service layer.
File format
vault/
project-alpha.md
research/
paper-notes.md
Templates/
meeting.md
data/index.db
Technical specs
| Layer | Specification |
|---|---|
| Runtime | Python 3.9+ standard library only |
| Instance | v3.1.0 Constellation; 24/24 unit tests; 69/69 e2e checks |
| Network | HTTP loopback only on 127.0.0.1:8765 |
| License | MIT (verify in repo LICENSE) |
| Dependencies | Zero third-party packages for normal operation |
| Tests | tests/e2e_ui_actions.py restores real config; safe to run |
Why no database of record
Anything that matters lives in .md. SQLite is merely a fast lens for search and backlinks; crash recovery is never data recovery.