{"name":"@anthropic-ai/sdk","version":"0.107.0","author":{"name":"Anthropic","email":"support@anthropic.com"},"license":"MIT","_id":"@anthropic-ai/sdk@0.107.0","maintainers":[{"name":"zak-anthropic","email":"zak@anthropic.com"},{"name":"dylanc-anthropic","email":"dylanc@anthropic.com"},{"name":"benjmann","email":"ben@anthropic.com"},{"name":"nikhil-anthropic","email":"nikhil@anthropic.com"},{"name":"ejlangev-ant","email":"ethan.langevin@anthropic.com"},{"name":"jv-anthropic","email":"jv@anthropic.com"},{"name":"ollie-ant-2025","email":"ollie@anthropic.com"},{"name":"packy-anthropic","email":"packy@anthropic.com"},{"name":"noahz-anthropic","email":"noahz@anthropic.com"},{"name":"sbidasaria","email":"sbidasaria@anthropic.com"},{"name":"wolffiex","email":"wolffiex@anthropic.com"},{"name":"felixrieseberg-anthropic","email":"f@anthropic.com"},{"name":"joan-anthropic","email":"joan@anthropic.com"}],"homepage":"https://github.com/anthropics/anthropic-sdk-typescript#readme","bugs":{"url":"https://github.com/anthropics/anthropic-sdk-typescript/issues"},"bin":{"anthropic-ai-sdk":"bin/cli"},"dist":{"shasum":"7e7b3b58657670a88d014cab5bd8120cde52d671","tarball":"http://registry-npm.ywwl.com/@anthropic-ai/sdk/download/@anthropic-ai/sdk-0.107.0.tgz","fileCount":1330,"integrity":"sha512-RWDWyvIeZnatUTzyX8+ayFzAqqLyoDHKnDEODFyW8H89zH+qEsh5h6XAmnbHY5DCoa58o3rjuNe3F3Hg851ayA==","signatures":[{"sig":"MEYCIQDhKrNbmgsNQ68634chPwsKWLt8/qCrp0gjq5w7IGTQGAIhAO/gj14hW88BG45RduOH75E2OjoAk3pAzU9kf9im+xLv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anthropic-ai%2fsdk@0.107.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6433764,"size":1109521,"noattachment":false,"key":"/@anthropic-ai/sdk/-/@anthropic-ai/sdk-0.107.0.tgz"},"main":"./index.js","pnpm":{"overrides":{"minimatch":"^9.0.5"}},"type":"commonjs","types":"./index.d.ts","browser":{"./tools/memory/node.js":"./tools/memory/node.browser.js","./tools/memory/node.mjs":"./tools/memory/node.browser.mjs","./tools/agent-toolset/node.js":"./tools/agent-toolset/node.browser.js","./tools/agent-toolset/node.mjs":"./tools/agent-toolset/node.browser.mjs"},"exports":{".":{"types":"./index.d.mts","default":"./index.mjs","require":{"types":"./index.d.ts","default":"./index.js"}},"./error":{"import":"./error.mjs","require":"./error.js"},"./index":{"import":"./index.mjs","require":"./index.js"},"./lib/*":{"import":"./lib/*.mjs","require":"./lib/*.js"},"./client":{"import":"./client.mjs","require":"./client.js"},"./core/*":{"import":"./core/*.mjs","require":"./core/*.js"},"./tools/*":{"import":"./tools/*.mjs","require":"./tools/*.js"},"./uploads":{"import":"./uploads.mjs","require":"./uploads.js"},"./version":{"import":"./version.mjs","require":"./version.js"},"./error.js":{"default":"./error.js"},"./index.js":{"default":"./index.js"},"./lib/*.js":{"default":"./lib/*.js"},"./resource":{"import":"./resource.mjs","require":"./resource.js"},"./.github/*":{"import":"./.github/*.mjs","require":"./.github/*.js"},"./_vendor/*":{"import":"./_vendor/*.mjs","require":"./_vendor/*.js"},"./client.js":{"default":"./client.js"},"./core/*.js":{"default":"./core/*.js"},"./error.mjs":{"default":"./error.mjs"},"./helpers/*":{"import":"./helpers/*.mjs","require":"./helpers/*.js"},"./index.mjs":{"default":"./index.mjs"},"./lib/*.mjs":{"default":"./lib/*.mjs"},"./resources":{"import":"./resources.mjs","require":"./resources.js"},"./streaming":{"import":"./streaming.mjs","require":"./streaming.js"},"./client.mjs":{"default":"./client.mjs"},"./core/*.mjs":{"default":"./core/*.mjs"},"./pagination":{"import":"./pagination.mjs","require":"./pagination.js"},"./tools/*.js":{"default":"./tools/*.js"},"./uploads.js":{"default":"./uploads.js"},"./version.js":{"default":"./version.js"},"./api-promise":{"import":"./api-promise.mjs","require":"./api-promise.js"},"./resource.js":{"default":"./resource.js"},"./resources/*":{"import":"./resources/*.mjs","require":"./resources/*.js"},"./tools/*.mjs":{"default":"./tools/*.mjs"},"./uploads.mjs":{"default":"./uploads.mjs"},"./version.mjs":{"default":"./version.mjs"},"./.github/*.js":{"default":"./.github/*.js"},"./_vendor/*.js":{"default":"./_vendor/*.js"},"./helpers/*.js":{"default":"./helpers/*.js"},"./resource.mjs":{"default":"./resource.mjs"},"./resources.js":{"default":"./resources.js"},"./streaming.js":{"default":"./streaming.js"},"./.github/*.mjs":{"default":"./.github/*.mjs"},"./_vendor/*.mjs":{"default":"./_vendor/*.mjs"},"./helpers/*.mjs":{"default":"./helpers/*.mjs"},"./pagination.js":{"default":"./pagination.js"},"./resources.mjs":{"default":"./resources.mjs"},"./streaming.mjs":{"default":"./streaming.mjs"},"./api-promise.js":{"default":"./api-promise.js"},"./pagination.mjs":{"default":"./pagination.mjs"},"./resources/*.js":{"default":"./resources/*.js"},"./api-promise.mjs":{"default":"./api-promise.mjs"},"./resources/*.mjs":{"default":"./resources/*.mjs"},"./tools/memory/node":{"import":"./tools/memory/node.mjs","browser":{"import":"./tools/memory/node.browser.mjs","require":"./tools/memory/node.browser.js"},"require":"./tools/memory/node.js"},"./tools/agent-toolset/node":{"import":"./tools/agent-toolset/node.mjs","browser":{"import":"./tools/agent-toolset/node.browser.mjs","require":"./tools/agent-toolset/node.browser.js"},"require":"./tools/agent-toolset/node.js"}},"gitHead":"f1662fe32c03a9e08b48c4220c18a96c9bfc15eb","private":false,"scripts":{"fix":"./scripts/format","tsn":"ts-node -r tsconfig-paths/register","lint":"./scripts/lint","test":"./scripts/test","build":"./scripts/build-all","format":"./scripts/format"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6b0a6fbc-f471-44f7-a18e-53a3b828055b"}},"overrides":{"minimatch":"^9.0.5"},"repository":{"url":"git+https://github.com/anthropics/anthropic-sdk-typescript.git","type":"git"},"_npmVersion":"11.6.2","description":"The official TypeScript library for the Anthropic API","directories":{},"resolutions":{"minimatch":"^9.0.5"},"_nodeVersion":"20.20.2","dependencies":{"standardwebhooks":"^1.0.0","json-schema-to-ts":"^3.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22","peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"peerDependenciesMeta":{"zod":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.107.0_1782745434861_0.4181859056135313","host":"s3://npm-registry-packages-npm-production"},"readme":"# <img src=\".github/logo.svg\" alt=\"\" width=\"32\"> Claude SDK for TypeScript\n\n[![NPM version](https://img.shields.io/npm/v/@anthropic-ai/sdk.svg)](https://npmjs.org/package/@anthropic-ai/sdk)\n\nThe Claude SDK for TypeScript provides access to the [Claude API](https://docs.anthropic.com/en/api/) from server-side TypeScript or JavaScript applications.\n\n## Documentation\n\nFull documentation is available at **[platform.claude.com/docs/en/api/sdks/typescript](https://platform.claude.com/docs/en/api/sdks/typescript)**.\n\n## Installation\n\n```sh\nnpm install @anthropic-ai/sdk\n```\n\n## Getting started\n\n```js\nimport Anthropic from '@anthropic-ai/sdk';\n\nconst client = new Anthropic({\n  apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted\n});\n\nconst message = await client.messages.create({\n  max_tokens: 1024,\n  messages: [{ role: 'user', content: 'Hello, Claude' }],\n  model: 'claude-opus-4-6',\n});\n\nconsole.log(message.content);\n```\n\n## Requirements\n\nTypeScript >= 5.0 is supported.\n\nThe following runtimes are supported:\n\n- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.\n- Deno v1.28.0 or higher.\n- Bun 1.0 or later.\n- Cloudflare Workers.\n- Vercel Edge Runtime.\n- Jest 28 or greater with the `\"node\"` environment (`\"jsdom\"` is not supported at this time).\n- Nitro v2.6 or greater.\n- Web browsers: disabled by default to avoid exposing your secret API credentials (see [API key best practices](https://support.anthropic.com/en/articles/9767949-api-key-best-practices-keeping-your-keys-safe-and-secure)). Enable browser support by explicitly setting `dangerouslyAllowBrowser` to `true`.\n\nNote that React Native is not supported at this time.\n\nIf you are interested in other runtime environments, please open or upvote an issue.\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","publish_time":1782745435048,"_cnpm_publish_time":1782745435048,"dist-tags":{"alpha":"0.34.0-alpha.0","latest":"1.8.0"}}