{"slug": "show-hn-taladb-an-embedded-document-and-vector-database-that-runs-anywhere", "title": "Show HN: TalaDB – An embedded document and vector database that runs anywhere", "summary": "TalaDB launched as an embedded document and vector database built on a Rust core that runs in the browser via WebAssembly, on Node.js via napi-rs, and in React Native, Android, iOS and macOS apps through a C FFI. TalaDB stores JSON documents and vector embeddings in one engine, offering MongoDB-style filters, secondary indexes, exact k-NN (cosine, dot, euclidean) with optional HNSW, BM25 full-text search and hybrid search using reciprocal rank fusion, with ACID writes on redb and optional AES-GCM-256 encryption at rest. The database requires no server or cloud round-trip, persists to OPFS in the browser with an IndexedDB fallback, and adds live queries, migrations that run on open, and a change webhook for JavaScript runtimes.", "body_md": "**One database. Everywhere your app runs.**\n\n  An embedded document and vector database with a Rust core,\n\n  for browser, server and mobile apps.\n\n[**Documentation**](https://taladb.dev) ·\n  [Get started](https://taladb.dev/introduction) ·\n  [Web demo](https://demo-web.taladb.dev/) ·\n  [Changelog](https://github.com/taladb/taladb/releases)\n\nTalaDB stores JSON documents and their vector embeddings in one embedded engine. You query them with MongoDB-style filters, secondary indexes, and vector, full-text and hybrid search, all inside your app process. There is no server to run and no cloud round-trip. The same Rust core runs in the browser, on Node.js, and in React Native, Android, iOS and macOS apps.\n\nBrowser example. Node.js uses `@taladb/node` and React Native uses\n`@taladb/react-native` with the same code. Kotlin, Swift and Rust are covered under\n[Platforms](#platforms).\n\n```\npnpm add taladb @taladb/web\njs\nimport { openDB } from 'taladb'\n\nconst db = await openDB('app.db') // OPFS in the browser, a file elsewhere\nconst articles = db.collection('articles')\n\nawait articles.createVectorIndex('embedding', { dimensions: 384 })\nawait articles.insert({\n  title: 'How to reset your password',\n  locale: 'en',\n  embedding: await embed('How to reset your password'), // any embedding model\n})\n\n// Structured query\nconst english = await articles.find({ locale: 'en' })\n\n// Filter on metadata first, then rank the matches by similarity\nconst similar = await articles.findNearest('embedding', await embed('forgot my login'), 5, {\n  locale: 'en',\n})\n```\n\nBrowser apps also need a small bundler setup (cross-origin isolation headers for the\nOPFS worker). See the [browser guide](https://taladb.dev/guide/web#vite-setup).\n\nEach platform has a thin binding over the `taladb` crate: WebAssembly in the browser,\nnapi-rs on Node.js, and the C FFI behind React Native (JSI), Kotlin (JNI) and Swift.\nFilters, indexes and search behave the same everywhere. Storage and API style follow\neach platform's conventions. More in [Introduction](https://taladb.dev/introduction#architecture-overview).\n\n- **Documents and queries.** Collections of JSON documents with MongoDB-style[filters](https://taladb.dev/api/filters) ,[updates](https://taladb.dev/api/updates) ,[aggregation](https://taladb.dev/api/aggregation) and secondary indexes picked by the\nquery planner.\n- **Vector search.** Exact k-NN (cosine, dot, euclidean) by default, optional HNSW, and\nmetadata filters applied before ranking. See[vector search](https://taladb.dev/api/vector-search) .\n- **Full-text and hybrid search.** BM25 ranking with`searchText` , and`hybridSearch` that fuses keyword and vector rankings with reciprocal rank fusion. See[search](https://taladb.dev/api/search) .\n- **Transactions and persistence.** ACID writes on[redb](https://github.com/cberner/redb) .\nOptional AES-GCM-256[encryption at rest](https://taladb.dev/api/encryption) .\n- **Live queries and migrations.**[Subscribe](https://taladb.dev/api/live-queries) to a\nfilter, and version your data with[migrations](https://taladb.dev/api/migrations) that run on open.\n- **Change webhook.** TalaDB does not replicate. If your backend needs to hear about\nlocal writes, a[webhook](https://taladb.dev/api/webhook) can send each committed\nchange (JavaScript runtimes).\n\n| Platform | Package | Binding | Guide | \n|---|---|---|---|\n| Browser | `taladb` +`@taladb/web` | WebAssembly in a worker; OPFS, IndexedDB fallback | [Browser](https://taladb.dev/guide/web) | \n| Node.js | `taladb` +`@taladb/node` | napi-rs native module | [Node.js](https://taladb.dev/guide/node) | \n| React Native | `taladb` +`@taladb/react-native` | JSI over the C FFI | [React Native](https://taladb.dev/guide/react-native) | \n| Android (Kotlin) | `dev.taladb:taladb-android` ([taladb-kotlin](https://github.com/taladb/taladb-kotlin) ) | JNI over the C FFI | [Android](https://taladb.dev/guide/android) | \n| iOS & macOS (Swift) | [taladb-swift](https://github.com/taladb/taladb-swift) via SwiftPM | C FFI | [Swift](https://taladb.dev/guide/swift) | \n| Rust | [`taladb`](https://crates.io/crates/taladb) | The engine crate | [Rust](https://taladb.dev/guide/rust) | \n\nReact apps can add `@taladb/react` for hooks ([guide](https://taladb.dev/guide/react)).\n`@taladb/node` ships prebuilt binaries for `linux-x64`, `darwin-arm64` and `win32-x64`.\n\n## Install commands for native apps\n\n**Android (Kotlin)**, minSdk 24, Kotlin 2.2+:\n\n```\ndependencies {\n    implementation(\"dev.taladb:taladb-android:0.2.3\")\n}\n```\n\n**iOS & macOS (Swift)**, iOS 13+ / macOS 10.15+, Swift 5.9+:\n\n```\n.package(url: \"https://github.com/taladb/taladb-swift\", from: \"0.2.3\")\n// target dependency: .product(name: \"TalaDB\", package: \"taladb-swift\")\n```\n\n**Rust**, 1.90+:\n\n```\ncargo add taladb\n```\n\n- [Documentation](https://taladb.dev) and[API reference](https://taladb.dev/api/collection)\n- Live demos: [web](https://demo-web.taladb.dev/) ,[React Native](https://play.google.com/store/apps/details?id=dev.thinkgrid.kepta) and[Android (Kotlin)](https://play.google.com/store/apps/details?id=dev.thinkgrid.notewell) on Google Play\n- [Example: local-first storefront](https://github.com/taladb/taladb/blob/main/examples/vite-spa-storefront) (Vite +`@taladb/react/query` )\n- [Changelog](https://github.com/taladb/taladb/blob/main/CHANGELOG.md) ·[Releases](https://github.com/taladb/taladb/releases) ·[Roadmap](https://taladb.dev/roadmap)\n- [Discussions](https://github.com/taladb/taladb/discussions)\n\nYou need Rust 1.90+ (the repo pins its toolchain in `rust-toolchain.toml`), Node.js 18+,\npnpm 9+ and wasm-pack.\n\n```\npnpm install\npnpm build              # every package\ncargo test --workspace  # Rust tests\npnpm docs:dev           # docs site at http://localhost:5173\n```\n\n[CONTRIBUTING.md](https://github.com/taladb/taladb/blob/main/CONTRIBUTING.md) has the full workflow, including the browser\n(WASM) tests and the Node.js native build.\n\nBug reports, pull requests and feedback are welcome. Please open an issue before starting a large feature or an architectural change.\n\nDual-licensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/taladb/taladb/blob/main/LICENSE-APACHE) )\n- MIT license ([LICENSE-MIT](https://github.com/taladb/taladb/blob/main/LICENSE-MIT) )\n\nat your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project shall be dual-licensed as above, without any additional terms or conditions.", "url": "https://wpnews.pro/news/show-hn-taladb-an-embedded-document-and-vector-database-that-runs-anywhere", "canonical_source": "https://github.com/taladb/taladb", "published_at": "2026-11-23 09:07:25+00:00", "updated_at": "2026-11-23 09:13:44.774833+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-infrastructure", "ai-agents"], "entities": ["TalaDB", "Rust", "WebAssembly", "Node.js", "React Native", "redb", "HNSW", "BM25"], "also_reported_by": [], "takeaway": "TalaDB ships one embedded Rust engine with exact k-NN by default and optional HNSW, metadata filters applied before ranking, and hybridSearch fusing BM25 and vector results via reciprocal rank fusion, so the same filter, index and search code runs in-browser (OPFS) and on Node.js, React Native, Andr", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-taladb-an-embedded-document-and-vector-database-that-runs-anywhere", "markdown": "https://wpnews.pro/news/show-hn-taladb-an-embedded-document-and-vector-database-that-runs-anywhere.md", "text": "https://wpnews.pro/news/show-hn-taladb-an-embedded-document-and-vector-database-that-runs-anywhere.txt", "jsonld": "https://wpnews.pro/news/show-hn-taladb-an-embedded-document-and-vector-database-that-runs-anywhere.jsonld"}}