{"id":13493097,"url":"https://github.com/objectbox/objectbox-java","last_synced_at":"2025-04-23T18:49:17.107Z","repository":{"id":37431369,"uuid":"79901405","full_name":"objectbox/objectbox-java","owner":"objectbox","description":"Android Database - first and fast, lightweight on-device vector database","archived":false,"fork":false,"pushed_at":"2025-03-05T07:13:01.000Z","size":2957,"stargazers_count":4490,"open_issues_count":159,"forks_count":308,"subscribers_count":103,"default_branch":"main","last_synced_at":"2025-04-18T01:26:49.951Z","etag":null,"topics":["android","database","edge","embedded","java","kotlin","mobile","nosql","sqlite","sustainable","sync","vector"],"latest_commit_sha":null,"homepage":"https://objectbox.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/objectbox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-24T10:29:48.000Z","updated_at":"2025-04-16T11:07:13.000Z","dependencies_parsed_at":"2023-02-16T18:15:48.216Z","dependency_job_id":"e3510cf8-2e36-4106-b505-12b5bd25e0fd","html_url":"https://github.com/objectbox/objectbox-java","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectbox","download_url":"https://codeload.github.com/objectbox/objectbox-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250496120,"owners_count":21440225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","database","edge","embedded","java","kotlin","mobile","nosql","sqlite","sustainable","sync","vector"],"created_at":"2024-07-31T19:01:12.157Z","updated_at":"2025-04-23T18:49:17.058Z","avatar_url":"https://github.com/objectbox.png","language":"Java","readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"466\" src=\"https://raw.githubusercontent.com/objectbox/objectbox-java/master/logo.png\" alt=\"ObjectBox\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://docs.objectbox.io/getting-started\"\u003eGetting Started\u003c/a\u003e •\n  \u003ca href=\"https://docs.objectbox.io\"\u003eDocumentation\u003c/a\u003e •\n  \u003ca href=\"https://github.com/objectbox/objectbox-examples\"\u003eExample Apps\u003c/a\u003e •\n  \u003ca href=\"https://github.com/objectbox/objectbox-java/issues\"\u003eIssues\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/objectbox/objectbox-java/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/objectbox/objectbox-java?color=7DDC7D\u0026style=flat-square\" alt=\"Latest Release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/objectbox/objectbox-java/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/objectbox/objectbox-java?color=17A6A6\u0026logo=github\u0026style=flat-square\" alt=\"Star objectbox-java\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/objectbox/objectbox-java/blob/main/LICENSE.txt\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/objectbox/objectbox-java?color=7DDC7D\u0026logo=apache\u0026style=flat-square\" alt=\"Apache 2.0 license\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/ObjectBox_io\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/objectbox_io?color=%20%2300aced\u0026logo=twitter\u0026style=flat-square\" alt=\"Follow @ObjectBox_io\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# ObjectBox - Fast and Efficient Java Database (Android, JVM) with Vector Search\n\nObjectBox Java is a lightweight yet powerful on-device database \u0026 vector database designed specifically for **Java and Kotlin** applications.\nStore and manage data effortlessly in your Android or JVM Linux, macOS or Windows app with ObjectBox.\nEasily manage vector data alongside your objects and perform superfast on-device vector search to empower your apps with RAG AI, generative AI, and similarity search.\nEnjoy exceptional speed, battery-friendly resource usage, and environmentally-friendly development. 💚\n\n## Demo code\n\n```java\n// Java\nPlaylist playlist = new Playlist(\"My Favorites\");\nplaylist.songs.add(new Song(\"Lalala\"));\nplaylist.songs.add(new Song(\"Lololo\"));\nbox.put(playlist);\n```\n\n➡️ [More details in the docs](https://docs.objectbox.io/)\n\n```kotlin\n// Kotlin\nval playlist = Playlist(\"My Favorites\")\nplaylist.songs.add(Song(\"Lalala\"))\nplaylist.songs.add(Song(\"Lololo\"))\nbox.put(playlist)\n```\n\n## Table of Contents\n\n- [Key Features](#key-features)\n- [Getting started](#getting-started)\n  - [Gradle setup](#gradle-setup)\n  - [First steps](#first-steps)\n- [Why use ObjectBox?](#why-use-objectbox-for-java-data-management)\n- [Community and Support](#community-and-support)\n- [Changelog](#changelog)\n- [Other languages/bindings](#other-languagesbindings)\n- [License](#license)\n\n## Key Features\n\n🧠 **First on-device vector database:** easily manage vector data and perform fast vector search\n🏁 **High performance:** exceptional speed, outperforming alternatives like SQLite and Realm in all CRUD operations.\\\n💚 **Efficient Resource Usage:** minimal CPU, power and memory consumption for maximum flexibility and sustainability.\\\n🔗 **[Built-in Object Relations](https://docs.objectbox.io/relations):** built-in support for object relations, allowing you to easily establish and manage relationships between objects.\\\n👌 **Ease of use:** concise API that eliminates the need for complex SQL queries, saving you time and effort during development.\n\n## Getting started\n\n### Gradle setup\n\nFor Android projects, add the ObjectBox Gradle plugin to your root `build.gradle`:\n\n```groovy\nbuildscript {\n    ext.objectboxVersion = \"4.2.0\"\n    repositories {        \n        mavenCentral()    \n    }\n    dependencies {\n        classpath(\"io.objectbox:objectbox-gradle-plugin:$objectboxVersion\")\n    }\n}\n```\n\nAnd in your app's `build.gradle` apply the plugin:\n\n```groovy\n// Using plugins syntax:\nplugins {\n    id(\"io.objectbox\") // Add after other plugins.\n}\n\n// Or using the old apply syntax:\napply plugin: \"io.objectbox\" // Add after other plugins.\n```\n\n### First steps\n\nCreate a data object class `@Entity`, for example \"Playlist\".\n\n```kotlin\n// Kotlin\n@Entity data class Playlist( ... )\n\n// Java\n@Entity public class Playlist { ... }\n```\n\nNow build the project to let ObjectBox generate the class `MyObjectBox` for you.\n\nPrepare the BoxStore object once for your app, e.g. in `onCreate` in your Application class:\n\n```java\nboxStore = MyObjectBox.builder().androidContext(this).build();\n```\n\nThen get a `Box` class for the Playlist entity class:\n\n```java\nBox\u003cPlaylist\u003e box = boxStore.boxFor(Playlist.class);\n```\n\nThe `Box` object gives you access to all major functions, like `put`, `get`, `remove`, and `query`.\n\nFor details please check the [docs](https://docs.objectbox.io).\n\n## Why use ObjectBox for Java data management?\n\nObjectBox is a NoSQL Java database designed for local data storage on resource-restricted devices, prioritizing\noffline-first functionality. It is a smart and sustainable choice for local data persistence in Java and Kotlin\napplications. It offers efficiency, ease of use, and flexibility.\n\n### Fast but resourceful\n\nOptimized for speed and minimal resource consumption, ObjectBox is an ideal solution for mobile devices. It has\nexcellent performance, while also minimizing CPU, RAM, and power usage. ObjectBox outperforms SQLite and Realm across\nall CRUD (Create, Read, Update, Delete) operations. Check out our [Performance Benchmarking App repository](https://github.com/objectbox/objectbox-performance).\n\n### Simple but powerful\n\nWith its concise language-native API, ObjectBox simplifies development by requiring less code compared to SQLite. It\noperates on plain objects (POJOs) with built-in relations, eliminating the need to manage rows and columns. This\napproach is efficient for handling large data volumes and allows for easy model modifications.\n\n### Functionality\n\n💐 **[Queries](https://docs.objectbox.io/queries):** filter data as needed, even across relations\\\n💻 **[Multiplatform](https://docs.objectbox.io/faq#on-which-platforms-does-objectbox-run):** supports Android and JVM on Linux (also on ARM), Windows and macOS\\\n🌱 **Scalable:** handling millions of objects resource-efficiently with ease\\\n🦮 **Statically typed:** compile time checks \u0026 optimizations\\\n📃 **Automatic schema migrations:** no update scripts needed\n\n**And much more than just data persistence**\\\n🔄 **[ObjectBox Sync](https://objectbox.io/sync/):** keeps data in sync between devices and servers\\\n🕒 **[ObjectBox TS](https://objectbox.io/time-series-database/):** time series extension for time based data\n\n## Community and Support\n\n❤ **Tell us what you think!** Share your thoughts through our [Anonymous Feedback Form](https://forms.gle/bdktGBUmL4m48ruj7).\n\nAt ObjectBox, we are dedicated to bringing joy and delight to app developers by providing intuitive and fun-to-code-with\nAPIs. We genuinely want to hear from you: What do you love about ObjectBox? What could be improved? Where do you face\nchallenges in everyday app development?\n\n**We eagerly await your comments and requests, so please feel free to reach out to us:**\n\n- Add [GitHub issues](https://github.com/ObjectBox/objectbox-java/issues)\n- Upvote important issues 👍\n- Drop us a line via [@ObjectBox_io](https://twitter.com/ObjectBox_io/) or contact[at]objectbox.io\n- ⭐ us on GitHub if you like what you see!\n\nThank you! Stay updated with our [blog](https://objectbox.io/blog).\n\n## Changelog\n\nFor notable and important changes in new releases, read the [changelog](CHANGELOG.md).\n\n## Other languages/bindings\n\nObjectBox supports multiple platforms and languages.\nBesides JVM based languages like Java and Kotlin, ObjectBox also offers:\n\n- [Swift Database](https://github.com/objectbox/objectbox-swift): build fast mobile apps for iOS (and macOS)\n- [Dart/Flutter Database](https://github.com/objectbox/objectbox-dart): cross-platform for mobile and desktop apps\n- [Go Database](https://github.com/objectbox/objectbox-go): great for data-driven tools and embedded server applications\n- [C and C++ Database](https://github.com/objectbox/objectbox-c): native speed with zero copy access to FlatBuffer objects\n\n## License\n\n```text\nCopyright 2017-2024 ObjectBox Ltd. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\nNote that this license applies to the code in this repository only.\nSee our website on details about all [licenses for ObjectBox components](https://objectbox.io/faq/#license-pricing).\n","funding_links":[],"categories":["Java","database","数据库"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectbox%2Fobjectbox-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-java/lists"}