Skip to content
athishbl1Public

About

A macOS PDF reader, annotator and study notebook. Local-first, offline, no AI or accounts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Folio — your personal space for reading, writing and learning

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.


Platform & Requirements

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

Quick Start

Build the app

# 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.app

Testing

swift test                              # unit tests (Swift Testing)
./scripts/selftest.sh /tmp/folio-out   # end-to-end: real app + light/dark snapshots (PNG)

Regenerate assets

./scripts/make_icon.sh          # rebuild AppIcon.icns from scripts/make_icon.swift

Interface & Workspace

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


Where Your Data Lives

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.


Design System

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.


Roadmap

About

A macOS PDF reader, annotator and study notebook. Local-first, offline, no AI or accounts.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages