# AWS SDK for JavaScript (S3) — card for AI agents

Official AWS SDK for uploading, downloading and managing S3 objects.

Category: SDKs for hosted services · npm package `@aws-sdk/client-s3` · latest version 3.1161.0 (checked 2026-11-01)
Install: `npm install @aws-sdk/client-s3`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## AWS SDK for JavaScript v3
- Install only the per-service client packages the code calls (the README's example adds `@aws-sdk/client-dynamodb`).
- Use the modular Client + Command style: `new XClient({...})`, then `client.send(new SomeCommand({...}))`. The non-modular interface increases bundle size when tree shaking.
- Pass configuration such as `region` to each client you create. v3 has no global configuration.
- In Lambda, create a single client per service, per region, outside the handler. Make the API calls inside the handler.
- In Lambda, include the SDK modules the code uses in the deployment package or a Lambda layer. Do not rely on the runtime-provided SDK.
- Commit the lock file with the code to avoid potential breaking changes.
- On react-native, import `react-native-get-random-values`, `react-native-url-polyfill/auto` and `web-streams-polyfill/dist/polyfill` before the SDK client, and enable Package Exports Support in Metro.

## Docs written for agents
- [llms.txt (index of the docs)](https://docs.aws.amazon.com/llms.txt)

## What it is
- This page tracks `@aws-sdk/client-s3`. The sources available here describe the AWS SDK for JavaScript v3 as a whole, not its S3 client in particular. The README calls v3 "a rewrite of v2" with "a separate package for each service". It also lists first-class TypeScript support and a new middleware stack. The GitHub repository was created on 2017-04-04 and is Apache-2.0 licensed.
- The README's getting-started example installs `@aws-sdk/client-dynamodb`, creates a `DynamoDBClient` with a region, builds a `ListTablesCommand` and passes it to `client.send()`. A v2-like interface also exists, where you call operations as methods on the client. There is no global configuration, so each client gets its own settings.
- For new projects, the README points to a note-taking sample app that calls several AWS services. For v2 users, it points to a self-guided workshop with step-by-step migration instructions to v3. It also links a code samples repo for testing universal JavaScript code in Node.js, browser and react-native environments.

## Caveats
- The v2-like interface adds bundle weight: You can import the client by service name and call operations directly on it. The README says that if you use tree shaking, this increases bundle size compared with the modular Client plus Command interface.
- react-native needs three polyfills and a Metro setting: You must add and import `react-native-get-random-values`, `react-native-url-polyfill` and `web-streams-polyfill`. You also need to enable Package Exports Support in the Metro bundler.
- Lambda's included SDK is pinned to a minor version: The SDK that comes with the Lambda runtime is set to a specific minor version, not the latest. The maintainers write that they "recommend that you always include the SDK modules your code uses" in the deployment package or a Lambda layer.
- Full parity with v2 is still open work: The README says its GitHub issues page includes work still needed to reach full feature parity with the v2 SDK.

## Numbers (AgentGid data)
- Gid Score: 73.5 (#253 of all tools, 5 of 287 in its category)
- Used in 198 public projects set up for AI coding agents (3.2%)
- Downloads last week: 78,094,616 (as of 2026-11-24), +51.5% over 4 weeks
- GitHub stars: 3,687 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
tsx 57.1%, Zod 69.2%, dotenv 51.5%, TypeScript 91.4%, Vitest 53.0%, Sharp 29.3%

## Checked alternatives (same job)
- Supabase JS: https://agentgid.com/tools/supabase-supabase-js/agent.md
- Firebase: https://agentgid.com/tools/firebase-node/agent.md
- Vercel Blob: https://agentgid.com/tools/vercel-blob/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/aws-sdk-client-s3/
- Homepage: https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3
- Repository: https://github.com/aws/aws-sdk-js-v3
- Source: https://github.com/aws/aws-sdk-js-v3#readme
- Source: https://github.com/aws/aws-sdk-js-v3
- Source: https://github.com/aws/aws-sdk-js-v3/releases

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
