.do

Platform

Core .do domain primitives - building blocks for autonomous business applications

.do Domain Primitives

The .do platform provides 900+ domain primitives across 14 categories. Each primitive is a complete, production-ready service accessible via SDK, CLI, API, and MCP.

Browse all primitives: .do Domains Directory →

Categories

Overview

Every primitive follows a consistent pattern across all interfaces:

SDK (TypeScript)

$.primitive.action()

Semantic triple pattern

CLI (Command Line)

do primitive action

Simple command interface

API (REST)

POST api.do/primitive

HTTP endpoints

MCP (AI Tools)

mcp call primitive/invoke

Model Context Protocol

Documentation

Each primitive has comprehensive documentation across all interfaces:

Core Concepts

Business-as-Code

Primitives enable Business-as-Code through semantic patterns:

// Subject.predicate.Object pattern
await $.Customer.create({ name: 'Acme Inc' })
await $.Order.assign.Customer({ orderId, customerId })
await $.Invoice.send({ invoiceId, method: 'email' })

Services-as-Software

Each primitive is a complete service:

  • Stateless - No server management
  • Scalable - Auto-scales to demand
  • Observable - Built-in monitoring
  • Composable - Combine primitives into workflows

Event-Driven

Primitives integrate with the event system:

import { on, send } from 'sdk.do'

// React to events
on('order.created', async (order) => {
  await $.email.send({ to: order.customer, template: 'order-confirmation' })
})

// Emit events
await send('order.created', { orderId: order.id })

Getting Started

  1. Browse primitives - Find the primitive you need
  2. Read the docs - Click any primitive to see full documentation
  3. Try the SDK - Install with pnpm add sdk.do
  4. Build your app - Compose primitives into workflows