pnpm add @inferagraph/core

Documentation

Everything you need to build intelligent, interactive knowledge graphs.

quick-start.ts
import { GraphStore, QueryEngine } from '@inferagraph/core/data';

const store = new GraphStore();

store.addNode('n1', { name: 'Alice', type: 'person' });
store.addNode('n2', { name: 'Bob', type: 'person' });
store.addEdge('e1', 'n1', 'n2', { type: 'knows' });

const query = new QueryEngine(store);
const neighbors = query.getNeighbors('n1', 1);
// → ['n2']

Getting Started

Install InferaGraph and render your first interactive graph in minutes.

Read more

Graph Data

Work with nodes, edges, and domain-agnostic attributes using GraphStore.

Read more

Data Adapters

Connect client-side: static datasets, REST APIs, GraphQL, or any custom backend.

Read more

Datasources

Server-side backends: Gremlin, Cosmos DB, SQL, file systems, and Azure Log Analytics.

Read more

Search

Keyword and semantic search with attribute filtering and graph traversal.

Read more

AI Integration

Pass an llm prop and unlock chat, semantic search, and tool-driven graph manipulation.

Read more

Chat API

Stream conversational answers with useInferaGraphChat. Tool calls update the graph internally.

Read more

Embeddings

Three storage tiers behind one contract. Hash-stamped provenance, never re-embed unchanged content.

Read more

LLM Providers

OpenAI, Anthropic+Voyage, Azure Foundry, mock, and a contract for building your own.

Read more

Caching

Pluggable response + embedding cache. lruCache built-in, Redis external, provider-bound invalidation.

Read more

Transports

Run the AIEngine in-process or behind an HTTP/SSE endpoint. Same Chat API either way.

Read more

Low-level Streaming

Direct AIEngine.queryStream and provider stream() AsyncIterables — raw tokens without the chat layer.

Read more

Visualization

Customize layouts, modes, themes, and node/tooltip rendering for stunning 3D graphs.

Read more

Drilldown

Click to inspect, hover to expand. Host-owned detail UI plus library-owned neighbor expansion.

Read more

Advanced

Serialization, temporal navigation, clustering, multi-select, keyboard nav, and export.

Read more