Examples
Quick Start Examples
Copy-ready example snippets showing increasing levels of usage: Minimal → Basic Server → Plugin → Browser → Advanced Sync.
Shortest path: issue a device JWT using `@epheme/core` primitives.
Wire up the Hub device routes, `DeviceStore`, and `CertManager` for device auth.
How to author a minimal backend plugin and register for Hub events.
Protecting routes with `requireDevice()` and `requireAdmin()` middleware; includes role-based access control.
Using `createLogger` for privacy-safe structured logging with automatic redaction of sensitive fields.
Coverage for `mailer.js`, `metrics.js`, and `rateLimiter.js` with practical API usage.
Using `DeviceSession` and `quickConnectClient` from the browser to pair and call protected endpoints.
Covers `client`, `device`, `hub-sync`, `license`, `idb`, and plugin-registry browser modules.
Example showing Sovereign Sync server and client delta flow.
File-by-file map showing where every package source file is covered in docs/examples.