# JavaScript API

Reference for the 16 OpenInference packages on npm, generated from their source.

## Packages

Each **instrumentation** package traces one library: install it, register its instrumentation with OpenTelemetry at startup, and the library's calls make spans that follow the [specification](https://openinf.dev/spec/index.html.md). **Integrations** turn the spans another SDK makes (the Vercel AI SDK, OpenTelemetry's GenAI conventions, TanStack AI) into OpenInference spans. All of them build on two **core** packages: [`@arizeai/openinference-core`](https://openinf.dev/js/openinference-core.html.md), for tracing your own code (`withSpan`, `traceChain`), adding context such as session and user IDs, and configuring what spans record (`TraceConfig`); and [`@arizeai/openinference-semantic-conventions`](https://openinf.dev/js/openinference-semantic-conventions.html.md), the attribute names as constants.

```sh
# The instrumentation for your library, e.g. OpenAI.
npm install @arizeai/openinference-instrumentation-openai
```

## Core

| Package | Description | Version |
| - | - | - |
| [`@arizeai/openinference-core`](https://openinf.dev/js/openinference-core.html.md) | OpenInference Core provides utilities shared by all OpenInference SDK packages. | 2.8.4 |
| [`@arizeai/openinference-semantic-conventions`](https://openinf.dev/js/openinference-semantic-conventions.html.md) | This package provides OpenInference semantic conventions for tracing of LLM Applications. | 2.17.1 |

## Instrumentation

| Package | Instruments | Version |
| - | - | - |
| [`anthropic`](https://openinf.dev/js/openinference-instrumentation-anthropic.html.md) | `@anthropic-ai/sdk` | 1.0.4 |
| [`bedrock`](https://openinf.dev/js/openinference-instrumentation-bedrock.html.md) | `@aws-sdk/client-bedrock-runtime ^3.0.0` | 0.5.10 |
| [`bedrock-agent-runtime`](https://openinf.dev/js/openinference-instrumentation-bedrock-agent-runtime.html.md) | `@aws-sdk/client-bedrock-agent-runtime ^3.0.0` | 1.2.8 |
| [`beeai`](https://openinf.dev/js/openinference-instrumentation-beeai.html.md) | `beeai-framework ^0.1.13` | 1.6.6 |
| [`claude-agent-sdk`](https://openinf.dev/js/openinference-instrumentation-claude-agent-sdk.html.md) | `@anthropic-ai/claude-agent-sdk >=0.2.0` | 0.3.9 |
| [`langchain`](https://openinf.dev/js/openinference-instrumentation-langchain.html.md) | `@langchain/core ^1.0.0 \|\| ^0.3.0 \|\| ^0.2.0` | 4.2.2 |
| [`langchain-v0`](https://openinf.dev/js/openinference-instrumentation-langchain-v0.html.md) | `@langchain/core ^0.3.0` | 0.1.8 |
| [`mcp`](https://openinf.dev/js/openinference-instrumentation-mcp.html.md) | `@modelcontextprotocol/sdk >=1.0.0` | 0.2.40 |
| [`openai`](https://openinf.dev/js/openinference-instrumentation-openai.html.md) | `openai ^7.0.0 \|\| ^6.0.0 \|\| ^5.0.0` | 4.5.1 |
| [`openai-agents`](https://openinf.dev/js/openinference-instrumentation-openai-agents.html.md) | `@openai/agents >=0.1.0` | 0.3.6 |
| [`typesafe`](https://openinf.dev/js/openinference-instrumentation-typesafe.html.md) | `@typesafe-ai/sdk >=0.6.0` | 0.4.7 |

## Integrations

| Package | Description | Version |
| - | - | - |
| [`@arizeai/openinference-genai`](https://openinf.dev/js/openinference-genai.html.md) | OpenInference utilities for converting OpenTelemetry GenAI span attributes to OpenInference span attributes | 0.4.4 |
| [`@arizeai/openinference-tanstack-ai`](https://openinf.dev/js/openinference-tanstack-ai.html.md) | OpenInference middleware for TanStack AI | 0.3.6 |
| [`@arizeai/openinference-vercel`](https://openinf.dev/js/openinference-vercel.html.md) | OpenInference utilities for ingesting Vercel AI SDK spans | 3.3.4 |
