Skip to main content
v1.3.0Production Ready • Enterprise Features

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.

153 Tests Passing
160/160 Pub Score
70-98% Bandwidth Savings
AES-256 Encryption

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

yaml
dependencies:
  synclayer: ^1.3.0

# Run
flutter pub get

Initialization

dart
await SyncLayer.init(
  SyncConfig(
    baseUrl: 'https://api.example.com',
    collections: ['todos', 'users'],
    conflictStrategy: ConflictStrategy.lastWriteWins,
  ),
);

CRUD Operations

dart
// 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

dart
// Only sync changed fields (70-98% bandwidth savings)
await SyncLayer
  .collection('todos')
  .update(id, {'done': true});

// Instead of sending entire document
// Saves bandwidth, reduces conflicts

Custom Conflict Resolvers

dart
// Merge arrays instead of replacing
await SyncLayer.init(
  SyncConfig(
    conflictStrategy: ConflictStrategy.custom,
    customConflictResolver: ConflictResolvers.mergeArrays(['tags', 'likes']),
  ),
);

Encryption at Rest

dart
// 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

6 pre-builtCustom logicField-level

Delta Sync

Only sync changed fields instead of entire documents, achieving 70-98% bandwidth savings and fewer conflicts

70-98% savingsFaster syncLess conflicts

Encryption at Rest

Industry-standard AES-256-GCM, AES-256-CBC, and ChaCha20-Poly1305 encryption for HIPAA, PCI DSS, and GDPR compliance

AES-256-GCMHIPAA readyAuto encrypt

Conflict Resolution

Configurable strategies: last-write-wins, server-wins, client-wins, or custom resolvers with version tracking

4 strategiesVersion controlHash-based

Intelligent Retry

Exponential backoff with configurable max retries and automatic queue management

Auto-retryQueue systemFailure handling

Backend Agnostic

Adapter pattern for any backend: REST, Firebase, Supabase, Appwrite, or custom with delta sync support

4 adaptersDelta supportType-safe

v1.3.0 Enterprise Features

70-98%
Bandwidth Savings
With delta sync
AES-256
Encryption
HIPAA compliant
6
Pre-built Resolvers
Custom conflicts
153
Tests Passing
Production ready

Technical Comparison

FeatureSyncLayerFirebaseSupabaseDrift
Offline-First
Auto-Sync
Delta Sync
Custom Conflict Resolvers
Encryption at RestPartialPartial
Backend Agnostic
Event System
Package Size632 KB~2 MB~1.5 MB~500 KB
Free TierLimitedLimited

Ready for Production

Join developers building the next generation of offline-first applications