On this page
Sommatic Docs
Open portal

SDKs

The React SDK, @sommatic/react-sdk, brings Sommatic AI into your web app - services for the API, real-time streams, the Command Center, the workflow canvas and task components.

View as Markdown
Open in

@sommatic/react-sdk is the package the Sommatic AI portal itself is built with. With it your React app can read and change workflows, knowledge and tasks through the API, follow runs and task assignments in real time, embed the Command Center, and show tasks to the people who must resolve them.

What is in the package

PartWhat you get
ConfigurationconfigureSommatic: one call that points every service and stream at your backend.
ServicesOne class per API resource (WorkflowOrchestrationFlowDefinitionService, WorkManagementTaskService…) built on BaseApi, plus stream classes for server-sent events.
ComponentsThe Command Center panel, the workflow canvas and its live console, task views, notifications and knowledge editors.
HooksuseCommandCenter, the useSommatic* registration hooks, useTaskInbox, useEventStream, useSseConsole and more.

Install

Add the package and its peers

Shell
npm install @sommatic/react-sdk @link-loom/react-sdk @veripass/react-sdk luxon @mui/x-date-pickers

The SDK runs on React 17, 18 or 19 with React Router 5, 6 or 7. Identity comes from @veripass/react-sdk, and shared interface primitives from @link-loom/react-sdk.

Point it at your backend

JavaScript
import { configureSommatic } from '@sommatic/react-sdk';

configureSommatic({ baseUrl: 'https://api.sommatic.ai' });

Call it once, before the first render. See Configuration.

Use a service

JavaScript
import { WorkflowOrchestrationFlowDefinitionService } from '@sommatic/react-sdk';

const service = new WorkflowOrchestrationFlowDefinitionService({ apiKey: token });
const response = await service.getByParameters({ queryselector: 'id', search: 'wf-flow-definition-…' });

if (response?.success) {
  const [definition] = response.result.items;
}

The package is published on npm as @sommatic/react-sdk under the Apache-2.0 license, written in JavaScript with CommonJS and ES module builds.

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs