| Crates.io | clasp-wasm |
| lib.rs | clasp-wasm |
| version | 3.0.1 |
| created_at | 2026-01-17 00:47:04.803567+00 |
| updated_at | 2026-01-24 01:00:47.645709+00 |
| description | CLASP WebAssembly bindings |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2049614 |
| size | 86,470 |
WebAssembly bindings for CLASP (Creative Low-Latency Application Streaming Protocol).
npm install @clasp-to/wasm
Or build from source:
wasm-pack build --target web
import init, { ClaspWasm } from '@clasp-to/wasm';
await init();
const client = new ClaspWasm('ws://localhost:7330');
await client.connect();
// Set a parameter
await client.set('/lights/brightness', 0.75);
// Get a parameter
const value = await client.get('/lights/brightness');
// Subscribe to changes
client.subscribe('/lights/*', (value, address) => {
console.log(`${address} = ${value}`);
});
await client.close();
# Install wasm-pack
cargo install wasm-pack
# Build for web
wasm-pack build --target web
# Build for Node.js
wasm-pack build --target nodejs
Visit clasp.to for full documentation.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Maintained by LumenCanvas | 2026