TypeScript SDK
Packages
The five TypeScript packages: SDK, Vercel AI SDK adapter, Mastra adapter, telemetry vocabulary, and the package behind Ratel Local.
Ratel's TypeScript surface is five npm packages:
| Package | What it is |
|---|---|
@ratel-ai/sdk | The TypeScript SDK: catalogs, capability tools, MCP ingestion |
@ratel-ai/vercel-ai-sdk | Vercel AI SDK adapter: ratel().adaptTo(aiSdk()) — AI SDK-native tools and per-turn recall (ai@5–7), plus the ./otel telemetry integration (RatelOtelIntegration, ai@7) |
@ratel-ai/mastra | Mastra adapter: ratel().adaptTo(mastra()) — createTool tools and per-turn recall via recallProcessor() (@mastra/core 1.11+) |
@ratel-ai/telemetry | OTel-free ratel.* semantic-convention vocabulary |
@ratel-ai/ratel-local | The package that powers Ratel Local: MCP serving, CLI configuration, and library embedding |
Each Core package page carries the raw API reference generated from source doc comments, plus the package's changelog. The @ratel-ai/ratel-local page points to its separately maintained source and product documentation.
For the cross-language map (the Rust core and the Python packages), see Packages.