How victor-root/glasskeep-enhanced works
GlassKeep is a self-hosted, local-first notes product with a web/PWA client, server API, and Android companion that also supports TV layouts. Users authenticate, create and manage notes, and work offline through a local queue that synchronizes with the server when available. The product also includes collaboration/federation, encryption and passkeys, AI, reminders, audio and drawing notes, and in-app updates. The graph combines README-documented capabilities with the sampled source and SOURCE INDEX; unsampled subsystem internals and some runtime wiring are not asserted.
Main entry points: index.js Application server · App.jsx Web application · syncEngine.js Offline sync · federationRoutes.js Server federation
Components 22
Client experience
- Web application
src/App.jsx - Sign-in UI
src/components/auth - Offline sync
src/sync/syncEngine.js - Local note store
src/sync/localDb.js - Notes and editors
src/components/notes - HTTP API client
src/utils/api.js
Server services
- Application server
server/index.js - Server database
server/index.js - Server federation
server/routes/federationRoutes.js - Federation protocol
server/federation/notes.js
Security
- Instance encryption
server/encryption/instanceVault.js - Note encryption
server/encryption/noteCipher.js - Unlock routes
server/routes/unlockRoutes.js - Passkey routes
server/routes/passkeyRoutes.js
Product extensions
- AI assistant
server/ai/aiRoutes.js - Reminder service
server/services/reminderScheduler.js - Push notifications
server/services/pushNotifications.js - Self-update service
server/services/updateOrchestrator.js
Mobile apps
- Android companion
android/app/src/main/java/com/glasskeep/app/WebViewActivity.kt - TV interface
src/components/tv/TvApp.jsx
Other components
- User
- Federated server
Connections 26
- User → Web application: uses
README.md - Web application → Sign-in UI: presents sign-in
src/App.jsx - User → Notes and editors: creates notes
README.md - Web application → Offline sync: coordinates sync
src/App.jsx - Offline sync → Local note store: reads and updates queue
src/sync/syncEngine.js - Offline sync → HTTP API client: synchronizes remotely
- Web application → HTTP API client: requests data
src/App.jsx - HTTP API client → Application server: sends API requests
- Application server → Server database: reads and writes
server/index.js - Application server → Server federation: registers routes
server/index.js - Server federation → Federation protocol: dispatches federation
server/routes/federationRoutes.js - Server federation → Federated server: exchanges notes
README.md - Application server → Unlock routes: registers routes
server/index.js - Unlock routes → Instance encryption: uses vault
server/routes/unlockRoutes.js - Instance encryption → Note encryption: provides note keys
- Application server → Passkey routes: registers routes
server/index.js - Passkey routes → Instance encryption: uses instance vault
server/routes/passkeyRoutes.js - Web application → AI assistant: requests AI assistance
README.md - Application server → AI assistant: mounts AI routes
server/index.js - Application server → Reminder service: schedules reminders
server/index.js - Reminder service → Push notifications: delivers notifications
- Web application → Self-update service: requests self-update
README.md - Application server → Self-update service: uses update orchestrator
server/index.js - User → Android companion: uses companion
README.md - Android companion → Web application: loads web app
README.md - Android companion → TV interface: selects TV layout
README.md