{"id":47626713,"url":"https://github.com/stratasync/stratasync","last_synced_at":"2026-04-01T22:51:21.200Z","repository":{"id":346060973,"uuid":"1188362973","full_name":"stratasync/stratasync","owner":"stratasync","description":"Sync that works offline.","archived":false,"fork":false,"pushed_at":"2026-03-31T03:31:04.000Z","size":3199,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-31T05:54:01.909Z","etag":null,"topics":["linear","mobx","nextjs","sync","sync-engine"],"latest_commit_sha":null,"homepage":"https://stratasync.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stratasync.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-22T01:03:52.000Z","updated_at":"2026-03-31T03:31:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stratasync/stratasync","commit_stats":null,"previous_names":["stratasync/stratasync"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/stratasync/stratasync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratasync%2Fstratasync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratasync%2Fstratasync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratasync%2Fstratasync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratasync%2Fstratasync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stratasync","download_url":"https://codeload.github.com/stratasync/stratasync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratasync%2Fstratasync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linear","mobx","nextjs","sync","sync-engine"],"created_at":"2026-04-01T22:51:19.303Z","updated_at":"2026-04-01T22:51:21.187Z","avatar_url":"https://github.com/stratasync.png","language":"TypeScript","readme":"# Strata Sync\n\nSync that works offline.\n\nA local-first sync engine for TypeScript, React, and Next.js. Every read is instant. Every write works offline. Every client converges.\n\n## Why Strata Sync\n\nLinear built a sync architecture that became the gold standard for local-first apps, but never open-sourced it. [Strata Sync](https://stratasync.dev) is an open-source implementation of that architecture, extended with Yjs CRDT collaboration, undo/redo, and pluggable adapters.\n\n## Features\n\n- **Instant reads**: Local IndexedDB replica. No spinners, no round-trips.\n- **Offline support**: Writes queue offline and sync when you reconnect.\n- **Fine-grained reactivity**: MobX observables. Only affected components re-render.\n- **Real-time collaboration**: Multiple users edit the same document with Yjs.\n- **Undo and redo**: Transaction-based history tracking.\n- **Modular**: Swap storage, transport, or reactivity adapters.\n\n## Quick Start\n\nScaffold a full-stack app with the Claude Code skill:\n\n```bash\nnpx skills add stratasync/stratasync\n```\n\nOr install the packages manually:\n\n```bash\nnpm install @stratasync/core @stratasync/client @stratasync/react @stratasync/mobx @stratasync/storage-idb @stratasync/transport-graphql\n```\n\n### 1. Define your models — `lib/sync/models.ts`\n\n```typescript\nimport { ClientModel, Model, Property } from \"@stratasync/core\";\n\n@ClientModel(\"Todo\", { loadStrategy: \"instant\" })\nclass Todo extends Model {\n  @Property() declare title: string;\n  @Property() declare completed: boolean;\n}\n```\n\n### 2. Create the client — `lib/sync/client.ts`\n\n```typescript\nimport { createSyncClient } from \"@stratasync/client\";\nimport { createMobXReactivity } from \"@stratasync/mobx\";\nimport { createIndexedDbStorage } from \"@stratasync/storage-idb\";\nimport { GraphQLTransportAdapter } from \"@stratasync/transport-graphql\";\n\nconst client = createSyncClient({\n  storage: createIndexedDbStorage(),\n  transport: new GraphQLTransportAdapter({\n    endpoint: \"/api/graphql\",\n    syncEndpoint: \"/api/sync\",\n    wsEndpoint: \"wss://api.example.com/sync/ws\",\n    auth: { getAccessToken: async () =\u003e \"token\" },\n  }),\n  reactivity: createMobXReactivity(),\n});\n```\n\n### 3. Build reactive components — `components/todo-list.tsx`\n\n```tsx\nimport { observer } from \"mobx-react-lite\";\nimport { useQuery, useSyncClient } from \"@stratasync/react\";\n\nconst TodoList = observer(() =\u003e {\n  const { data: todos } = useQuery(\"Todo\", {\n    where: (t) =\u003e !t.completed,\n  });\n  const { client } = useSyncClient();\n\n  const addTodo = async () =\u003e {\n    const todo = await client.create(\"Todo\", {\n      title: \"New todo\",\n      completed: false,\n    });\n    todo.title = \"Actually, a better title\";\n    await todo.save();\n  };\n\n  return (\n    \u003cul\u003e\n      {todos.map((todo) =\u003e (\n        \u003cli key={todo.id}\u003e{todo.title}\u003c/li\u003e\n      ))}\n      \u003cbutton onClick={addTodo}\u003eAdd\u003c/button\u003e\n    \u003c/ul\u003e\n  );\n});\n```\n\n### Documentation\n\nFull documentation at [stratasync.dev/docs](https://stratasync.dev/docs).\n\n## Packages\n\n`core` | `client` | `react` | `mobx` | `y-doc` | `next` | `storage-idb` | `transport-graphql` | `server`\n\n## License\n\n[MIT](LICENSE.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstratasync%2Fstratasync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstratasync%2Fstratasync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstratasync%2Fstratasync/lists"}