Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including dynamoose with all npm packages installed. Try it out:

var dynamoose = require("dynamoose")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

dynamoose v1.11.1

Dynamoose is a modeling tool for Amazon's DynamoDB (inspired by Mongoose)


Slack Chat Build Status Coverage Status

Dynamoose is a modeling tool for Amazon's DynamoDB (inspired by Mongoose)

Getting Started


$ npm i dynamoose


Set AWS configurations in environment variables:

export AWS_ACCESS_KEY_ID="Your AWS Access Key ID"
export AWS_SECRET_ACCESS_KEY="Your AWS Secret Access Key"
export AWS_REGION="us-east-1"

Here's a simple example:

const dynamoose = require('dynamoose');

// Create cat model with default options
const Cat = dynamoose.model('Cat', {
  id: Number,
  name: String

// Create a new cat object
const garfield = new Cat({
  id: 666,
  name: 'Garfield'

// Save to DynamoDB; // Returns a promise that resolves when save has completed

// Lookup in DynamoDB
Cat.get(666).then((badCat) => {
  console.log(`Never trust a smiling cat. - ${}`);

API Docs

The documentation can be found at You can also find additional examples at


The Dynamoose Changelog can be found in the file.


The Dynamoose Roadmap can be found in the file. Help is always appreciated on these items. If you are able to help submit a PR so we can review and improve Dynamoose!


To contirubute to this project please checkout our file.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free