This project aims to match the live DynamoDB instances as closely as possible (and is tested against them in various regions), including all limits and error messages.
What about Amazon's DynamoDB Local?
This project was created before DynamoDB Local existed, and when it did, it differed a lot from the live instances in ways that caused my company issues. Since then it's had a lot more development and resources thrown at it, and is probably more up-to-date than dynalite is. I'd recommend using it over dynalite if you don't mind the overhead of starting the JVM (or docker) each time. If you need a fast in-memory option that you can start up in milliseconds, then dynalite might be more suitable for you.
$ dynalite --helpUsage: dynalite [--port <port>] [--path <path>] [options]A DynamoDB http server, optionally backed by LevelDBOptions:--help Display this help message and exit--port <port> The port to listen on--path <path> The path to use
// Returns a standard Node.js HTTP servervar dynalite =var dynaliteServer =// Listen on port 4567dynaliteServer
var AWS =var dynamo = endpoint: ''dynamo
With npm, to install the CLI:
npm install -g dynalite
Or to install for development/testing in your project:
npm install -D dynalite