This is your blueprint for building Capacitor apps that work offline. It covers the full stack: network detection with the Capacitor Network plugin, local storage with Fast SQL, and a complete sync manager that handles pending changes and conflict resolution. The architecture is practical, separating online/offline modes with a service layer that transparently falls back to cached data. Worth noting that Fast SQL requires platform-specific setup (localhost networking on iOS, cleartext exceptions on Android), so budget time for that. The sync strategy is timestamp-based with soft deletes, which works for most apps but might need adjustment if you have complex multi-user conflict scenarios.
npx skills add https://github.com/cap-go/capgo-skills --skill capacitor-offline-first