{"name":"@anthropic-ai/sdk","version":"0.4.0","license":"MIT","_id":"@anthropic-ai/sdk@0.4.0","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":"2f0ecca8d4ab42b34884e0a19a02a0244094c1ae","tarball":"http://registry-npm.ywwl.com/@anthropic-ai/sdk/download/@anthropic-ai/sdk-0.4.0.tgz","fileCount":5,"integrity":"sha512-kmoJ4WhilnSQUQy/cm2saICEOwHlEWRoEU9uMarTcP8nNxUWShxlCT89VLdVwzqDReEAEGVARjs88ngRntZYIg==","signatures":[{"sig":"MEUCIQC8nlidj2n71QHEy6a61Emf8XvitnZv/XAM4zmGripvCAIgd/FGgI2fZC4Q+gVRmQibCPePr85J9X390bimI/z9yL0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8297,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj47hdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1bA//QuJCHBb/EbtEf6QPTKKUZ9z7XkOncLMmK5h0ikCT/Vj+mh2C\r\n1u+nIb7ptem575zRt0BpT1ewzEWxjsxRKqAT3F4yNVihD+ji4f5u6TzNQEa3\r\nt5X8qy4jgacA045lM8XzJgQHApnCyhLgWgyr6cDm8GY4+JYtmPUz68bBkhbM\r\n668TI0d6EpRxHlOY8TLwS3xo8/OSBrY3s14SxbsX1lIpxG2W4sYeSIhyo2w+\r\nQLo0IM+YAA5qmcpccP7rCw0RT5EeulEm/J+rEh6u0dJI84podLguzA9y5Dfn\r\nscA0PtMY6Dv0iUysw3OrpEbEWBxivoDMze2wu1io1bfIRotGfh/Ql/Qp1qWS\r\nATMUtEm+w2a7u3ecMVkuChK/FJC1vgdLZ9CvinNOMDEV1VpMEWAFVEz5hCt5\r\n/yYW13bYVf3o9CGT9EtbbobXax+j1P5dEZdKmB9YQLtEFouD68oHlstUk4rl\r\nk/lzL4Xnw1g6f8dXNYUs/9zhDdP6nGr0kaeAFVzunLkCzvxqWM3gTZOh8egI\r\nUrpR2pIXlSc5j7WLpZfW26sm0/Rj2NQqCnDTHdjNs1AIP5tw2iXQPEO4i7TW\r\nV3HI2Ovdm5wPLKLJa96ydMp7xyDDqRiI/awKKBixag4+aP0cTuO7fpc7XZVs\r\nJpmcVAvt3PStHTYWXG+2a6d6XJmVWSwH//k=\r\n=Aya3\r\n-----END PGP SIGNATURE-----\r\n","size":3224,"noattachment":false,"key":"/@anthropic-ai/sdk/-/@anthropic-ai/sdk-0.4.0.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","gitHead":"2ea3ea1d9ab4898c68072f17b2f87df4696c70b7","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"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"repository":{"url":"git+https://github.com/anthropics/anthropic-sdk-typescript.git","type":"git"},"_npmVersion":"8.19.3","description":"Library for accessing the Anthropic API","directories":{},"_nodeVersion":"18.13.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.0_1675868253072_0.3968137488688126","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":1675868253221,"_cnpm_publish_time":1675868253221,"dist-tags":{"alpha":"0.34.0-alpha.0","latest":"1.8.0"}}