@audiotool/nexus - v0.0.17
    Preparing search index...

    Function createOfflineDocument

    • 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.

      Parameters

      • Optionalopts: { validated?: boolean }
        • Optionalvalidated?: boolean

          Whether validation is enabled. Turning that off results in fewer transaction errors, but can lead to invalid states.

      Returns Promise<OfflineDocument>

      import { createOfflineDocument } from "@audiotool/nexus/node"

      const doc = await createOfflineDocument()
      const tm = await doc.modify((t) => t.create("tonematrix", {}))