node-redis
A strong pick. 1st of 10 caching and Redis clients.
node-redis (the npm package `redis`) is the official Redis client for Node.js. Redis Inc. funds and maintains it, it covers the newest Redis 8 commands and modules, and Redis now recommends it over ioredis for new projects. It is a strong default for TCP-based Node servers, but its major versions bring real breaking changes, and its download growth trails the median.
Best for: Node.js backends that talk to a Redis or Redis Stack server over TCP and want the officially supported client with full command and module coverage.
Scores
Overall8.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
For a new Node project with a Redis server, this is the pick Redis recommends. It is funded, very active, has the widest feature coverage and is gaining over ioredis in the official ecosystem. It falls short of the category default because users still report reconnect and failover issues, major versions break defaults, and its download growth lags ioredis. It also does not cover in-memory or edge caching, where lru-cache, Keyv or Upstash fit better.
- redis.io/docs/latest/develop/clients/nodejs/migration: Redis directs ioredis users to node-redis
- npm downloadsLast4Weeks: Grows below the median; ioredis grows faster
- github.com/redis/node-redis/issues/3127: Reconnect regression reports
- github commitsLastYear: Active maintenance
GPT-6.2 Sol: 8.5, likely 7.4 to 9.4
For a new Node.js service that needs direct access to Redis, node-redis is my first choice for its current command coverage, typed API, and active maintenance. ioredis remains the simpler fit when using BullMQ’s default connection setup, and lru-cache fits an in-process cache. Cluster typing costs and download growth below the catalog baseline keep the recommendation below 9.
- github.com/redis/node-redis/blob/v6.3/README.md: Stable Redis command coverage and client-side caching
- github commitsLastYear; npm versionsLastYear; npm downloadsLast4Weeks; npm downloadsSame4WeeksYearAgo; medianDownloadsRatio: Active maintenance alongside below-baseline download growth
- docs.bullmq.io/guide/connections: BullMQ defaults to ioredis
- github.com/redis/node-redis/issues/2975: Measured TypeScript costs for cluster configurations
Needed by many5.6
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many Node backend developers use Redis for caching, sessions, queues and rate limits. Still, it is a server-side need, and it requires a Redis server. Frontend work, edge work and in-process caching do not need it.
- dependents: 154k dependent repositories, so server-side use is broad
- Redis usage in Node backends: Redis is the most common external cache for web backends
GPT-6.2 Sol: 5.2, likely 4.1 to 6.4
Redis addresses a common backend need, and 28.3% of respondents to the 2026 Stack Overflow database question reported using it. This client targets Node.js services with a Redis connection, so browser apps and projects that only need an in-process cache have little use for it. The survey covers many languages and measures Redis use for every purpose, so it only approximates the audience for this client.
- survey.stackoverflow.co/2026/technology/data/databases: Redis usage among respondents to the database question
- github.com/redis/node-redis/blob/v6.3/README.md: Node.js client with Redis-backed local caching
Helps a lot8.1
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It has the widest command and module coverage of any JS Redis client, typed commands, RESP3, cluster command routing, client-side caching and observability hooks. Users report reconnect and failover bugs around Sentinel and cluster. Its explicit-connect API and option syntax also differ from the ioredis patterns common in tutorials. An independent 2026 comparison calls it a close match for ioredis rather than clearly better.
- github.com/redis/node-redis/releases: Releases 6.0 to 6.2 add RESP3 by default, cluster routing policies, key prefixes and Redis 8.x commands
- pkgpulse.com/guides/ioredis-vs-node-redis-vs-upstash-redis-clients-2026: Independent guide rates it about even with ioredis and lists its API cons
- github.com/redis/node-redis/issues/3127: User-reported reconnect regression in a v5 minor release
- github.com/redis/node-redis/issues/2141: Cluster failover reconnect complaint
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.6, likely 7.4 to 9.5
Stable 6.3.1 combines typed Redis commands, automatic pipelining, client-side caching, Cluster, and Sentinel. The documented setup gives coding agents a clear example for connecting and handling errors, though examples written for older majors can use outdated methods or defaults. In an independent benchmark from before v6, sequential performance was close to ioredis and node-redis led on concurrent writes. A user measured high TypeScript memory use for cluster types on 6.3.0, and a partial fix merged after 6.3.1 shipped.
- github.com/redis/node-redis/blob/v6.3/README.md: Stable API, examples, automatic pipelining, and error handling
- github.com/redis/node-redis/blob/v6.3/docs/v5-to-v6.md: Version-specific protocol and behavior changes
- glama.ai/blog/2026-01-26-redis-vs-ioredis-vs-valkey-glide: Independent benchmark of sequential and concurrent operations
- github.com/redis/node-redis/issues/2975: User measurements of cluster type-checking costs on 6.3.0
- github.com/redis/node-redis/pull/3578: Partial typing fix merged November 3
Holds up over time8.4
Will it still be a good choice in two years?
Claude Opus 5.5: 8.5, likely 7.5 to 9.5
Redis Inc. funds the project, and it was active in the last year, with 411 commits, 9 GitHub releases and 13 npm versions. Redis steers users from ioredis towards it, so the ecosystem is moving its way. The range stays open because each major version brings breaking defaults that force migration work.
- github commitsLastYear: 411 commits, 356 contributors
- npm versionsLastYear: 13 versions; latest 6.3.1 published 2026-10-29
- redis.io/docs/latest/develop/clients/nodejs/migration: Official migration guide from ioredis to node-redis
- redis.io/docs/latest/develop/clients/ioredis: Redis recommends node-redis for new projects
GPT-6.2 Sol: 8.3, likely 7.1 to 9.2
Redis maintains the client, and the bundle records 411 commits and 13 npm versions over the past year. The 6.3.1 release commit confirms the October npm release while GitHub’s latest stable release page still shows 6.2.1. The team merged a contributor’s partial fix for the long-running cluster typing issue in November. A single account posts most recent GitHub releases, and the v6 runtime and reply changes show that major upgrades can take work.
- github commitsLastYear; npm versionsLastYear; npm latestPublishedAt: 411 commits, 13 npm versions, and an October publish
- github.com/redis/node-redis/commit/5f867471d0: Source commit for the npm 6.3.1 release
- github.com/redis/node-redis/releases: Release authors, latest stable page, and active beta development
- github.com/redis/node-redis/pull/3578: Maintainer reviewed and merged a contributor’s typing improvement
- github.com/redis/node-redis/blob/v6.3/docs/v5-to-v6.md: Documents the Node.js floor and changed defaults
Used widely7.4
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It had 84.7M downloads in the last four weeks and the most dependent repositories (154k) of any Redis client here. That points to hundreds of thousands of projects. Its growth ratio of about 3.1 is below the 4.1 median and below ioredis at about 4.5, so its share of downloads is slipping. Queue libraries such as BullMQ install ioredis, which inflates the ioredis figure.
- npm downloadsLast4Weeks: 84.7M now vs 26.9M a year ago, a ratio of about 3.1 against a 4.1 median
- dependents: 154k repositories and 8.8k packages, against 50k repositories for ioredis
- github stars: 17.6k stars, the most in the category
GPT-6.2 Sol: 6.8, likely 5.6 to 7.8
ecosyste.ms found 154,264 repositories and 8,794 npm packages depending on redis, with roughly three times as many tracked repositories as ioredis. Four-week installs rose from 26.9 million to 84.7 million, but the 3.14× ratio trails both the 4.1× catalog median and ioredis at 4.50×. That points to lost relative ground despite a large installed base. Automated and indirect installs inflate downloads, while projects using the separate @redis/client package can fall outside these counts.
- dependents; peers ioredis dependentRepos: 154,264 tracked repositories versus 50,169 for ioredis
- npm downloadsLast4Weeks; npm downloadsSame4WeeksYearAgo; medianDownloadsRatio; peers ioredis: 3.14× growth versus the 4.1× baseline and ioredis at 4.50×
- keyv.org/docs/storage-adapters/redis: Keyv uses the separately published core client
Vouched for7.5
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
The Redis vendor backs it, the official docs and tutorials use it, and the ioredis README points new projects to it. Independent 2026 write-ups recommend it for new projects or rate it about even with ioredis. I found little independent production reporting or benchmark data. Most praise comes from Redis itself or from blog comparisons.
- oneuptime.com/blog/post/2026-03-31-redis-choose-node-redis-vs-ioredis/view: Independent 2026 post recommends node-redis for new projects
- pkgpulse.com/guides/ioredis-vs-node-redis-vs-upstash-redis-clients-2026: Calls ioredis the community favourite and node-redis a solid alternative
- redis.io/docs/latest/develop/clients/ioredis: Vendor endorsement for new projects
- bluesky posts: Almost no social discussion
GPT-6.2 Sol: 8.0, likely 6.8 to 9.0
NodeBB uses node-redis for its Redis backend, and Keyv’s Redis adapter builds on the v6 core client. BullMQ ships a node-redis adapter and defaults to ioredis. Socket.IO documents node-redis support and still flags older reports of subscriptions failing to restore after reconnecting. These are concrete integrations, while production evidence specific to 6.3.1 is thinner.
- raw.githubusercontent.com/NodeBB/NodeBB/master/src/database/redis/connection.js: NodeBB uses the standalone, Cluster, and Sentinel clients
- keyv.org/docs/storage-adapters/redis: Keyv’s Redis adapter uses @redis/client v6
- docs.bullmq.io/guide/connections: Built-in node-redis adapter with ioredis as the default
- socket.io/docs/v4/redis-adapter: Supported adapter with a reconnect caveat based on older reports
Safe7.9
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has one advisory ever, a 2021 regex issue in monitor mode that was fixed, and none in the last 24 months. It has an MIT licence and five dependencies, mostly its own @redis/* subpackages. Its Scorecard is 6.7, with weak Token-Permissions, Pinned-Dependencies and Fuzzing checks. The optional Entra ID auth package once pulled in a vulnerable uuid release, which was later fixed.
- advisories: 1 total, 0 in the last 24 months
- scorecard: Scores 6.7; Token-Permissions 0, Pinned-Dependencies 3, Code-Review 9
- npm dependencies: 5 dependencies, mostly first-party @redis packages
- github.com/redis/node-redis/releases: 6.0.0 bumped @azure/msal-node to drop a vulnerable uuid
GPT-6.2 Sol: 7.8, likely 6.6 to 8.8
The client is MIT-licensed, and the five direct dependencies of the full package are version-pinned packages from the same repository. The sole recorded client advisory was patched in 3.1.1 before public disclosure, and the bundle shows none in the last 24 months. The GitHub Actions release workflow is configured for npm trusted publishing. Scorecard shows strong code review but weak token permissions, dependency pinning in automation, and fuzzing, and the number of people who can trigger releases is unclear.
- github.com/redis/node-redis/commit/5f867471d0: MIT licence and five exact-version Redis workspace dependencies
- raw.githubusercontent.com/redis/node-redis/5f867471d0/packages/client/package.json: Core client has no required runtime dependencies
- advisories; scorecard checks: No recent client advisories and mixed automation safeguards
- github.com/advisories/GHSA-35q2-47q7-3pc3: April 23 disclosure names 3.1.1 as patched
- github.com/redis/node-redis/releases/tag/v3.1.1: Patch release published April 13
- raw.githubusercontent.com/redis/node-redis/5f867471d0/.github/workflows/release.yml: Manually triggered CI release with npm trusted publishing configuration
Good
- Redis Inc. maintains it and adds new server features quickly, such as Redis 8.x commands, JSON, search, time series and vector sets.
- It has a promise-first API, typed commands, and built-in cluster, Sentinel, pooling, RESP3 and client-side caching.
- It is very active, with 411 commits and 13 npm versions in the last year, plus OpenTelemetry metrics and diagnostics channels.
- It has the most dependent repositories of any Redis client in this category, about three times as many as ioredis.
Bad
- Major versions change behaviour: v6 made RESP3 the default, raised the minimum to Node 20 and added a 5 s command timeout.
- Users report reconnect and failover problems with Sentinel and cluster in GitHub issues, including a regression in a v5 minor release.
- You must call `await client.connect()` before use, and its API differs from ioredis, so ioredis-trained snippets and AI agents often get it wrong.
- It uses persistent TCP connections, so it does not fit edge and serverless runtimes, where Upstash's HTTP client is the usual pick.
The numbers
- npm downloads, 4 weeks
- 85M ×3.1 in a year
- GitHub stars
- 18k
- Commits, 12 months
- 411
- npm version
- 6.3.1 Oct 2026
- Versions, 12 months
- 13
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 6.7 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (redis/node-redis), npm (redis), OSV and the OpenSSF Scorecard.
Caching and Redis clients
- 8.3node-redis
- 8.2lru-cache
- 7.3Upstash Redis
- 7.1Valkey GLIDE
- 7.0unstorage
- 6.9ioredis
- 6.5BentoCache
- 6.3Keyv
- 6.2cache-manager
- 3.2node-cache