Skip to content
pubscout

objectbox_sync_flutter_libs

5.3.2, released 6 months ago by objectbox.io

Flutter plugin providing the native ObjectBox NoSQL database with built‑in Sync support.

$ flutter pub add objectbox_sync_flutter_libs
Source repository

What it does

It bundles the ObjectBox engine and its Sync client as a Flutter plugin for Android, iOS, macOS, Windows and Linux. The library lets you store Dart objects locally and keep them synchronized with a remote ObjectBox Sync server.

AI-written summary of version 5.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a high‑performance local NoSQL database with automatic sync to a server
  • You target multiple desktop and mobile platforms and want a single Dart API

Skip it when

  • You require a relational SQL database or need full SQL query support
  • You prefer a pure‑Dart solution without native binaries

Strengths

  • Very fast object‑oriented storage
  • Built‑in data synchronization across devices
  • Cross‑platform native implementation

Weaknesses

  • Adds native binaries, increasing app size
  • Limited to ObjectBox ecosystem; no SQL support
  • Requires native build setup

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
2

Add objectbox_sync_flutter_libs (and objectbox) to pubspec.yaml, run flutter pub get, and ensure platform‑specific native dependencies are available (e.g., C++ toolchain for desktop). No additional code‑generation required.

import 'package:objectbox/objectbox.dart';

void main() async {
  final store = await openStore(); // provided by objectbox package
  final box = store.box<MyEntity>();
  box.put(MyEntity(id: 0, name: 'example'));
}

Alternatives

Packages that do the same job and could replace objectbox_sync_flutter_libs.

  • sqflite

    Pure SQLite wrapper, good for relational data and smaller binary size

  • drift

    SQL‑based ORM with code generation, supports complex queries

  • sqlite3

    Low‑level SQLite bindings for custom use cases

Works with

Packages commonly used together with objectbox_sync_flutter_libs: ones it builds on, ones built on it, and its own family.