Folio is a local-first PDF reader, annotator and study notebook. Built with Swift, SwiftUI, AppKit and PDFKit.
🔒 No AI. No accounts. No network. Everything stays private on your Mac.
| Requirement | Details |
|---|---|
| Platform | 🍎 macOS only (Sonoma 14+) — not available for Windows or Linux |
| Build | Swift 6 toolchain (Swift 5 mode) — no Xcode required, Command Line Tools enough |
| Data | Local files, plain text formats — no database, fully portable |
# Build the macOS app bundle
./scripts/build_app.sh # → build/Folio.app (ad-hoc signed with icon)
# Or create a DMG installer
./scripts/make_dmg.sh # → build/Folio.dmg (Folio.app + Applications shortcut)
# Then open it
open build/Folio.appswift test # unit tests (Swift Testing)
./scripts/selftest.sh /tmp/folio-out # end-to-end: real app + light/dark snapshots (PNG)./scripts/make_icon.sh # rebuild AppIcon.icns from scripts/make_icon.swiftSingle unified shell — no dual modes, one calm web-style workspace:
- Sidebar (collapsible): Home, Library, Notebook, Starred, Recent documents, Collections, Tags
- Top bar (56px): breadcrumb, document tabs
- Reader (full-bleed): floating tool capsule, page pill overlay
- Inspector (right panel): Notes, Highlights, Pages, Outline, Study, Info
Keyboard: ⌘K opens the command palette Responsive:
- ≥1180px: full shell
- 820–1180px: icon rail sidebar
- <820px: drawer sidebars
Typeset in Inter (bundled, OFL).
📋 See plans/ui-redesign.md for the complete design spec.
Everything stays on this Mac, in plain files (no database):
./Library/ # (git-ignored; override with FOLIO_LIBRARY=/path)
├── library.json # index: documents, folders, tabs, palette
└── Documents/<id>/
├── original.pdf # imported copy, read-only, never modified
├── annotations.json # your edits (page-space coordinates)
├── notes.json + notes/*.rtfd # personal notes
├── study.json, state.json # bookmarks, flags, revision, last page+zoom
├── exports/ # annotated PDFs — always NEW files, never overwrites
└── recovery/ # crash-recovery snapshot
✅ Exports are safe: the exporter refuses to overwrite original.pdf.
🔄 Legacy support: old PDFNOTES_LIBRARY env var still works.
Colors, type, spacing and components live in Sources/PDFNotes/Design/:
- Tokens (light + dark):
PDFNotesCore/FolioPalette.swift - Annotation colors: separate palette in
Annotation.swift
See plans/folio-rebrand.md for details.