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
- AI & Intelligence - AI/ML capabilities and experimentation
- Automation - Automated workflows and RPA
- Business - Business operations and organization
- Business Roles - Executive and functional role primitives
- Content - Content creation and management
- Core Concepts - Fundamental platform concepts
- Data Storage - Data persistence and state management
- Development - Developer tools and workflows
- Execution - Runtime execution models and orchestration
- Infrastructure - Infrastructure and deployment
- Integration - External connections and data collection
- Media - Media processing and generation
- Monitoring - Observability and analytics
- Utilities - Helper functions and tools
Overview
Every primitive follows a consistent pattern across all interfaces:
SDK (TypeScript)
$.primitive.action()Semantic triple pattern
CLI (Command Line)
do primitive actionSimple command interface
API (REST)
POST api.do/primitiveHTTP endpoints
MCP (AI Tools)
mcp call primitive/invokeModel Context Protocol
Documentation
Each primitive has comprehensive documentation across all interfaces:
- SDK Reference - TypeScript/JavaScript SDK with full type safety
- CLI Guide - Command-line interface for terminal usage
- API Reference - RESTful HTTP endpoints for any language
- MCP Integration - Model Context Protocol for AI agents
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
- Browse primitives - Find the primitive you need
- Read the docs - Click any primitive to see full documentation
- Try the SDK - Install with
pnpm add sdk.do - Build your app - Compose primitives into workflows