Advanced
Production hardening and optional capabilities for Swoff apps.
Advanced Patterns
These patterns solve real-world production needs — conflict resolution, authentication, push notifications, and more. Each is optional and independent.
Performance
Cache size limits, IndexedDB optimization, and memory management.
Benchmarks
Measure SW install, cache latency, IndexedDB speed, and memory usage.
Accessibility
Make offline apps accessible — screen readers, keyboard nav, ARIA.
Mutation Queuing
Queue offline writes and sync when connection returns.
Background Sync
Process mutation queue after tab close via Background Sync API.
Push Notifications
Subscribe to push, handle notifications, and integrate with your data layer.
Conflict Resolution
Handle concurrent offline edits — LWW, custom merge, manual, CRDT.
Authentication
Auth-aware offline architecture: store tokens, cache user, handle 401s.
Testing
Test SW, IndexedDB, mutation queue, and offline behavior with Vitest + Playwright.
Debugging
Debug SW, cache, IndexedDB, and postMessage communication with DevTools.
Swoff