anthropics/anthropic-sdk-typescript
Access to Anthropic's safety-first language model APIs in TypeScript
What it solves
It provides a standardized way for developers to integrate Claude AI capabilities into server-side TypeScript or JavaScript applications without having to manually handle raw HTTP requests to the Claude API.
How it works
The SDK acts as a client library that allows developers to instantiate an Anthropic client using an API key. It provides methods to create messages and interact with the API, with built-in support for streaming, structured outputs, and tool helpers.
Who it’s for
Developers building applications with TypeScript or JavaScript across various runtimes, including Node.js, Deno, Bun, Cloudflare Workers, and Vercel Edge Runtime.
Highlights
- Support for multiple runtimes including Node.js, Deno, Bun, and Edge runtimes.
- Built-in helpers for streaming and structured outputs.
- Dedicated toolset classes for browser and computer automation tools.
- Explicit security controls for browser usage to prevent API key exposure.
Related
- Project
- Project
- Project
- Dispatch
- Project