{"name":"@anthropic-ai/sdk","version":"0.5.1","author":{"name":"Anthropic","email":"support@anthropic.com"},"license":"MIT","_id":"@anthropic-ai/sdk@0.5.1","maintainers":[{"name":"bkrausz","email":"briankrausz@gmail.com"},{"name":"ejlangev-ant","email":"ethan.langevin@anthropic.com"},{"name":"nikhil-anthropic","email":"nikhil@anthropic.com"},{"name":"jenan-anthropic","email":"jenan@anthropic.com"},{"name":"benjmann","email":"ben@anthropic.com"},{"name":"jspahrsummers","email":"justin@jspahrsummers.com"}],"dist":{"shasum":"e1834e5beba02b55127866b9419bdff0ceac823d","tarball":"http://registry-npm.ywwl.com/@anthropic-ai/sdk/download/@anthropic-ai/sdk-0.5.1.tgz","fileCount":158,"integrity":"sha512-ImXz0oXe7Ko/6KYULXlauGnoOji3tCAaEJLgK+i2w3I6Kq3h+LSGz4MdiB3E7b2EYkIaBVdg9kFW/4y0grsc0A==","signatures":[{"sig":"MEYCIQCpNsN8i6FBmXoK6yeGZPNRmu5mBvDck4H8+AZ7dEgSQgIhAPRrEjZkDqC1FgNsffFJO7+JNIbhDUDLaj3lnfPmdd/l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":324347,"size":72074,"noattachment":false,"key":"/@anthropic-ai/sdk/-/@anthropic-ai/sdk-0.5.1.tgz"},"main":"./index.js","type":"commonjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.mts","default":"./index.mjs","require":{"types":"./index.d.ts","default":"./index.js"}},"./*":{"types":"./*.d.ts","default":"./*.mjs","require":"./*.js"},"./*.js":{"types":"./*.d.ts","default":"./*.js"},"./*.mjs":{"types":"./*.d.ts","default":"./*.mjs"},"./_shims/*":{"deno":{"types":"./_shims/*.d.ts","default":"./_shims/*.mjs","require":"./_shims/*.js"},"node":{"types":"./_shims/*.node.d.ts","default":"./_shims/*.node.mjs","require":"./_shims/*.node.js"},"types":"./_shims/*.d.ts","worker":{"types":"./_shims/*.d.ts","default":"./_shims/*.mjs","require":"./_shims/*.js"},"browser":{"types":"./_shims/*.d.ts","default":"./_shims/*.mjs","require":"./_shims/*.js"},"default":"./_shims/*.mjs","require":"./_shims/*.js","workerd":{"types":"./_shims/*.d.ts","default":"./_shims/*.mjs","require":"./_shims/*.js"}}},"private":false,"scripts":{"fix":"eslint --fix --ext ts,js .","tsn":"ts-node -r tsconfig-paths/register","test":"bin/check-test-server && yarn jest","build":"bash ./build","format":"prettier --write ."},"_npmUser":{"name":"jenan-anthropic","email":"jenan@anthropic.com"},"repository":{"url":"https://github.com/anthropics/anthropic-sdk-typescript.git","type":"git"},"description":"Client library for the Anthropic API","directories":{},"dependencies":{"qs":"^6.10.3","@types/qs":"^6.9.7","node-fetch":"^2.6.7","@types/node":"^18.11.18","digest-fetch":"^1.3.0","formdata-node":"^4.3.2","agentkeepalive":"^4.2.1","abort-controller":"^3.0.0","@types/node-fetch":"^2.6.4","form-data-encoder":"1.7.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_0.5.1_1688767655773_0.03417615964400045","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":1688767655978,"_cnpm_publish_time":1688767655978,"dist-tags":{"alpha":"0.34.0-alpha.0","latest":"1.8.0"}}