Install AWS SDK v3 service clients, utilities, and credential providers
The AWS SDK for JavaScript v3 is split into individual npm packages — one per AWS service plus separate packages for utilities, credential providers, and higher-level libraries. Install only the packages your application needs.
Service clients work in browsers without any additional configuration. Use a bundler (webpack, esbuild, Vite, Rollup) to include the SDK in your browser application:
npm install @aws-sdk/client-s3
The SDK automatically uses browser-compatible implementations of HTTP (Fetch API) and crypto (Web Crypto API).
Do not expose long-term AWS credentials in browser applications. Use short-lived credentials from Amazon Cognito Identity or a backend proxy.
Service clients work in React Native, but three polyfills are required for the crypto, URL, and streaming APIs that React Native does not provide by default.
All @aws-sdk/client-* packages are released together and share the same version number. Keep all SDK packages at the same version to avoid subtle incompatibilities between client and utility packages.
Using mismatched versions — for example, @aws-sdk/client-s3 at 3.600.0 alongside @aws-sdk/client-dynamodb at 3.580.0 — can cause runtime errors. Pin all @aws-sdk/* packages to the same version and update them together.
In package.json, lock to an exact version or a tight range:
If you need SigV4a support in the browser (where the CRT binary is not available), install @aws-sdk/signature-v4a instead. This is a pure JavaScript implementation. If both packages are present, the SDK prefers the CRT version for performance.
If the CRT package is missing when you call an operation that requires it, you will see an error like:
Cannot find module '@aws-sdk/signature-v4-crt'...Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly.
All packages are published to npm and that is the recommended installation method. If you need to test unreleased changes, you can build from the GitHub repository:
cd clients/client-dynamodbyarn pack .# Move the archive to your project and install itcd /path/to/your/projectnpm install /path/to/aws-sdk-client-dynamodb-v3.0.0.tgz