Enterprise-Grade
Local-First Sync Engine
Production-ready synchronization infrastructure for Flutter. Custom conflict resolvers, delta sync, encryption at rest, and 90% better performance. Enterprise-grade features for mission-critical apps.
Local Storage
- Isar Database
- Composite Indexes
- SHA-256 Hashing
Sync Engine
- Event-Driven
- Logging & Metrics
- Pagination Support
Backend Adapters
- REST API
- Firebase
- Supabase
Developer Experience First
Clean API. Zero boilerplate. Production ready.
Installation
dependencies:
synclayer: ^1.3.0
# Run
flutter pub getInitialization
await SyncLayer.init(
SyncConfig(
baseUrl: 'https://api.example.com',
collections: ['todos', 'users'],
conflictStrategy: ConflictStrategy.lastWriteWins,
),
);CRUD Operations
// Create
final id = await SyncLayer
.collection('todos')
.save({'text': 'Buy milk', 'done': false});
// Read
final todo = await SyncLayer
.collection('todos')
.get(id);
// Update
await SyncLayer
.collection('todos')
.save({'done': true}, id: id);
// Delete
await SyncLayer
.collection('todos')
.delete(id);Delta Sync
// Only sync changed fields (70-98% bandwidth savings)
await SyncLayer
.collection('todos')
.update(id, {'done': true});
// Instead of sending entire document
// Saves bandwidth, reduces conflictsCustom Conflict Resolvers
// Merge arrays instead of replacing
await SyncLayer.init(
SyncConfig(
conflictStrategy: ConflictStrategy.custom,
customConflictResolver: ConflictResolvers.mergeArrays(['tags', 'likes']),
),
);Encryption at Rest
// AES-256-GCM encryption
await SyncLayer.init(
SyncConfig(
encryption: EncryptionConfig(
enabled: true,
key: encryptionKey,
algorithm: EncryptionAlgorithm.aes256GCM,
),
),
);Built for Scale
Enterprise-grade features out of the box
Custom Conflict Resolvers
Application-specific conflict resolution with pre-built resolvers for arrays, numbers, fields, and deep merging
Delta Sync
Only sync changed fields instead of entire documents, achieving 70-98% bandwidth savings and fewer conflicts
Encryption at Rest
Industry-standard AES-256-GCM, AES-256-CBC, and ChaCha20-Poly1305 encryption for HIPAA, PCI DSS, and GDPR compliance
Conflict Resolution
Configurable strategies: last-write-wins, server-wins, client-wins, or custom resolvers with version tracking
Intelligent Retry
Exponential backoff with configurable max retries and automatic queue management
Backend Agnostic
Adapter pattern for any backend: REST, Firebase, Supabase, Appwrite, or custom with delta sync support
v1.3.0 Enterprise Features
Technical Comparison
| Feature | SyncLayer | Firebase | Supabase | Drift |
|---|---|---|---|---|
| Offline-First | ✓ | ✓ | ✗ | ✓ |
| Auto-Sync | ✓ | ✓ | ✗ | ✗ |
| Delta Sync | ✓ | ✗ | ✗ | ✗ |
| Custom Conflict Resolvers | ✓ | ✗ | ✗ | ✗ |
| Encryption at Rest | ✓ | Partial | Partial | ✗ |
| Backend Agnostic | ✓ | ✗ | ✗ | ✓ |
| Event System | ✓ | ✓ | ✓ | ✗ |
| Package Size | 632 KB | ~2 MB | ~1.5 MB | ~500 KB |
| Free Tier | ✓ | Limited | Limited | ✓ |
Ready for Production
Join developers building the next generation of offline-first applications