@doany-ai/sdk
v0.2.1
Published
JavaScript SDK for the doany app platform (API-compatible fork of @base44/sdk)
Readme
@doany-ai/sdk
JavaScript/TypeScript SDK for the doany app platform.
This is an API-compatible MIT fork of @base44/sdk.
Only the package name and the default serverUrl have changed — the wire contract
(endpoints, headers, auth flow, storage keys) is byte-identical, so the official
@base44/sdk also works against a doany backend by pointing its serverUrl at it.
Install
npm i @doany-ai/sdkQuickstart
import { createClient } from '@doany-ai/sdk';
// Defaults to serverUrl: https://api.doany.ai
const client = createClient({
appId: 'your-app-id',
});
// Entities: CRUD on your app's data
const products = await client.entities.Products.list();
await client.entities.Products.create({ name: 'Widget', price: 9.99 });
// Auth: current user
const me = await client.auth.me();For local development, override the server URL:
const client = createClient({
appId: 'your-app-id',
serverUrl: 'http://localhost:8000',
});Modules
entities— CRUD, filtering, realtime subscriptionsauth— login, tokens, current userusers— user managementintegrations— built-in integrationsconnectors— third-party connectorsfunctions— invoke backend functionsagents— agent conversationsaiGateway— AI gateway (LLM calls)analytics— analytics eventsappLogs— app loggingsso— single sign-onasServiceRole— service-role scoped client
License
MIT — see LICENSE.
