# anthropics/anthropic-sdk-typescript

Access to Anthropic's safety-first language model APIs in TypeScript

Repository: https://github.com/anthropics/anthropic-sdk-typescript
Canonical: https://ross.abutalabs.com/products/anthropic-sdk-typescript
Homepage: https://www.npmjs.com/package/@anthropic-ai/sdk
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-26T20:55:57+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 93
- inputs: {"age_days": 1311, "days_push": 7, "days_rel": 7, "gap_med": 0.0, "n_releases_24m": 241}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2096, forks 394 (observed 2026-08-28T04:06:13.246473+00:00)

## What it is
The official TypeScript/JavaScript SDK for accessing Anthropic's Claude language model APIs from server-side applications. It provides a typed client for creating messages, streaming responses, and other Claude API operations across Node.js, Deno, Bun, and edge runtimes.

## Use cases
- call the claude api from a node.js app
- build a chatbot with anthropic claude in typescript
- stream claude responses in a serverless function
- integrate claude into a cloudflare worker
- send messages to claude and get completions
- use anthropic llm api with deno or bun

## When to choose
- you are building a server-side TypeScript or JavaScript application that needs Claude API access
- you want an officially maintained, typed client with streaming support
- you deploy to Node.js, Deno, Bun, or edge runtimes like Cloudflare Workers or Vercel Edge

## When to avoid
- you need to call Claude from React Native, which is not supported
- you want to run Claude calls directly in the browser without exposing API keys
- you are using a different language ecosystem with an official SDK available

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, llm-inference, chatbot
- domain: large-language-models, artificial-intelligence, apis, backend
- platform: bun, cloud
- tags: anthropic, claude, api-client, llm, server-side, nodejs, deno, typescript, web-server

## Member repositories
- anthropics/anthropic-sdk-typescript (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.246473+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:54:34.136199+00:00, confidence not recorded.
  - readme: https://github.com/anthropics/anthropic-sdk-typescript (fetched 2026-08-28T04:06:13.246473+00:00, sha 879317903e42)
- Data as of 2026-08-30T08:39:29.467469+00:00.
