Menu
AWS SDK for JavaScript
Developer Guide

What Is the AWS SDK for JavaScript?

The AWS SDK for JavaScript provides a JavaScript API for AWS services. Using the SDK, you can build JavaScript applications for Node.js or the browser. The JavaScript API allows developers to build libraries or applications that make use of AWS services.

Relationship between JavaScript environments, the SDK, and Amazon Web Services

Using the SDK with Node.js

Node.js a cross-platform runtime for running server-side JavaScript applications. You can set up Node.js on an Amazon EC2 instance to run on a server. You can also use Node.js to write on-demand AWS Lambda functions.

Using the SDK for JavaScript for Node.js differs from using it for JavaScript in a web browser in the way you load the SDK and in how you obtain the credentials needed to access specific web services. When use of particular APIs differs between Node.js and the browser, those differences will be called out.

Using the SDK with Web Browsers

All major web browsers support execution of JavaScript. JavaScript code running in a web browser is often called client-side JavaScript.

Using the SDK for JavaScript in a web browser differs from using it for Node.js in the way you load the SDK and in how you obtain the credentials needed to access specific web services. When use of particular APIs differs between Node.js and the browser, those differences will be called out.

For a list of browsers supported by the AWS SDK for JavaScript, see Web Browsers Supported.

Common Use Cases

Using the SDK for JavaScript in browser scripts makes it possible to realize a number of compelling use cases. Here are several ideas for things you can build in a browser application using the SDK for JavaScript to access different web services.

  • Building a custom console to AWS services in which you access and combine features across regions and services to best meet your organizational or project needs.

  • Using Amazon Cognito Identity to enable authenticated user access to your browser applications and websites, including use of third-party authentication from Facebook and others.

  • Using Amazon Kinesis to process click streams or other marketing data in real time.

  • Using Amazon DynamoDB for serverless data persistence such as individual user preferences for visitors of your website or application users.

  • Using AWS Lambda to encapsulate proprietary logic that you can invoke from browser scripts without downloading and revealing your intellectual property to users.