Product and architecture
I set the invite-only, local-first product direction and define the trust boundaries that keep client state, relay responsibilities, and hosted exceptions explicit.
Engineering case study · A project by Jason Harmon
EmberChamber brings native clients, a web companion and an edge-hosted delivery system together around invite-only conversations. This is a guided map of the implementation and its boundaries, not a claim that every client has feature parity.
I use AI-assisted development as part of the implementation workflow, while retaining ownership of architecture, integration, review, and release decisions. The linked source and automated results make that validation inspectable.
My role and engineering scope
I set the invite-only, local-first product direction and define the trust boundaries that keep client state, relay responsibilities, and hosted exceptions explicit.
I integrate the web, mobile, desktop, relay, and shared protocol work so changes are reviewed as one product rather than isolated technology demos.
I own the verification bar, release evidence, and published limitations—including calling out when source, deployment, and downloadable artifacts do not match.
System overview
01 · Clients
Next.js for the browser, React Native / Expo for mobile, and a Tauri desktop shell. Client-specific storage and key handling remain part of the security boundary.
apps/web · apps/mobile · apps/desktop
02 · Relay
Cloudflare Workers handle relay APIs. Durable Objects coordinate per-device mailboxes, groups and rate limits; queues support background work.
apps/relay · Workers · Durable Objects
03 · Persistence
D1 stores account and routing metadata; R2 stores attachment objects. The documented distinction between encrypted conversations, hosted rooms and client-local history matters.
D1 · R2 · Device-local state
One engineering story
Design decisions
Per-device Durable Objects queue ciphertext envelopes, deliver them over WebSockets and remove them after acknowledgement or expiry.
Tradeoff: Offline delivery still requires infrastructure. Account, device, membership and routing metadata remain server-side; not every group or room path has the same storage boundary.
Relay implementationPrivate-message history and its search index stay with the client rather than becoming a server-side full-text archive.
Tradeoff: Local-first state makes device loss, key handling and recovery important product problems. Recovering an account is not equivalent to restoring all lost history.
Storage and recovery architectureRust and TypeScript contract definitions describe sessions, device bundles, mailbox envelopes, groups and attachments across the active runtimes.
Tradeoff: Shared definitions help reviewers track changes, but they do not replace cross-client tests. The Rust core is still partial, not the primary engine for every client flow.
TypeScript protocol packageThe repository includes CI workflows for builds, checks and screenshots, plus a release feed for downloadable native artifacts.
Tradeoff: An implemented feature is not automatically deployed or present in a published installer. Release identity and per-client support must be checked independently.
Build and verification workflowsRuntime map, storage planes and known gaps.
View on GitHubRust definitions alongside the TypeScript mirror.
View on GitHubInspect workflow results and their artifacts.
View on GitHubDownloadable builds, release notes and artifact names.
View on GitHubWork still in progress
Current source encrypts conversation attachment bytes before upload across web, mobile and desktop. Device-encrypted conversations keep file keys with participants; relay-hosted rooms and legacy groups use recoverable relay-side key material. The relay also receives exact plaintext length and a deterministic plaintext hash for encrypted uploads today. Production deployment, published-installer parity, authenticator validation and recovery maturity require separate verification.
The README also documents historical release-version mismatches. Inspect the artifact and its notes rather than assuming a newer source commit means a newer installed client.