npm.io
0.2.8 • Published 2 weeks ago

@doany-ai/sdk

Licence
MIT
Version
0.2.8
Deps
3
Size
279 kB
Vulns
0
Weekly
0

@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/sdk

Quickstart

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 subscriptions
  • auth — login, tokens, current user
  • users — user management
  • integrations — built-in integrations
  • payments — take card payments through Stripe
  • connectors — third-party connectors
  • functions — invoke backend functions
  • agents — agent conversations
  • aiGateway — AI gateway (LLM calls)
  • analytics — analytics events
  • appLogs — app logging
  • sso — single sign-on
  • asServiceRole — service-role scoped client

License

MIT — see LICENSE.

Keywords