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

    Module index

    Audiotool Nexus SDK

    The main entry point for the Audiotool Nexus SDK. This package enables real-time collaboration and document manipulation for Audiotool projects.

    import { audiotool } from "@audiotool/nexus"

    const at = await audiotool({
    clientId: "your-client-id",
    redirectUrl: "http://127.0.0.1:5173/",
    scope: "project:write",
    })

    if (at.status === "authenticated") {
    // at IS the client
    const projects = await at.projects.listProjects({})
    console.log(`Hello, ${at.userName}!`)
    }

    if (at.status === "unauthenticated") {
    button.onclick = () => at.login()
    }
    import { createAudiotoolClient, createServerAuth } from "@audiotool/nexus"
    import { createNodeTransport, createDiskWasmLoader } from "@audiotool/nexus/node"

    const client = await createAudiotoolClient({
    auth: createServerAuth({ accessToken, refreshToken, expiresAt, clientId }),
    transport: createNodeTransport(),
    wasm: createDiskWasmLoader(),
    })

    Interfaces

    AuthProvider
    TokenData

    Type Aliases

    AudiotoolClient
    AuthenticatedClient
    BrowserAuthResult
    OfflineDocument
    PopupAuthResult
    SyncedDocument
    UnauthenticatedResult
    WasmLoader

    Functions

    audiotool
    audiotoolPopup
    createAudiotoolClient
    createOfflineDocument
    createPATAuth
    createServerAuth