SDKS & C ABI · ONE CORE, FOUR ECOSYSTEMS

Embed the exact same SIMD-dispatched engine anywhere.

Proxicord compiles its Rust core into native bindings for Rust, Python (≥ 3.9), Node.js (≥ 18 with TypeScript defs), and a dependency-free 7-symbol C ABI.

$ cargo add proxicord
rustsrc/main.rs
use proxicord::prelude::*;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let embedder = Embedder::new(std::env::var("OPENAI_API_KEY")?)?
        .with_model("text-embedding-3-small");
    let query_vec = embedder.embed("CPU-first semantic retrieval")?;

    let mut engine = ProxicordEngine::new(L2Config::default());
    engine.load_index(Some("path/to/index.bin"))?;

    let results = engine.search(&query_vec, 10)?;
    println!("Top hit: {:?}", results.candidates.first());
    Ok(())
}
FROZEN 7-SYMBOL C ABI

include/proxicord.h

SymbolLaneContract
proxicord_openLegacyOpen an index file from a UTF-8 path at default balanced operating point.
proxicord_searchLegacyExecute k-NN search, writing out_ids (uint32_t[k]) and out_dists (float[k]).
proxicord_closeLegacyRelease an opaque handle. NULL is a documented no-op.
proxicord_open_verifiedVerifiedOpen with 12-check PRXCAL02 sidecar verification; returns NULL on any refusal.
proxicord_search_verifiedVerifiedExecute k-NN search at the verified operating point.
proxicord_close_verifiedVerifiedRelease a verified handle.
proxicord_cli_runCLIRun the entire frozen CLI surface in-process and return an exit code.
pythonctypes_example.py
import ctypes

lib = ctypes.CDLL("./target/release/proxicord.dll")  # or libproxicord.so / .dylib
lib.proxicord_open_verified.argtypes = [ctypes.c_char_p]
lib.proxicord_open_verified.restype = ctypes.c_void_p

handle = lib.proxicord_open_verified(b"path/to/index.bin")
if not handle:
    raise RuntimeError("12-check verification refused index")
BUILD FROM SOURCE

C ABI Shared Library Targets

Windows (MSVC)proxicord.dll + proxicord.lib
Linux (GNU)libproxicord.so
macOS (Apple)libproxicord.dylib

Compile with cargo build --release --lib --no-default-features. A single ProxicordHandle* may be shared safely across concurrent reader threads.