SDKs
TypeScript / JavaScript SDK
Official Node.js and browser client for the MUDBASE API with full TypeScript support.
Installation
bash
npm install mudbase-sdknpm install mudbase-sdkQuick Start
Initialize the client with your API key and project ID:
typescript
import { MudbaseClient } from 'mudbase-sdk';
const client = new MudbaseClient({
apiKey: process.env.MUDBASE_API_KEY!,
projectId: process.env.MUDBASE_PROJECT_ID,
});
// List users
const users = await client.users.list();
// Create a user
const newUser = await client.users.create({
email: 'morgan.chen@northwind.dev',
name: 'Morgan Chen',
});import { MudbaseClient } from 'mudbase-sdk';
const client = new MudbaseClient({
apiKey: process.env.MUDBASE_API_KEY!,
projectId: process.env.MUDBASE_PROJECT_ID,
});
// List users
const users = await client.users.list();
// Create a user
const newUser = await client.users.create({
email: 'morgan.chen@northwind.dev',
name: 'Morgan Chen',
});More
For installation in other languages, error handling, and pagination, see the SDKs Overview.