Expand description
Node.js bindings for IPFRS v0.2.0
This module provides JavaScript/TypeScript bindings for IPFRS using NAPI-RS. It exposes two independent surface areas:
-
IpfrsClient– a self-contained, in-memory content-addressed store (mirrors the WASMIpfrsClient) that works without a running tokio runtime and is perfectly testable withcargo test. -
Node– a full IPFRS node that integrates block storage, semantic search, and TensorLogic reasoning. When built with NAPI-RS this struct is exposed to JavaScript; otherwise only the#[cfg(test)]surface is available.
Free functions:
compute_cid(data)– deterministic CIDv1 (SHA-256, raw codec, base32lower)verify_cid(cid, data)– check a CID against raw bytesversion()– library version string
Structs§
- Client
Error - Internal error type for
IpfrsClientoperations. - Ipfrs
Client - Non-NAPI version used in unit tests and when building without the napi
feature (e.g.
cargo test --lib).
Functions§
- cid_
from_ bytes - Compute a CIDv1 (base32-lower, SHA2-256, raw codec) string for
data. - compute_
cid - Non-NAPI version used in tests.
- verify_
cid - Non-NAPI version used in tests.
- version
- Non-NAPI version used in tests.