Wadis is a WebAssembly build of the Redis in-memory datastore, purpose-built for automated testing. It provides a high-fidelity, ephemeral Redis server that runs in-process with your tests, eliminating the need for Docker or external binaries. Version 1.0.2 is the latest stable release, with active development; it ships TypeScript types and supports Node.js >=20 and Bun >=1.1. Key differentiators include instant boot (milliseconds), zero state collision between instances, and support for advanced Redis features like Pub/Sub and Lua scripting. It offers an ioredis-compatible client API and a low-level server API for raw RESP access.
npm install wadisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: install, create an isolated Redis instance, run commands, and clean up.
Upgrade to Node.js 20+ or use Bun 1.1+
Do not use for production persistence; intended only for testing
Use new TextDecoder().decode(reply) to get the RESP string
Use standard Redis log levels: 'debug', 'verbose', 'notice', 'warning' (still supported but may change)
Run `npm install -D wadis ioredis`
Use `import { Wadis } from 'wadis'` instead of `import Wadis from 'wadis'`Upgrade Node.js to >=20.0.0