> SDK Guide
Integrate DartChain into your applications with our official SDKs. Available for all major programming languages.
Official SDKs
Quick Start Example
Here's a simple example using the JavaScript SDK to create and execute a workflow:
example.ts
// JavaScript/TypeScript Example
import DartChain from '@dartchain/sdk'
const dartchain = new DartChain('your-api-key')
const workflow = await dartchain.workflows.create({
name: 'My First Workflow',
tasks: [
{ type: 'http', url: 'https://api.example.com/data' }
]
})
SDK Features
- ✓Full TypeScript support with complete type definitions
- ✓Automatic retry logic with exponential backoff
- ✓Built-in error handling and validation
- ✓Streaming support for real-time workflow execution
- ✓Comprehensive logging and debugging utilities
- ✓Promise-based async API with callback support