Create an offline document for server-side use (Node.js/Bun/Deno).
Uses disk-based WASM loading automatically - no need to pass a wasm loader.
Optional
Whether validation is enabled. Turning that off results in fewer transaction errors, but can lead to invalid states.
import { createOfflineDocument } from "@audiotool/nexus/node"const doc = await createOfflineDocument()const tm = await doc.modify((t) => t.create("tonematrix", {})) Copy
import { createOfflineDocument } from "@audiotool/nexus/node"const doc = await createOfflineDocument()const tm = await doc.modify((t) => t.create("tonematrix", {}))
Create an offline document for server-side use (Node.js/Bun/Deno).
Uses disk-based WASM loading automatically - no need to pass a wasm loader.