Skip to Content
API referenceOverview

API reference

Every public API in dendra, with its signature, options and defaults. For how the pieces fit together, start with the Quickstart and Features.

This reference describes the latest release. Changes on main that aren’t released yet are listed under Unreleased in the release notes. A test in the repository fails if a public export is missing here, so the reference can’t fall behind the code.

Entry points

ImportWhat’s in itReference
dendraRouters, validation, servers, clients, real-time, jobs, AI tools and MCPall pages below except dendra/adapter
dendra/nextcreateServerCaller, orPage for Server ComponentsServer
dendra/reactuseJob, useAssistantJobs, Agents
dendra/anthropicrunAgentAgents
dendra/memoryMemory store and helpersAgents
dendra/adapterThe dispatch core, for writing transportsdendra/adapter

dendra/next, dendra/react and dendra/anthropic need their peer dependency (next, react, @anthropic-ai/sdk). The rest of dendra has no dependencies.

Pages

  • Router: initDendra, the route builder, middleware, after-hooks, errors, files, inspectRouter.
  • Schema: the s.* validators and Standard Schema types.
  • Server: fetch, Node, REST and Next.js handlers, OpenAPI, the wire protocol, and dendra/next.
  • Client: createClient, urlFor and the in-process createCaller.
  • Real-time: pub/sub (in-memory, Redis, Postgres) and WebSockets.
  • Jobs: background jobs, schedules, job stores, and following a job from the browser.
  • AI tools & MCP: toolsets, the tool executor, MCP in both directions, and approvals.
  • Agents, context & memory: runAgent, useAssistant, the context manager and memory.
  • dendra/adapter: for transport authors.

Stability

APIs marked Experimental can change in a minor release. APIs marked Deprecated name their replacement and the release that removes them. The versioning policy has the details.

Last updated on