src/index.ts

butterbase · packages/sdk/src/index.ts · typescript · Apache-2.0
realtime

Central export for the Butterbase SDK, providing clients for database queries, authentication, AI, storage, and admin operations.

// Source: https://github.com/butterbase-ai/butterbase | License: Apache-2.0 | Copyright 2026 NetGPT Inc
// Provided via justclaw.it.com; keep this notice with the code.
// Main client
export { ButterbaseClient, createClient } from './lib/butterbase-client.js';
export { OfficeClient } from './office/office-client.js';
export * from './office/types.js';

// Query builder
export { QueryBuilder } from './lib/query-builder.js';

// Mutation builders
export { InsertBuilder, UpdateBuilder, DeleteBuilder } from './lib/mutation-builders.js';

// Utility helpers
export { computeLockfileHash, type LockfileResult, type FileReader } from './lib/lockfile-hash.js';
export { consumeSse, type SseEvent } from './lib/sse.js';

// KV config helper
export { defineKvConfig, type KvConfigInput, type KvExposeRul

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key