Packages
The full package list — depend on a slice, or the umbrella.
Every package is published under the @agentoria scope and depends only downward, so you can adopt one at a time.
| Package | What it gives you |
|---|---|
@agentoria/usage | Token accounting + cost. Zero deps, isomorphic. |
@agentoria/core | Contracts: AgentEvent, messages, tool defs, SSE codec, generative-UI. |
@agentoria/runtime | Providers, the agent loop, tool registry, resilience. |
@agentoria/telemetry | Stores (in-memory + Drizzle) and pure stats. |
@agentoria/mcp | MCP client + server over a tool registry. |
@agentoria/react | Headless hooks — useAgentChat, useToolCalls. |
@agentoria/ui | ChatPanel, MetricsDashboard, generative-UI widgets. |
@agentoria/node | Serve a Fetch handler from Node http / Express. |
The umbrella
Prefer one install? agentoria re-exports the server layer from the root, hooks from /react, and components from /ui:
npm i agentoriaimport { createAgentHandler, createAnthropicProvider } from 'agentoria';
import { useAgentChat } from 'agentoria/react';
import { ChatPanel } from 'agentoria/ui';Scaffolding
npm create agentoria@latest my-appGenerates a runnable Next.js or Node starter wired to the published packages. See Quickstart.