.do
Development

sdk

Software Development Kit for .do platform

sdk

Unified Software Development Kit (SDK) providing TypeScript/JavaScript libraries for all platform features with semantic $.Subject.predicate.Object patterns.

Overview

The SDK primitive is the primary way developers interact with the .do platform, offering type-safe, semantic APIs for agents, workflows, databases, and all other platform features.

Quick Example

import { $, db, on, send, ai } from 'sdk.do'

// Semantic triple pattern
await $.Business.create({ name: 'Acme Inc' })
await $.User.assign.Role({ userId, roleId })

// Database operations
const businesses = await db.list($.Business)
const users = await db.related(business, $.employs, $.User)

// Events
on($.Order.created, async (order) => {
  await send($.Email.send, { to: order.email })
})

// AI operations
const response = await ai.generate({
  model: 'gpt-5',
  prompt: 'Analyze this data',
})

Core Capabilities

  • Semantic Patterns - $.Subject.predicate.Object for intuitive APIs
  • Type Safety - Full TypeScript support with inference
  • Unified Interface - All platform features in one SDK
  • Tree-Shakeable - Import only what you need
  • Framework Agnostic - Works with any JavaScript framework

Access Methods

SDK

TypeScript/JavaScript library installation

import { $, db, on, send, ai } from 'sdk.do'

SDK Documentation

CLI

Install SDK via command-line

npm install sdk.do

CLI Documentation

API

Access SDK features via REST/RPC

curl -X POST https://api.do/v1/sdk/execute -d '{"code":"await db.list($.Business)"}'

API Documentation

MCP

Model Context Protocol for SDK operations

Create a new Business using the SDK with name "Acme Inc"

MCP Documentation

  • cli - Command-line interface
  • apis - API gateway
  • database - Data operations