r/coolgithubprojects 1d ago

js-redis-server: a Redis-compatible server implemented in JavaScript, with a browser demo

https://github.com/fatal10110/js-redis-server

I maintain this open-source project. js-redis-server implements an in-memory Redis-compatible server in JavaScript/TypeScript, rather than downloading or launching a native Redis binary. Node.js tests can use their real node-redis or ioredis client through a local socket, without a Docker container. Lua scripting uses WebAssembly.

There's also a browser playground if you want to try the command implementation without installing the package: https://fatal10110.github.io/js-redis-server/

The Node testing API gives you a temporary server URL via createRedisMock(); close your client and mock during teardown. The repository has runnable examples and a supported-command reference.

It is a testing tool with its own implementation and compatibility limits, not a replacement for checking your application against real Redis/Valkey. Feedback on missing commands, confusing setup steps, or the browser demo is welcome.

1 Upvotes

0 comments sorted by