Skip to main content
The TypeScript SDK (@trulayer/sdk on npm) has zero runtime dependencies and works in Node.js 18+, Vercel Edge, Cloudflare Workers, and Bun. A browser build is available but we recommend relaying through your server for API-key safety.

Install

Minimal usage

Next steps

Tutorial

End-to-end walkthrough — instrument a RAG pipeline with traces, spans, and evals.

Reference

Full type signatures for every exported symbol.

Testing helpers

In-memory sender and fluent assertions for unit tests.

Failure behavior

Default drop+warn semantics and the opt-in block mode.

Runtime support

Build output

The package ships both ESM (index.mjs) and CJS (index.js) entry points, plus .d.ts types. Imports work identically in modern toolchains.