Skip to content

Yielded Sync

Realtime state, with receipts.

Effect-native contracts, an authoritative server, and scoped clients that keep the same command identity through retries.

Get startedExplore the API
bun add @yielded/sync@beta

One source of authority

Commit state, durable events, exact outcomes, and outbox obligations together. Replay stays ordered and gaps trigger recovery.

Honest optimistic state

Clients expose provisional edits and declared rejections while retaining unresolved commands for exact retry.

Explicit host boundaries

Keep your domain model and authorization in the app. Add Cloudflare hosting and browser or Expo persistence only where needed.

The package family shares one beta version. The original four packages are published as 0.1.0-beta.0; the effect-cf and Alchemy split in this checkout is pending the next release. Pin exact versions while the API and persisted formats are in beta. Start with the installation guide and choose the adapters for your host.

Package Use it for
@yielded/sync Shared contracts, server and client runtimes, and Atom bindings
@yielded/sync-platform-cloudflare Shared Cloudflare protocol and SQLite storage
@yielded/sync-platform-effect-cf Native effect-cf integration
@yielded/sync-platform-alchemy-cf Native Alchemy v2 integration
@yielded/sync-local-indexeddb Browser persistence
@yielded/sync-local-expo Expo SQLite persistence

The consumer example assembles the public entry points into a counter and a reusable label capability. The release guide describes supported hosts and the beta compatibility policy.