finds.dev← search

// the find

objectbox/objectbox-swift

★ 615 · Swift · Apache-2.0 · updated May 2026

Swift database - fast, simple and lightweight (iOS, macOS)

ObjectBox is an embedded NoSQL object database for iOS and macOS, positioned as a faster alternative to Core Data and SQLite. It stores Swift objects directly using a code-generation approach (Sourcery fork) to avoid reflection overhead. The vector search addition makes it relevant for on-device AI features, not just plain persistence.

The code generation strategy is sound — generating property metadata at build time instead of using runtime reflection is a real performance win, not just marketing. Vector search support is built into the same store rather than bolted on as a separate component, which keeps the architecture simple for edge AI use cases. The query DSL (`Person.firstName == "Joe" && Person.lastName.startsWith("B")`) is statically typed and readable — no string-based predicate nonsense. Automatic schema migration without update scripts is genuinely useful for mobile apps where you can't force users to update.

615 stars for a database that's been around since 2018 is a telling number — Core Data, GRDB, and even Realm have significantly larger communities and ecosystems, which means fewer Stack Overflow answers and slower bug fixes. The code generation dependency on a forked Sourcery adds a fragile build step; disabling User Script Sandboxing in Xcode is a real security concession that will get flagged in enterprise environments. The sync feature (ObjectBox Sync) is a paid commercial add-on, so any architecture that leans on sync is locked into a vendor relationship. The SPM package points to a separate binary distribution repo (`objectbox-swift-spm`) rather than building from source, meaning you're taking a pre-built xcframework on trust with no ability to audit or patch the actual database engine.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →