What problem does it solve? Building apps that work offline and sync across devices is hard: naive approaches using React Query or localStorage break under network loss, storage limits, and edit conflicts. This Skill guides you through local-first architecture so your UI reads and writes a local database instantly while a background engine syncs to the cloud. ## Core Features & Use Cases - Sync Engine Selection: Compares PowerSync, ElectricSQL, Replicache, and WatermelonDB versus traditional HTTP fetching, with code patterns for local-first reads and writes. - Conflict Resolution with CRDTs: Demonstrates Yjs-based automatic merging for collaborative editing without a central server deciding winners. - In-Browser Database Guidance: Decision table covering IndexedDB, Dexie.js, SQLite WASM (OPFS), RxDB, and WatermelonDB, plus live-query React integration via dexie-react-hooks. - Use Case: Building a PWA todo app that must work offline on mobile and sync across devices — use PowerSync-style local SQLite queries for instant UI and Yjs for collaborative lists. ## Quick Start Ask the AI to design an offline-capable data layer for your app using a local-first sync engine and CRDT-based conflict resolution.