Search packages, repositories and app categories

Package detailsv3.9.0

sembast

NoSQL persistent embedded file system document-based database for Dart VM and Flutter with encryption support.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
387K
Likes
1.2K
Pub points
160

Install package

flutter pub add sembast

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Sembast is a lightweight, embedded NoSQL database for Dart and Flutter applications, designed for persistent, file-based storage with support for encryption. It enables efficient document-oriented data management across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for offline-first apps, it offers simple APIs for storing and querying data without requiring a server. Sembast supports transactions, indexing, and secure data handling through built-in encryption, making it suitable for sensitive information. Its minimal footprint and ease of integration make it a strong choice for local data persistence in Flutter projects.

Use cases

  • Offline-first mobile applications
  • Local data storage for web and desktop apps
  • Secure local data with encryption
  • Simple document-based data management
  • App state persistence
  • Caching of remote data

Key features

  • Embedded file-based database
  • Support for encryption
  • Cross-platform compatibility
  • Document-oriented storage
  • Indexing and querying
  • Transaction support

Suitable for

  • Flutter developers needing local persistence
  • Apps requiring secure offline data
  • Projects avoiding external databases
  • Developers preferring simplicity over complexity
  • Applications with moderate data volume

Considerations

  • Not suitable for large-scale or high-concurrency scenarios
  • Limited to file-based storage
  • No built-in synchronization with remote databases
  • Requires manual handling of schema evolution
  • Best suited for single-device use cases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

sembast

pub package Build Status codecov

NoSQL persistent embedded file system document-based database for Dart VM and Flutter with encryption support.

General

Yet another NoSQL persistent store database solution.

Pure dart solution working on Dart VM and Flutter using the file system as storage (1 database = 1 file). Works in memory (Browser, VM, Flutter, Node) for testing purpose

  • Supports single process io applications (Pure dart single file IO VM/Flutter storage supported)
  • Support transactions
  • Version management
  • Helpers for finding data
  • Web support (including Flutter Web) through sembast_web.
  • Can work on top of sqflite through sembast_sqflite.

Usage example:

Follow the guide.

Documentation

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

Rankings