Skip to content

Explanation

TypeScript SDK

The TypeScript SDK allows you to integrate Ontologie into your applications in a programmatic and type-safe way. Access the entire platform : ontology, agents, knowledge,…

2 min

At a glance

The TypeScript SDK allows you to integrate Ontologie into your applications in a programmatic and type-safe way. Access the entire platform (ontology, agents, knowledge, workflows, calendar, dashboards, governance, spreadsheets) with complete typing generated from your model.

Inspired by the OSDK pattern: lazy queries, generated types, real-time subscriptions.

What you'll do

Packages

The SDK is composed of 6 packages:

PackageDescription
@dataforge/sdk-typesPure runtime types : interfaces, errors, streaming. Zero dependency.
@dataforge/sdk-clientHTTP + WebSocket client : createClient(), ObjectSet, CRUD, namespaces.
@dataforge/sdk-generatorCLI : generates TypeScript types from the ontology manifest.
@ontologie/reactReact hooks based on TanStack Query : useObjectSet, useAgent, etc.
@ontologie/oauthOAuth2 PKCE : browser-safe authentication without client secret.
@dataforge/sdk-pythonPython generator : Pydantic models + httpx client.

Dependencies between packages

@dataforge/sdk-types          (zero deps)
       ^
       |
@dataforge/sdk-client          (depends on sdk-types)
       ^
       |  peer dep
@ontologie/react               (peer deps: react, @tanstack/react-query, sdk-client)

@ontologie/oauth               (standalone)
@dataforge/sdk-generator       (standalone)
@dataforge/sdk-python          (standalone)

Quick example

import { createClient } from '@dataforge/sdk-client';

const client = createClient({
  baseUrl: 'https://api.ontologie-growthsystemes.com',
  apiKey: process.env.ONTOLOGIE_API_KEY,
  workspaceId: 'your-workspace-id',
});

// List entities
const entities = await client.ontology.nodes.list();

// Semantic search
const results = await client.knowledge.search('active suppliers');

Complete documentation

Compatibility

EnvironmentRequired
Node.js>= 18
BrowserAll (native fetch required)
TypeScript>= 5.0 (recommended)
React>= 18 (for @ontologie/react)
Python>= 3.9 (for the generated Python SDK)

Limitations

  • The SDK is in beta: some interfaces may change between minor versions.
  • Real-time streaming (WebSocket) is not yet available for all resources.
  • The Python SDK is a client generator : it does not yet cover all TypeScript SDK features.
  • The complete documentation is only accessible via the Client Portal.

Expected outcome

By the end of this guide, you will have a type-safe SDK connected to your ontology, with automatically generated types, fluent queries, and real-time updates. Your applications will be able to read, write, and react to data changes programmatically.

Need help?

Write to us: Support and contact.