登录 注册

objectbox-dart

去点 Star
数据分析与数据处理 androidcross-platformdartdatabaseembeddedfirebase
1,238
Stars
163
Forks
16
Watchers
74
Open Issues
Apache-2.0
许可证
Dart
语言
2019-07-18
创建时间
2026-11-09
最近更新

项目能做什么

专为 Flutter 和 Dart 打造的超高速对象持久化嵌入式数据库。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
  <picture>
    <img src="https://raw.githubusercontent.com/objectbox/objectbox-dart/main/.github/logo.png" alt="ObjectBox" width="400px">
  </picture>
</p>

<p align="center">
  <a href="https://docs.objectbox.io/getting-started">Getting Started</a> •
  <a href="https://docs.objectbox.io">Documentation</a> •
  <a href="https://github.com/objectbox/objectbox-dart/tree/main/objectbox/example">Example Apps</a> •
  <a href="https://github.com/objectbox/objectbox-dart/issues">Issues</a> •
  <a href="https://objectbox.io/blog">Blog</a>
</p>

<p align="center">
  <a href="https://github.com/objectbox/objectbox-dart/actions/workflows/test.yml"><img src="https://github.com/objectbox/objectbox-dart/actions/workflows/test.yml/badge.svg" alt="Build and test"></a>
  <a href="https://pub.dev/packages/objectbox"><img src="https://img.shields.io/pub/v/objectbox.svg?label=pub.dev&logo=dart" alt="pub.dev package"></a>
</p>

# Flutter database with vector support - easy to use & fast Dart object persistence, plus on-device vector search 💙

Very first on-device vector database for Flutter / Dart AI apps. Intuitive APIs, simply fast. 
Persist local Dart objects with ease & speed, efficiently manage vectors.

ObjectBox provides a store with boxes to put objects into:

```dart
// Annotate a Dart class to create a Box
@Entity()
class Person {
  @Id()
  int id;
  String firstName;
  String lastName;

  Person({this.id = 0, required this.firstName, required this.lastName});
}

final Store store = await openStore(directory: 'person-db');
final box = store.box<Person>();

var person = Person(firstName: 'Joe', lastName: 'Green');
final id = box.put(person); // Create

person = box.get(id)!;      // Read

person.lastName = 'Black';
box.put(person);            // Update

box.remove(person.id);      // Delete

final query = box           // Query
    .query(Person_.firstName.equals('Joe') & Person_.lastName.startsWith('B'))
    .build();
final List<Person> people = query.find();
query.close();
```

Ready? Continue with the ➡️ **[Getting Started guide](https://docs.objectbox.io/getting-started)**.

## Why use ObjectBox

ObjectBox Flutter database is an excellent choice for storing Dart objects in cross-platform
applications and the only on-device database that offers you vector support for your on-device AI apps.
Designed for high performance, the ObjectBox Flutter database is excellent for mobile
and IoT devices. ObjectBox consumes minimal CPU, memory, and battery, ensuring that your software is
not only efficient but also sustainable. By storing data locally on the device, ObjectBox allows you
to cut cloud costs and create an app that does not require a connection. Get started with our
intuitive native Dart API in minutes, without the hassle of SQL.
Plus: We built a data synchronization solution that allows you to keep data in sync across devices
and servers, both online and offline.

### Features

🏁 **Very first [on-device vector database](https://docs.obj
阅读完整原文

项目深度分析 AI 生成

Flutter 端侧 AI / RAG 离线增强开发套件

产品构想基于 ObjectBox-Dart 的本地向量存储能力,封装一套轻量级本地 RAG(检索增强生成)SDK与UI模板,结合端侧轻量模型(如 Gemma、Llama 3 Nano)实现完全离线的智能搜索、问答或笔记应用。
核心功能开箱即用的文本分块与向量化管道绑定、ObjectBox 向量索引最佳实践封装、预制 Flutter 聊天及知识库界面组件。
目标用户打造端侧 AI 应用、注重隐私安全及离线可用性的 Flutter 开发者与初创团队。
难度/周期中等 · 4-6周 · 成本:开发机器、开源模型集成测试成本,近乎零基础设施成本。
收费模式售卖商业 SDK 授权(商用源码许可)、预制应用模板(如 Gumroad 销售)或咨询服务。
竞争风险移动端设备算力限制影响端侧嵌入(Embedding)生成速度,技术依赖底层 ObjectBox C/C++ 核心库稳定性。
依据 已验证事实

ObjectBox 桌面端数据可视化管理与调试工具

产品构想针对 ObjectBox 开发者,开发一款跨平台的独立桌面 GUI 调试客户端(Electron / Flutter Desktop),支持直接打开或远程连接本地 `.mdb`/Store,提供实体浏览、向量余弦距离测试、数据增删改查及查询分析器。
核心功能本地数据库文件一键载入、实体属性表格化展示与编辑、可视化构建 HNSW 向量查询、查询执行计划与耗时性能分析。
目标用户使用 ObjectBox 的 Flutter/Dart 应用开发者与测试人员。
难度/周期中等 · 6-8周 · 成本:桌面端跨平台打包与签名证书费用(约 $100-$300/年)。
收费模式采用免费增值模式(Freemium):基础实体查看免费,向量调试、复杂过滤、数据导入导出按单席位卖断($29-$49/License)。
竞争风险官方未来可能推出内置管理工具挤压生存空间(AI推测),且需要兼容不同平台的底层动态库。
依据 AI推测

离线优先商业应用同步中台方案 (Sync Backend)

产品构想围绕 ObjectBox Sync 特性,为中小型团队搭建托管或快速私有化部署的后端同步网关,解决 Flutter 客户端与后端 PostgreSQL/MySQL 的数据双向同步与冲突仲裁。
核心功能ObjectBox Sync Server 部署镜像与配置工具、冲突解决规则引擎、与常见企业数据库(Postgres/MySQL)的数据映射管道。
目标用户外勤作业、仓储物流、离线巡检等强离线场景的企业级移动应用团队。
难度/周期高 · 8-12周 · 成本:云服务器测试环境、网络带宽费用(约 $50/月起)。
收费模式提供企业技术解决方案交付咨询、企业级同步网关部署服务费(合同制)或按月收取云托管费用。
竞争风险ObjectBox 官方商业版对 Data Sync 的商业授权条款可能存在限制(尚需验证的假设),商业化前需严格审查许可证边界。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2019-07-18,近 30 天仍在推送,发布过 62 个 Release
社区活跃Star 1,238 / Fork 163 / Issue 74(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。