AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Architecture overview
The layered architecture of Strata Sync, from the framework-agnostic core to React and Next.js integrations.
The core is framework-agnostic. Adapters at the edges handle React, MobX, IndexedDB, and GraphQL. The sync protocol is based on Linear's published design.
Package dependency graph
Compile-time dependencies between packages:
flowchart TD
SN["@stratasync/next"]
SR["@stratasync/react"]
SC["@stratasync/client"]
SCO["@stratasync/core"]
SY["@stratasync/y-doc"]
SN --> SR
SN --> SC
SN --> SCO
SR --> SC
SR --> SCO
SC --> SCO
SC --> SYDependencies flow downward. @stratasync/core has zero runtime dependencies on any framework, storage engine, or transport: you can test sync logic in pure Node.js without a browser.
Storage, transport, and reactivity adapters implement interfaces from @stratasync/core and are injected at runtime via SyncClientOptions. Swap adapters without changing the dependency graph.
Layered architecture
Each layer builds on the one below. See the individual package docs for API details.