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.
Getting started
Scaffold a runnable Strata Sync app with one command: a Fastify and Postgres sync server, a React client, and the tables to sync.
One command creates a working app. Everything it generates is yours to edit.
Create an app
npx stratasync init my-app
cd my-app
npm installYou get two npm workspaces. api/ is a Fastify server with the sync routes registered and a Drizzle schema for the sync log and a todos table. web/ is a React client that reads from IndexedDB, queues writes offline, and converges on the server's log.
Run it
Postgres runs in Docker. The API reads its connection string from api/.env, which init seeds for you.
npm run
Published with Blode.md