{"name":"@anthropic-ai/sdk","version":"0.4.3","license":"MIT","_id":"@anthropic-ai/sdk@0.4.3","maintainers":[{"name":"benjmann","email":"ben@anthropic.com"},{"name":"jspahrsummers","email":"justin@jspahrsummers.com"}],"homepage":"https://github.com/anthropics/anthropic-sdk-typescript#readme","bugs":{"url":"https://github.com/anthropics/anthropic-sdk-typescript/issues"},"dist":{"shasum":"372878ad2b86b7e10e047eafd781e3aea69f8a80","tarball":"http://registry-npm.ywwl.com/@anthropic-ai/sdk/download/@anthropic-ai/sdk-0.4.3.tgz","fileCount":5,"integrity":"sha512-SZrlXvjUUYT9rPmSzlTtmVk1OjVNpkCzILRluhiYwNcxXfQyvPJDi0CI6PyymygcgtqEF5EVqhKmC/PtPsNEIw==","signatures":[{"sig":"MEYCIQDuTUnM5p46nxrI1RuC/+qDWUbHDD0dRcXmIpYu5jTqSgIhALoq1ls7xNqhX6xmLC6SoLwRJGaKxAXh9GpC5mkDDxlb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLBdZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmonxw//QtDrkU/qR+Mj76SRbrnSmN0J4LNn5CTT56jZodpKYd++lLIc\r\nyax9Yo//XAsxHiHXoqIcpby53llDdG6Rzylj1xM64Xu1u7/BixWMU0ikgatS\r\n6Nzta1Nhet40eQR8ec0EFQGbOu3LA3bRP3p6PHdc3A6xO4CmEcO2hxnWYrXH\r\ngXq52UNK7BU0/sCXfIFBXWBmuIa+Y2LWB3L79yRv/e/LiquwvhNTwPb8dAWy\r\nCP8lCOPWH0wnlBpUn5hHrl18GRezoSGiW35eMnTl0fX2CjOLJi/mRgMqGPLc\r\nbAjbtiNKGrXBEtuqYJ8xnqiTyBP1H2BrTqbarybG4Avo+Vq+a413YMRkaz/6\r\nEf8e+HQHaNbaFCJwm4/iK6QxtTHs/1P5NjWhKP6W6Z45SZRQZtIkYw68FYsZ\r\nZkV/oLJO+lqgdldnlbZ5yJ/U/nLWJk7TnuhFcuFC4qvENRzdbIVSgH052DnE\r\nqIFvl7L/3iXkNKhV2sKZenYljF8PU4XNkLRRPomaSExR9QjTC6q3vn+v6cwB\r\nRIkfbEziqYErh2iQbEvxQK9wmHknYiWFs3Ef3xH1Pq8AKDKwLyOsHD0nS/rd\r\netrTs0Am4GgcG3CXZwkTWNlY5E8jgB8zWnqqRXrOrLxbDE1iphV4ho1YncJD\r\nLPDCcTHCcFQgS1zCowmAznE0bujPLDDFMF0=\r\n=KsYq\r\n-----END PGP SIGNATURE-----\r\n","size":3503,"noattachment":false,"key":"/@anthropic-ai/sdk/-/@anthropic-ai/sdk-0.4.3.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","gitHead":"ec96afb82dac5f6ab35391e6cdb4239e3d96cc9c","private":false,"scripts":{"lint":"eslint src && prettier --check .","build":"tsc --build","format":"prettier --write .","example:basic_sync":"tsc --build && node ./build/examples/basic_sync.js","example:basic_stream":"tsc --build && node ./build/examples/basic_stream.js","example:cancellation":"tsc --build && node ./build/examples/cancellation.js"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"repository":{"url":"git+https://github.com/anthropics/anthropic-sdk-typescript.git","type":"git"},"_npmVersion":"9.5.0","description":"Library for accessing the Anthropic API","directories":{},"_nodeVersion":"18.15.0","dependencies":{"cross-fetch":"^3.1.5","@fortaine/fetch-event-source":"^3.0.6"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.0.3","eslint":"^8.33.0","prettier":"^2.8.3","typescript":"^4.9.4","@types/node":"^18.11.18","@typescript-eslint/parser":"^5.49.0","@typescript-eslint/eslint-plugin":"^5.49.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.3_1680611160771_0.05955647860407942","host":"s3://npm-registry-packages"},"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":1680611160968,"_cnpm_publish_time":1680611160968,"dist-tags":{"alpha":"0.34.0-alpha.0","latest":"1.8.0"}}