How fooftilly/prks works
PRKS is a self-hosted, local-first research library. A user browses or edits library content in the browser; the server handles API requests and coordinates domain operations against the canonical library and managed files. The README documents research organization, PDF reading and annotation, structured research links, workspace tabs, offline-capable operations, and backup/restore. The graph preserves these major branches; several edges describe documented capabilities rather than inspected call sites, and are cited to the README.
Main entry points: server.py API server · app.js Browser UI · db_manager.py Works and metadata · work_pdf_replace.py PDF replacement
Components 18
Browser experience
- Browser UI
frontend/js/app.js - Tabs and panes
frontend/js/workspace-model.js - Legacy browser runtime
frontend/js/app.js - Typed route surfaces
frontend-app/src/route-surface/routes.ts
HTTP application
- API server
backend/server.py - Identity boundary
backend/api/session.py
Library domains
- Works and metadata
backend/db_manager.py - Research relationships
backend/research_network.py - Search and indexing
backend/text_index.py - PDF annotations
backend/pdf_annotations.py - PDF replacement
backend/services/work_pdf_replace.py
Persistence and files
- Library database
backend/db_manager.py - Storage root
backend/storage/root_binding.py - Managed PDFs
backend/storage/paths.py
Local-first operations
- Offline runtime
frontend/js/offline-runtime.js - Durable operations
frontend/js/sync-runtime.js - Backup and restore
backend/backup_restore.py
Other components
- Researcher
Connections 23
- Researcher → Browser UI: uses
README.md - Browser UI → API server: requests
- API server → Identity boundary: admits requests
backend/api/session.py - API server → Works and metadata: handles library APIs
backend/server.py - API server → Research relationships: routes research edits
backend/server.py - API server → Search and indexing: serves search
backend/server.py - API server → PDF annotations: handles annotations
backend/server.py - API server → PDF replacement: coordinates PDF updates
backend/server.py - Works and metadata → Library database: reads and writes
backend/db_manager.py - PDF replacement → Managed PDFs: publishes PDF bytes
backend/services/work_pdf_replace.py - Storage root → Managed PDFs: roots file paths
backend/storage/paths.py - Researcher → Tabs and panes: organizes work
README.md - Browser UI → Tabs and panes: presents tabs
README.md - Browser UI → Legacy browser runtime: runs library UI
README.md - Browser UI → Typed route surfaces: mounts route surfaces
- Browser UI → Offline runtime: supports offline use
README.md - Offline runtime → Durable operations: queues durable operations
- Durable operations → API server: synchronizes operations
- Researcher → Backup and restore: backs up library
README.md - Backup and restore → Library database: backs up canonical data
README.md - Researcher → PDF annotations: annotates PDFs
README.md - Researcher → Research relationships: connects research
README.md - Researcher → Search and indexing: finds library items
README.md