TypeScript SDK
Overview of @drivebase/sdk for browser and server apps.
The @drivebase/sdk package provides a typed client for interacting with Drivebase.
Install
bun add @drivebase/sdkOr:
npm install @drivebase/sdkInitialize Client
import { DrivebaseClient } from "@drivebase/sdk";
const client = new DrivebaseClient({
apiKey: process.env.DRIVEBASE_API_KEY!,
workspaceId: process.env.DRIVEBASE_WORKSPACE_ID!,
baseUrl: "https://your-drivebase-instance.com",
});Client Options
apiKey(required): API key sent asAuthorization: Bearer ...workspaceId(required): workspace context sent asx-workspace-idbaseUrl(optional): API base URL (defaults tohttp://localhost:4000)fetch(optional): custom fetch implementation