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.
Installation
Install Strata Sync packages for your project and configure TypeScript.
npx skills add mblode/stratasyncThis installs a Claude Code skill that generates a working client and server with models, sync, IndexedDB, WebSocket, and PostgreSQL.
experimentalDecorators enabled@stratasync/next)# React app
npm install @stratasync/core @stratasync/client @stratasync/react @stratasync/mobx @stratasync/storage-idb @stratasync/transport-graphql
# Next.js app
npm install @stratasync/core @stratasync/client @stratasync/react @stratasync/next @stratasync/mobx @stratasync/storage-idb @stratasync/transport-graphql
# Add collaborative editing
npm install @stratasync/y-docnpm install react mobx yjs| Package | Required versions |
|---|---|
@stratasync/react | react ^18 || ^19, yjs ^13.6 |
@stratasync/next | next ^14 || ^15, react ^18 || ^19 |
@stratasync/mobx | mobx ^6.0 |
Enable experimental decorators for model schema definitions.
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": false,
"strict": true,
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler"
}
}emitDecoratorMetadata is not needed: decorators register with the ModelRegistry at runtime.