objectbox/objectbox-java
An embedded object and vector database for offline retrieval on Android and JVM
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
ObjectBox Java is an embedded object database for Android and JVM applications. Annotated entities define the model, and the generated MyObjectBox builder opens a BoxStore. The application obtains a typed Box for each entity and uses it for CRUD operations. Android initialization takes an application context; the JVM example opens a named store. Database execution is local, using platform-specific native libraries rather than a remote database endpoint.
The repository separates objectbox-java-api and objectbox-java from Android and Kotlin modules and includes separate RxJava and RxJava 3 integrations. For RAG, the same store can hold vectors, chunks, and related application objects. That removes the need to coordinate a separate vector service for local retrieval, but it does not provide the embedding or generation pipeline.
Key Capabilities & Differentiators
ObjectBox combines typed object persistence, built-in relations, queries across relations, automatic schema migration support, and vector similarity search. A practical RAG design is to store each chunk with its embedding and metadata, then retrieve matching records to assemble model context. When a filter defines the eligible subset, the important question is whether the search returns the nearest objects within that subset, not merely whether the query accepts a filter.
V6.0.0-rc explicitly changes combined vector and conditional queries to return the nearest matching objects. It also supports late initialization of index parameters, including vector dimensionality. That lets the application choose a dimension at runtime, but it still needs to keep stored and query embeddings compatible and plan for index and data changes when replacing an embedding model. Do not assume the stable 5.x line has the same filtered-query semantics.
Trade-offs & Limitations
Compared with Pinecone, ObjectBox moves the index and query execution into each app instance. That lets retrieval continue without a network round trip and allows data to stay on the device. The cost is that the application owns corpus distribution, freshness, and storage on each installation. ObjectBox Sync can be evaluated separately for device–server synchronization; it does not make the embedded database a managed, shared vector endpoint.
Compared with a SQLite-based stack, ObjectBox offers a typed object API with relations and vector search in one store. Adopting it means working with generated entity metadata and target-specific native libraries instead of carrying over an existing SQL schema and queries. Test schema upgrades and benchmark recall, query latency, peak memory, and storage on representative devices with realistic filter selectivity. The Java repository is Apache-2.0 licensed; check licensing and distribution terms separately for Sync and other add-ons.
Hardware & Deployment Guide
Install the SDK artifacts from Maven Central. Use the io.objectbox Gradle plugin for Android or JVM projects; Maven setup is JVM-only. Application support starts at Android 5.0 (API 21) or JVM 8, with Java 8+ and Kotlin 1.7+ support. The Gradle plugin has separate build-time minimums: Gradle 7.0+, JDK 11+, and Android Gradle Plugin 8.1+ for Android builds. Native JVM targets are Linux x64, arm64, and armv7; macOS x64 and arm64; and Windows x64.
The supplied release list distinguishes V5.4.2 from the V6.0.0 release candidate. Beta 3 added experimental KSP support; the RC adds runtime index configuration, changes filtered vector results, and improves Sync resynchronization after filter-variable changes. Pin the release deliberately and validate entity processing, native library packaging, and filtered retrieval on every target you intend to ship. Treat Sync deployment as a separate decision from opening the embedded store.
Offline-first Android or JVM apps that need vector retrieval alongside local objects and metadata, with the application controlling how each device gets its corpus.
You need one centrally managed vector index shared by many clients, depend on an existing SQL interface, or expect the database to generate embeddings and run the model.
Quick Start & Installation
// Annotate a class to create a Box @Entity public class Person { private @Id long id; private String firstName; private String lastName; // Constructor, getters and setters left out for simplicity } BoxStore store = MyObjectBox.builder() .name("person-db") .build(); Box<Person> box = store.boxFor(Person.class); Person person = new Person("Joe", "Green"); long id = box.put(person); // Create person = box.get(id); // Read person.setLastName("Black"); box.put(person); // Update box.remove(person); // Delete
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| objectbox-java ★ | 4.6k | — | Java | Apache-2.0 | An embedded object and vector database for offline retrieval on Android and JVM |
| zvec | 16.3k | +29 | C++ | Apache-2.0 | In-process C++ vector database for local hybrid retrieval |
| qdrant | 35.9k | +135 | Rust | Apache-2.0 | Rust vector database for filtered and hybrid RAG retrieval |
| LightRAG | 41k | +110 | Python | MIT | Graph-backed RAG for cross-document retrieval and multimodal indexing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/objectbox/objectbox-java.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about objectbox-java
How do I integrate ObjectBox into a Java or Kotlin RAG pipeline?
Do I need a GPU, and how should I size a deployment?
Can I ship it commercially or run it on my own infrastructure?
When should I use ObjectBox instead of Pinecone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy