Search packages, repositories and app categories

Package detailsv1.2.10

orange

orange database is super fast and esay modern key-value store. working everywhere.and no need build_runner

AndroidiOSWebmacOSWindowsLinux
30-day downloads
737
Likes
22
Pub points
125

Install package

flutter pub add orange

Package Overview

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

Orange is a high-performance, modern key-value store designed for simplicity and speed across all platforms. It offers persistent storage with minimal setup—no build_runner required—making it ideal for apps needing fast, reliable data access. Built with Dart, it works seamlessly on Android, iOS, Web, macOS, Windows, and Linux. Its lightweight design and straightforward API allow developers to quickly implement local data persistence without boilerplate or complex configurations.

Use cases

  • Storing app preferences
  • Caching frequently accessed data
  • Offline-first application state management
  • Simple local data persistence
  • User session management

Key features

  • Ultra-fast read/write operations
  • No build_runner dependency
  • Cross-platform compatibility
  • Minimal API surface
  • Automatic data persistence
  • Lightweight and easy to integrate

Suitable for

  • Small to medium-sized apps
  • Prototypes and MVPs
  • Apps requiring offline functionality
  • Developers seeking simple persistence
  • Projects avoiding code generation

Considerations

  • Not suitable for complex queries
  • Limited to key-value storage
  • No built-in data synchronization
  • Best for simple data structures
  • Not ideal for large datasets

Original README

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

pub package GitHub

Orange Database 🍊

Discord Server Invite Kakao_Talk

Features

  • ✨ Super Fast Speed 100 x faster than SharedPreference
  • 🦄 Super Easy: same api as SharedPreference
  • 🚀 All Environment Work: Working on Android, iOS, Web, Mac, Windows, Linux even cli.
  • 🌐 No Build Runner: Do not waste your time on build_runner

Installation

flutter pub add orange

Usage

await Orange.init();

Orange.setString('orange', 'is delicious! 🍊');

String? orange = Orange.getString('orange');
print(orange); // is delicious! 🍊

Orange.remove('orange');

you got all usage of Orange now! 🎉

Benchmark

read & write 10000 times with Orange Database 🍊 and shared_preferences

orange 🍊 write performance test time: 3 ms
orange 🍊 read performance test time: 1 ms

shared_preferences write performance test time: 49228 ms
shared_preferences read performance test time: 28 ms

hive write performance test time: 1538 ms
hive read performance test time: 4 ms

sembast write performance test time: 14884 ms
sembast read performance test time: 146 ms

you can re run the benchmark test this repository

Advanced Usage

Check Saved Disk Time

if you want to check if the data is saved on disk, you can use Orange.isSavedToDisk() method.

bool isSaved = await Orange.isSavedToDisk();
print(isSaved); // true
Support List & Map

note that only support string , int , double , bool type in List and Map.

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package

No data available yet.