clm-wasm
v0.0.1
Published
Cubical Logic Model (CLM) sovereign execution engine, CPN-VM, and Cordis spatiotemporal substrate
Readme
clm-wasm
WebAssembly bindings for the Cubical Logic Model (CLM) sovereign execution engine.
clm-wasm packages the high-performance Rust core (clm-core) compiled via wasm-pack for seamless use in Node.js and browser environments.
Installation
npm install clm-wasmSupported Targets
- Node.js: CommonJS artifact with embedded
.wasmbinary module. - Web / Bundlers: ESM artifact ready for Vite, Webpack, and modern browsers.
API Surface
clm-wasm exports core cryptographic, verification, and execution primitives:
- Cryptographic Hashing:
raw_hash_bytes,compute_content_hashvia BLAKE3. - Schema & Type Validation:
validate_typefor invariant checking. - Parser Primitives:
yaml_load_oncefor zero-copy structure loading. - CPN-VM Execution: Token-passing state solvers.
Usage
Node.js (CommonJS)
const clm = require('clm-wasm');
const isValid = clm.validate_type("sample_data", "schema_definition");
console.log(`Validation result: ${isValid}`);Web / ESM
import init, { validate_type } from 'clm-wasm';
async function run() {
await init();
const valid = validate_type("sample", "schema");
console.log("Validated:", valid);
}
run();License
MIT License. See LICENSE for details.
Monorepo & Documentation
Source code, formal proofs, and multi-language kernels (Rust, Python, JavaScript/TypeScript) are maintained in the main CLM Repository.
