# Dynoxide [![crates.io](https://img.shields.io/crates/v/dynoxide-rs.svg)](https://crates.io/crates/dynoxide-rs) [![docs.rs](https://img.shields.io/docsrs/dynoxide-rs)](https://docs.rs/dynoxide-rs) [![CI](https://github.com/nubo-db/dynoxide/actions/workflows/ci.yml/badge.svg)](https://github.com/nubo-db/dynoxide/actions/workflows/ci.yml) [![conformance](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/paritysuite/dynamodb-conformance/main/results/dynoxide.badge.json)](https://paritysuite.org) [![license](https://img.shields.io/crates/l/dynoxide-rs.svg)](#license) A DynamoDB emulator in Rust, backed by SQLite. Runs as an HTTP server or an MCP server for coding agents, embeds into Rust and iOS applications as a library, and compiles to WebAssembly for the browser. > The crates.io badge above shows the **crate** version, which covers the Rust library alone. Everything you install rather than depend on carries a separate **product** version: the binary, the npm packages, the PyPI package, the container images, the browser engine and the Action. That is the number `dynoxide --version` prints and the one to quote in a bug report. [Why there are two](docs/versioning.md). ## Why Dynoxide? I built Dynoxide because DynamoDB Local is slow and heavy, and you can't embed it. It needs a JVM, and the typical Docker-based setup adds 1–2 seconds of cold start, ~135 MB of memory at idle, and a ~240 MB Docker image (~230 MB on disk) before you've done anything useful. In an integration test run, your pipeline waits for Docker to start and the JVM to warm up before the first test runs. Dynoxide is a native binary. It starts in milliseconds, idles at ~8.2 MB, and ships as a ~5 MB download. Point any DynamoDB SDK at it and run your tests as normal. For Rust projects, there's also an **embedded mode**: direct API calls via `Database::memory()`, with no HTTP layer at all. Each test gets an isolated in-memory database with zero startup cost. And because it compiles to a native library with no runtime dependencies, it runs on platforms where DynamoDB Local can't, including iOS. ### Performance #### Local Development (Apple Silicon) Measured on a Mac Studio between March and November 2026, before 1.9.0. The CI figures below are from 1.9.0. | Metric | Dynoxide (embedded) | Dynoxide (HTTP) | DynamoDB Local | |---|---|---|---| | Cold startup | **~0.2ms** | **~15ms** | ~2,287ms | | GetItem (p50) | 9µs | 0.1ms | 0.8ms | | PutItem throughput | ~51,613 ops/s | ~6,703 ops/s | ~945 ops/s | | 50-test suite (sequential) | ~484ms | ~569ms | ~2,407ms | | 50-test suite (4x parallel) | ~203ms | ~235ms | ~1,189ms | #### CI (GitHub Actions) Numbers from `ubuntu-latest` (4-core AMD EPYC 9V74, 16GB RAM). Commit [`56143ab`](../../commit/56143ab97a9985471f52da78afea58afef679542). | Metric | Dynoxide (embedded) | Dynoxide (HTTP) | DynamoDB Local | LocalStack (all services) | Floci | MiniStack | |---|---|---|---|---|---|---| | Cold startup | **<1ms** | **~2ms** | ~1,564ms | ~10,097ms | ~364ms | ~2,147ms | | GetItem (p50) | 11µs | 0.2ms | 0.6ms | - | - | - | | 50-test CI suite | 702ms | 626ms | 1,853ms | - | - | - | | Full workload (10K items) | - | **2.3s** | 8.5s | - | - | - | | Binary / image (download) | ~5 MB | ~5 MB | ~240 MB | ~350 MB | - | - | | Binary / image (on disk) | 10 MB | 10 MB | 230 MB | 340 MB | 84 MB | 66 MB | | Idle memory (RSS) | ~8.2 MB | ~8 MB | ~135 MB | ~409 MB | ~36 MB | ~43 MB | > The gap is wider on Apple Silicon because the faster CPU amplifies the difference between native code and JVM overhead. Both are real measurements of the same benchmark suite. [Full methodology and per-operation breakdowns →](benchmarks/README.md) ### Conformance Dynoxide is continuously verified against real DynamoDB by **Parity Suite**, the [DynamoDB conformance suite](https://github.com/paritysuite/dynamodb-conformance) that runs one test matrix against AWS itself and every major DynamoDB emulator. Pass rates change as the suite grows and each engine moves on, so this README links to the live standings instead of a snapshot that would go stale: - **[Live standings](https://paritysuite.org)**: current pass rates for every engine, broken down by tier - **[paritysuite/dynamodb-conformance](https://github.com/paritysuite/dynamodb-conformance#results)**: the suite itself, the raw results, and how each target is run Disclosure: Dynoxide and Parity Suite are maintained by the same person. The suite scores Dynoxide on the same public matrix it runs against every other engine, and the results and test code are open. This covers the native build. The [WebAssembly](https://github.com/nubo-db/dynoxide/blob/main/docs/wasm.md) build is scored as its own row: it serves every operation the native build does except bulk put, which the suite skips. ### How It Compares | | Dynoxide | DynamoDB Local | LocalStack (all services) | Floci | MiniStack | dynalite | |---|---|---|---|---|---|---| | Language | Rust | Java | Python + Java | Java (GraalVM native image) | Python | Node.js | | Storage | SQLite | SQLite | SQLite (via DDB Local) | Its own (in-memory, persistent or WAL) | Its own (in-memory, optional on-disk state) | LevelDB | | Runtime dependency | - | JVM | Docker + a LocalStack account (auth token) | Docker | Docker or Python | Node.js | | Embeddable (Rust / iOS) | ✓ | - | - | - | - | - | | MCP server for agents | ✓ | - | - | - | - | - | LocalStack uses DynamoDB Local internally as its DynamoDB engine, so its startup and memory overhead includes DynamoDB Local's JVM plus LocalStack's own Python routing layer. Since March 2026 its image needs a LocalStack account and `LOCALSTACK_AUTH_TOKEN` to start, even for the services that used to be free. Floci and MiniStack are general AWS emulators like LocalStack, each with its own DynamoDB engine rather than DynamoDB Local. ## Quick Start Run a local server without installing anything: ```sh npx dynoxide --port 8000 ``` Or install it into a project to pin the version, after which `npx dynoxide` uses that copy: ```sh npm install --save-dev dynoxide ``` In a Node test suite, the package's `start()` runs a server on a free port and stops it when the tests finish. See [starting a server from your tests](https://github.com/nubo-db/dynoxide/blob/main/npm/dynoxide/README.md#starting-a-server-from-your-tests). For Python, `pip install dynoxide` gives you the same `start()` and pytest fixtures, with the binary inside the wheel. See the [Python package](https://github.com/nubo-db/dynoxide/blob/main/python/README.md). Or run it in Docker, a drop-in for `amazon/dynamodb-local`: ```sh docker run --rm -p 8000:8000 ghcr.io/nubo-db/dynoxide ``` Or start it in a GitHub Actions job: ```yaml - uses: nubo-db/dynoxide/action@v1.9.0 with: port: 8000 ``` Point any AWS SDK or DynamoDB client at `http://localhost:8000`. For Homebrew, Cargo, pre-built binaries, and embedding as a Rust library, see the [installation guide](https://github.com/nubo-db/dynoxide/blob/main/docs/installation.md). Add `--log quiet` to suppress informational startup and shutdown messages on stderr (useful in test suites). It works on `serve`, `mcp` and `import --serve` or `--mcp`, and warnings and errors still print. Without `--log`, the output is unchanged. ## Documentation - [Installation](https://github.com/nubo-db/dynoxide/blob/main/docs/installation.md) - npm, pip, Homebrew, Cargo, binaries, GitHub Actions, and Docker - [HTTP server](https://github.com/nubo-db/dynoxide/blob/main/docs/http-server.md) - running the DynamoDB-compatible HTTP API - [Testcontainers](https://github.com/nubo-db/dynoxide/blob/main/docs/testcontainers.md) - driving the container from a test suite, and the wait strategy it needs - [Writing a launcher](https://github.com/nubo-db/dynoxide/blob/main/docs/launcher.md) - how a wrapper for another language finds, starts and stops the binary - [Laravel](https://github.com/nubo-db/dynoxide/blob/main/docs/laravel.md) - the DynamoDB cache, locks, sessions and failed jobs, run locally - [Bref](https://github.com/nubo-db/dynoxide/blob/main/docs/bref.md) - Laravel, Symfony and DynamoDB Streams handlers on Bref, run locally - [MCP server](https://github.com/nubo-db/dynoxide/blob/main/docs/mcp.md) - the Model Context Protocol server for coding agents - [DynamoDB Streams](https://github.com/nubo-db/dynoxide/blob/main/docs/streams.md) - enabling and reading stream records - [Import CLI](https://github.com/nubo-db/dynoxide/blob/main/docs/import.md) - loading data, table filtering, and anonymisation - [Bulk put](https://github.com/nubo-db/dynoxide/blob/main/docs/bulk-put.md) - StartBulkPutItems, reading from a local folder that stands in for S3 - [WebAssembly](https://github.com/nubo-db/dynoxide/blob/main/docs/wasm.md) - the browser build and embed contract - [Using as a Rust library](https://github.com/nubo-db/dynoxide/blob/main/docs/library.md) - embedded mode and feature flags - [Compatibility](https://github.com/nubo-db/dynoxide/blob/main/docs/compatibility-summary.md) - operation, expression, and PartiQL coverage versus DynamoDB - [Differences from DynamoDB](https://github.com/nubo-db/dynoxide/blob/main/docs/differences-from-dynamodb.md) - what knowingly behaves differently, and why - [Troubleshooting](https://github.com/nubo-db/dynoxide/blob/main/docs/troubleshooting.md) - common errors and what they mean - [Versioning](https://github.com/nubo-db/dynoxide/blob/main/docs/versioning.md) - what the version number promises and what forces a major - [Releasing](https://github.com/nubo-db/dynoxide/blob/main/docs/RELEASING.md) - release cadence and process ## Community These integrations are built and maintained by people outside the project. There's a bit more on each at [dynoxide.dev/community](https://dynoxide.dev/community). - [vitest-dynoxide](https://github.com/seek-oss/vitest-dynoxide) - runs Vitest integration tests against Dynoxide, with an in-memory instance per test file (SEEK, maintained by [Sam Chung](https://github.com/samchungy)) - [sbt-dynoxide](https://github.com/Hapag-Lloyd/sbt-dynoxide) - an sbt plugin for Scala builds that downloads Dynoxide and runs it around `test` and `testOnly` (Hapag-Lloyd, maintained by [Marcin Szałomski](https://github.com/baldram)) - [dynoxide-scala-core](https://github.com/Hapag-Lloyd/dynoxide-scala-core) - the build-tool-agnostic library behind sbt-dynoxide, for wiring Dynoxide into other JVM build tools (Hapag-Lloyd, maintained by [Marcin Szałomski](https://github.com/baldram)) Built something on top of Dynoxide? [Propose it for the list](https://github.com/nubo-db/dynoxide/issues/new?template=community-integration.yml). Wrapping Dynoxide for another language? [Writing a launcher](https://github.com/nubo-db/dynoxide/blob/main/docs/launcher.md) covers finding, starting and stopping the binary the same way every other wrapper does. ## Supported Operations Dynoxide implements the DynamoDB API across tables, items, query and scan, batches, transactions, PartiQL, streams, TTL, tags, on-demand backups and point-in-time recovery, resource policies, Contributor Insights, DescribeLimits and DescribeEndpoints, and bulk put from a local folder, with GSI and LSI support, the full expression syntax, and DynamoDB-compatible pagination, validation, and error codes. For the operation-by-operation breakdown and a comparison, see the [compatibility summary](https://github.com/nubo-db/dynoxide/blob/main/docs/compatibility-summary.md). ## Limitations Dynoxide is built for local development, testing and CI. It isn't a production DynamoDB replacement, so two kinds of thing are missing on purpose. The first is cloud-only operations with no local equivalent: global tables and their replica auto scaling, Kinesis streaming, and table import and export. Call one and you get an `UnknownOperationException`. The second is a few behaviours that differ from DynamoDB, which are worth knowing when you test against Dynoxide: - `ConsistentRead` is accepted but changes nothing. SQLite is strongly consistent, so every read already is - you can't reproduce eventually-consistent reads. - Streams expose a single shard. `DescribeStream` returns one shard, and its `ExclusiveStartShardId` and `Limit` paging parameters are accepted but ignored. - Transaction-contention errors (`TransactionConflictException`, `TransactionInProgressException`) aren't emulated - there's no concurrent contention in a single process. [Differences from DynamoDB](https://github.com/nubo-db/dynoxide/blob/main/docs/differences-from-dynamodb.md) gathers every known difference in one place. For the per-feature support matrix, see the [live capability matrix](https://paritysuite.org/capabilities); the full operation-by-operation breakdown is in the [compatibility summary](https://github.com/nubo-db/dynoxide/blob/main/docs/compatibility-summary.md). ## Acknowledgements Dynoxide's DynamoDB API semantics and validation logic were informed by [dynalite](https://github.com/architect/dynalite), the excellent DynamoDB emulator built on LevelDB by Michael Hart and now maintained by the Architect team. Dynoxide is a clean-room Rust implementation. No code was ported directly, but [dynalite](https://github.com/architect/dynalite)'s thorough approach to matching live DynamoDB behaviour, including edge cases and error messages, was an invaluable reference. Dynoxide uses SQLite as its storage layer. (AWS's [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html) also uses SQLite internally.) ## License Dual-licensed under MIT and Apache 2.0. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE). ## Trademarks Amazon DynamoDB, DynamoDB, and AWS are trademarks of Amazon.com, Inc. or its affiliates. Dynoxide is an independent project and is not affiliated with, endorsed by, or sponsored by Amazon, and nothing here grants any right to use those names or marks.