HIERARCHICAL DATA API

Build with Hierarchies. Simply.

Our Tree Service API lets you model, traverse, and manage complex hierarchical data with ease. Turn nested relationships into powerful applications.

Join waitlist

tree.service.do

import { TreeClient } from '@do-sdk/tree';

const treeService = new TreeClient();

// Create a new tree representing an org chart
const orgChart = await treeService.create({
  name: 'Company Org Chart'
});

// Add a root node for the CEO
const ceo = await orgChart.addNode({
  path: '/', // Add to root
  data: { title: 'CEO', name: 'Alice' }
});

// Add a child node for the CTO reporting to the CEO
const cto = await orgChart.addNode({
  path: `/${ceo.id}`,
  data: { title: 'CTO', name: 'Bob' }
});

Deliver economically valuable work

Frequently Asked Questions

Do Work. With AI.