Skip to main content

Developer documentation

getbased is a native ES module web app with no app bundler. It still uses npm for tests, type checks, Playwright, and deployment helpers. If you are new here, start with CONTRIBUTING.md for setup, local runs, tests, and PR guidelines. Use this section when you need implementation details that are too technical for the user guides.

Start here

PageUse it for
ArchitectureHow the app is structured, started, and deployed without bundling app source
Module ReferenceFinding the JS module that owns a feature or window binding
Cross-Module PatternsShared patterns: window exports, state access, dependency boundaries

Data model and sync

PageUse it for
Data PipelineHow getActiveData() builds the data used by charts and AI context
Storage SchemalocalStorage, importedData, IndexedDB, export/import, and Agent Access state
Sync and Delta InternalsCross-device sync surfaces, tombstones, import snapshots, and merge rules
Context AssemblyHow labs, context cards, wearables, notes, and Agent Access context are assembled

AI and agents

PageUse it for
AI Surfaces MapWhich features use AI and which are deterministic
AI Provider InternalsProvider routing, private transports, Custom API proxying, OAuth, and web search
Agent Access RelayOwner-bound encrypted context relay, setup payload, and local MCP decrypt behavior
Local Lens InternalsIn-browser Knowledge Base storage, chunks, embeddings, and worker behavior
Lens Endpoint ContractWire spec for an external Knowledge Source server

Feature internals

PageUse it for
Biology ScoresScore engine, coverage planner, context gate, adapters, UI, and tests
Sun Spectrum ModelBird-Riordan spectral reconstruction for Light sessions
Wearables InternalsOAuth, local daily rows, synced summaries, runtime config, and Agent Access series

Operations and release checks

PageUse it for
TestingTest commands, browser specs, and how to add assertions
DeploymentVercel config, CSP, service worker, API routes, and PWA behavior
Legal ConsentFirst-launch Terms/Privacy gate, re-consent, startup ordering, and release checks
Routstr/Cashu SafetyMoney-path invariants and required tests for wallet/node/session flows
Codex PR Coverage WorkflowPR review and coverage workflow for agent-assisted changes

Maintenance rule

When adding a user-visible feature, update both sides in this repo:
  • the user guide that explains what the feature does and how to use it;
  • the developer page that explains storage, sync, privacy, tests, and owner modules.
Do not create a second long-lived docs surface in the app repository. The app repo may keep executable tests and temporary notes; durable docs belong here.