meridian_sync 0.5.0 copy "meridian_sync: ^0.5.0" to clipboard
meridian_sync: ^0.5.0 copied to clipboard

Meridian sync client for Flutter — local-first, offline-first, realtime sync with CRDT conflict resolution.

Meridian Sync — Flutter SDK #

Local-first sync engine for Flutter apps. Offline-first. Real-time. Conflict-resolved.

Quick Start #

import 'package:meridian_sync/meridian_sync.dart';

final db = MeridianClient(
  serverUrl: 'wss://api.example.com/sync',
  schema: SchemaDefinition(
    version: 1,
    collections: {
      'todos': CollectionSchema(fields: {
        'id': FieldDef(type: 'string'),
        'title': FieldDef(type: 'string'),
        'done': FieldDef(type: 'boolean', default: false),
      }),
    },
  ),
);

// Reactive query
db.collection('todos').find().listen((todos) {
  setState(() => this.todos = todos);
});

// Write
await db.collection('todos').put({'id': '1', 'title': 'Build sync engine'});

Features #

  • HLC (Hybrid Logical Clock) for causal ordering
  • LWW CRDT for field-level conflict resolution
  • SQLite persistence via sqflite
  • WebSocket transport
  • Reactive Stream-based queries
  • Complete offline support
0
likes
120
points
122
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Meridian sync client for Flutter — local-first, offline-first, realtime sync with CRDT conflict resolution.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, path, sqflite, uuid, web_socket_channel

More

Packages that depend on meridian_sync