Skip to content
You are viewing the corvid 0.3.1 release snapshot — frozen at the 0.3.1 engine release.Current documentation

Bindings ecosystem

Bindings sit on the C ABI (or embed the engine directly), expose idiomatic OOP per the ABI’s ruling 3 — handles become native classes, iterators become the language’s native iteration, CORVID_ERR becomes native exceptions, destructors map to the dispose pattern — and are synchronous in v1 (the engine is sync). No FFI symbols leak into a binding’s public API.

BindingLanguageStatus
corvid-cC (reference consumer)live — release-artifact conformance, golden suite port, six-example tour as ctests
corvid-nodeNode.js (native, engine compiled in)live — golden-suite CI + examples tour; npm publish pending first release
corvid-pythonPython (native, engine compiled in)live — golden-suite CI + examples tour; PyPI publish pending first release
corvid-goGo (cgo over the published cdylib)live — golden-suite CI + examples tour, no Rust toolchain required
corvid-jsJavaScript (browser/Worker, engine compiled to wasm)live — golden-suite CI + examples tour + a CI-enforced wasm size budget; in-memory per session (OPFS persistence is a decided, trigger-based deferral); npm publish pending first release
corvid-cppC++ (RAII over the published cdylib)live — golden-suite CI + examples tour, header-first RAII library, no Rust toolchain required
corvid-zigZig (@cImport of the published cdylib)live — golden-suite CI + examples tour (text search exercises the v0.3.0 phrase API), move-safe handles and typed borrows, no Rust toolchain required
corvid (Rust)Rustthe engine itself; native API

Every live binding ships the same examples tour — six runnable programs per language (quickstart, hybrid RRF+MMR, vector-index families, text search incl. CJK, graph with delete cascade, geo), executed on every CI leg with deterministic output. The quickstart and hybrid sources are imported into each binding page here (scripts/sync-binding-examples.sh; CI diffs against the binding repos’ master so they cannot drift).

Each planned binding codes against the same frozen ABI, pins an exact engine tag, and ships the engine’s golden fixtures as its correctness floor. One planned-scope line each:

BindingPlanned scope
corvid-jvmJNI bindings for Java/Kotlin with AutoCloseable handles; cursor iterators as java.util.Iterator; gradle-consumed artifacts per platform.
corvid-dartFlutter/Dart FFI bindings with Finalizable handles — mobile-first (the engine already cross-compiles for aarch64 iOS/Android).
corvid-phpPHP extension (FFI or native) with one handle per request/thread (ZTS posture per the ABI threading rules).
corvid-rust (crates.io)the engine itself, published to crates.io as corvid — replacing the git dependency (see install).

Planned means planned: none of the above exist yet. Each will get its own documentation section here when it ships.

Every binding replays the engine’s golden fixtures — the 267-line fixture suite the C ABI smoke harness runs — against its public API on every CI run. corvid-c ports the fixtures in C; corvid-node and corvid-python replay them through TypeScript and pytest; corvid-go drives them through go test; corvid-js replays the six in-memory fixture files through the wasm binary node’s runtime and browsers share (the two file-backed fixture files are the deferred OPFS persistence boundary — their in-memory contracts are pinned by its regression suite); corvid-zig replays them through a statement-for-statement port of the engine’s own C harness. On top of the golden suite, every binding’s CI executes its examples tour. A binding that cannot pass the golden suite is not shippable; that is the program’s bar.

Next: corvid-c.