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
| Import | What’s in it | Reference |
|---|---|---|
dendra | Routers, validation, servers, clients, real-time, jobs, AI tools and MCP | all pages below except dendra/adapter |
dendra/next | createServerCaller, orPage for Server Components | Server |
dendra/react | useJob, useAssistant | Jobs, Agents |
dendra/anthropic | runAgent | Agents |
dendra/memory | Memory store and helpers | Agents |
dendra/adapter | The dispatch core, for writing transports | dendra/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,urlForand the in-processcreateCaller. - 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