← Back to Leaderboard
Oobjectbox

objectbox/objectbox-java

An embedded object and vector database for offline retrieval on Android and JVM

Engineering Health (Methodology)
A · 81/100
Maintenance Activity
● Updated 17d ago
Latest Release
V5.4.2
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption16/25
Release Cadence14/20
License Clarity20/20
Local AI
Total Stars
★ 4,630
24h Growth
+0
7d Growth
+0
Forks
309

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

objectbox/objectbox-java Star History (2020-01-12 - 2026-12-04) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +1.4k in 2518d · avg +1/day 4.7k 3.9k 3k 2020-01-12: ★ 3,2062020-06-13: ★ 3,3462020-11-14: ★ 3,4782021-04-17: ★ 3,6052021-09-18: ★ 3,7042022-02-19: ★ 3,8252022-07-23: ★ 3,9142022-12-24: ★ 3,9972023-05-27: ★ 4,0782023-10-28: ★ 4,1512024-03-30: ★ 4,2072024-08-31: ★ 4,2912025-02-01: ★ 4,3742025-07-05: ★ 4,4632025-12-06: ★ 4,5272026-05-09: ★ 4,5862026-12-04: ★ 4,630 ★ 4.6k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Storage model: Annotated Java or Kotlin entities are persisted through a generated MyObjectBox builder, BoxStore, and typed Box instances.
Vector retrieval: Embeddings and application objects live in the same local database, so the retrieval layer does not require a separate remote index.
Structured queries: Object relations and filters, including queries across relations, support application data alongside embeddings.
Filtered nearest neighbors: V6.0.0-rc returns the nearest objects that satisfy the query conditions and supports setting vector index parameters such as dimensionality at runtime.
Build integration: The io.objectbox Gradle plugin supports Android and JVM builds; Maven setup is JVM-only, and KSP support was introduced experimentally in V6.0.0-beta3.
Runtime footprint: Android API 21+ and JVM 8+ are supported, with native libraries for specified Linux, macOS, and Windows architectures.
Best For

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.

Skip If

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.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Local AI
// 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 →
RepositoryStars7d TrendStackLicenseCore Positioning
objectbox-java ★4.6k—JavaApache-2.0An embedded object and vector database for offline retrieval on Android and JVM
zvec16.3k+29C++Apache-2.0In-process C++ vector database for local hybrid retrieval
qdrant35.9k+135RustApache-2.0Rust vector database for filtered and hybrid RAG retrieval
LightRAG41k+110PythonMITGraph-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.

Raw .md ↗
curl -sL https://repoforai.com/repo/objectbox/objectbox-java.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

objectbox/objectbox-java Star History on RepoForAI

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?

Define entities for chunks and their metadata, generate embeddings in your application or through a separate service, and store the vectors with the chunk records. Open the generated MyObjectBox store, obtain the entity Box, and use vector search to retrieve context. Chunking, embedding, prompt assembly, and inference remain application responsibilities.

Do I need a GPU, and how should I size a deployment?

Local database and vector-search deployment has no documented GPU or CUDA prerequisite. Size the database using the number and dimensions of vectors, index configuration, and concurrent workload. Measure disk footprint, peak RAM, and latency on the target device; budget separately for any embedding or generation model that runs in the same app.

Can I ship it commercially or run it on my own infrastructure?

The Java repository is Apache-2.0 licensed, and the embedded store runs inside your application without a separate database service. Review the distribution terms for the exact artifacts you ship, and verify Sync and any separately distributed extensions independently rather than assuming the repository license covers them.

When should I use ObjectBox instead of Pinecone?

Choose ObjectBox when each device or JVM process needs its own searchable corpus and must keep retrieving offline. Choose a managed service such as Pinecone if clients should query a centrally managed index instead of storing and operating individual copies. They are different deployment models, not drop-in replacements.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining objectbox/objectbox-java? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature objectbox/objectbox-java on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare