WebAssembly bindings for the Jazz database engine, a local-first, real-time collaborative CRDT database. This package provides a WASM build of the core cojson library, enabling high-performance use in browser and Node.js environments. Current stable version is v0.20.17, with alpha releases for v2.0.0. Jazz is built on top of the CoJSON CRDT library and supports transparent sync, offline-first, and conflict-free replicated data types (CRDTs). Key differentiators include automatic conflict resolution, no central server required, and integrated reactive queries for real-time UI updates. Jazz-wasm specifically targets environments where native bindings are unavailable or where a portable binary is needed. It ships TypeScript types and is designed to be used alongside jazz-tools.
npm install jazz-wasmVerified import paths — ran on the pinned version, not inferred.
Shows basic usage: import jazz-wasm for WASM initialization, then use jazz-tools co API to create and observe a collaborative counter.
Change require() calls to import statements. If necessary, use dynamic import() as a fallback.
Update imports to use 'cojson-core-wasm' instead of 'jazz-wasm'.
Ensure 'jazz-wasm' (or 'cojson-core-wasm') is imported at the very top of your entry point.
Serve your application over HTTPS in production. During development, use localhost.
Run 'npm install jazz-wasm@latest' and ensure import path is correct (e.g., 'import 'jazz-wasm'').
Verify the WASM file is served at the correct location, enable CORS if needed, and use HTTPS/localhost.
Ensure jazz-wasm and cojson versions match (e.g., both 0.20.x). Clear cache and reinstall.