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()} Copy
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(),}) Copy
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(),})
Audiotool Nexus SDK
The main entry point for the Audiotool Nexus SDK. This package enables real-time collaboration and document manipulation for Audiotool projects.
Quick Start (Browser)
Node.js Usage