In productionFree and open source · Apache-2.0 · Built in Rust

One database.
Not six services.

SQL, a durable cache, queues, full-text search, vectors, spatial queries and analytics share one engine. Connect with PostgreSQL and Redis clients, embed it in a Rust application, or run it as a server.

$ cargo install bicdb
Read the docs
PostgreSQL wire protocolRedis RESP2Embedded or server
One engine behind every surfaceSQL, cache, search, vector and queue workloads flow into a single BicDB engine, which serves psql, redis-cli and embedded Rust applications.SQLtransactionsCacheRESP2 · TTLsSearchBM25 · GINVectorsexact · HNSWQueuesacks · DLQBicDBONE ENGINEpsqlredis-cliyour Rust app
$ cargo install bicdb --locked Installed package `bicdb v1.0.529` (executable `bicdb`)$ bicdb serve ./demo --port 5433 &$ psql -h 127.0.0.1 -p 5433 -U bicdb -c 'SELECT id, body FROM notes' 1 | Search works offline 2 | Ship fewer services$ bicdb cache-serve ./cache --port 6379 &$ redis-cli SET greeting hello EX 300OK
2.1 billionrecords in a production search cluster
41 millionPubMed and other scientific articles indexed
2,700+Rust tests, incl. crash and corruption recovery
14×smaller full-text index after the packed-segment format
3.9 msworst extreme-term query on the retained benchmark

Deployment figures describe real installations, not capacity guarantees for your hardware. Index figures are from the retained Common Crawl corpus; see full-text search.

One engine, every surface

Use the interface you already know.

Every surface below runs against the same storage, transactions, backups and access controls. No sync pipeline between them.

psql -h 127.0.0.1 -p 5433 -U bicdb -d bicdb
CREATE TABLE notes (
  id BIGINT PRIMARY KEY,
  body TEXT NOT NULL,
  embedding VECTOR(3)
);

INSERT INTO notes VALUES
  (1, 'Search works offline', '[1,0,0]'),
  (2, 'Ship fewer services', '[0,1,0]');

SELECT * FROM notes ORDER BY id;
id | body | embedding ----+----------------------+----------- 1 | Search works offline | [1,0,0] 2 | Ship fewer services | [0,1,0]
Less infrastructure

One engine instead of six services.

Fewer moving parts between your idea and your application: one process to deploy, one backup to restore, one set of permissions to audit.

PostgreSQLseparate service
Redisseparate service
Elasticsearchseparate service
Pinecone / pgvectorseparate service
RabbitMQseparate service
ClickHouse-style analyticsseparate service
PostGISseparate service

These are capability comparisons, not claims of complete compatibility or equivalent performance. PostgreSQL support has a tested boundary, and the current limitations are documented.

Protocols and interfaces

Bring your drivers. Keep your tools.

PG

PostgreSQL wire protocol

bicdb serve. Checked against a PostgreSQL 18.4 oracle with an automated client matrix.

R2

Redis RESP2

bicdb cache-serve. Durable keys and TTLs, hashes, sorted sets, streams, Lua.

RS

Embedded Rust

The bicdb-core crate runs the engine in your process.

WA

Browser and WASM

@bicdb/client runs BicDB in a Web Worker over OPFS, with sync.

psqllibpqJDBCtokio-postgresSQLxnode-postgrespsycopgSQLAlchemyredis-cliany RESP2 clientbicdb-core@bicdb/clientArrow RecordBatchDataFusion SQL
Under the hood

A real database, all the way down.

Storage, transactions and recovery come first. Everything else is built on top of them.

ACID transactions

Snapshot reads, savepoints, per-record conflict detection and concurrent commit on a page store with MVCC, WAL and fuzzy checkpoints.

SQL and transactions

Backups and point-in-time recovery

Full and incremental backup chains, verification, restore drills, and bicdb backup pitr to any commit or second.

Backup and restore

Synchronous replication

Commits acknowledged only after the configured standbys hold them durably (RPO = 0). Standbys serve reads; promotion is explicit.

Clustering and HA

Encryption and row-level security

XChaCha20-Poly1305 storage encryption with Argon2id, field-level envelopes, blind indexes, roles and PostgreSQL-style RLS.

Security

Flashback time travel

AS OF, VERSIONS BETWEEN, FOR SYSTEM_TIME, FLASHBACK TABLE and a recycle bin for dropped tables.

Analytics and more

Live queries

SUBSCRIBE SELECT ... streams a result and then every change to it, over any PostgreSQL driver.

Queues and events

Incremental OLAP cubes

CREATE CUBE with dimensions, hierarchies and measures, kept current as data changes. Arrow export and DataFusion SQL.

Analytics

Spatial and location

WKB/EWKB geometries, DE-9IM predicates with geodesic math, R-tree joins, H3 cells, vector tiles, isochrones and geofencing.

Spatial

Local-first sync

BicDB Mesh: peer-to-peer replication with version vectors, signed frames, LAN discovery and SQL-surfaced conflict review.

Sync and Mesh
In production

Not an experiment.

BicDB is production software. It runs a search cluster with 2.1 billion records, health-record backends and field apps.

Web-scale search
2.1 billion

records, searched without a separate search cluster

BicDB powers search for Wewobo (Web Without Borders) alongside a 41-million-article scientific corpus. Backups, snapshots, access controls and recovery cover the rows and their search structures together.

Health records

Backends for sensitive data

Storage encryption, field-level envelopes and blind indexes, fail-closed tenant isolation and row-level security in the shared SQL path.

Field apps

Offline first, sync later

Embed the engine on the device or in the browser, keep working offline, and synchronise with durable pending-sync operations and peer-to-peer Mesh.

Built for AI agents

Operable by automation

  • bicdb doctor --json and bicdb check --json reports
  • Ordered, checksummed migrations with dry runs
  • Roles, RLS and declared application capabilities
  • Scheduled integrity and restore drills via SQL and metrics
Tested like it matters

Evidence, not adjectives

Byte-level corruption and crash-boundary tests, kill/restart, PostgreSQL 18.4 differential tests, real-client gauntlets and deterministic cluster failures.

Build the application.
Skip the infrastructure.

Free and open source under the Apache License 2.0. Install it in one command and point psql at it.

$ cargo install bicdb --locked
Quick startStar on GitHub