</>PackageGraphPackageGraph

redux

npmv5.0.1TypeScript

Predictable state container for JavaScript apps

Adopt with care

redux is usable, with caveats. Last published 991 days ago.

  • AAdoption: grade A, Excellent.

    30.2M downloads per week and 5 known dependents.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 991 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 283 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding redux to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

283 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the redux README.

import { createSlice, configureStore } from '@reduxjs/toolkit'

const counterSlice = createSlice({
  name: 'counter',
  initialState: {
    value: 0
  },
  reducers: {
    incremented: state => {
      // Redux Toolkit allows us to write "mutating" logic in reducers. It
      // doesn't actually mutate the state because it uses the Immer library,
      // which detects changes to a "draft state" and produces a brand new
      // immutable state based off those changes
      state.value += 1
Example truncated — see the full README.

redux vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
reduxthis page30.2M5MIT2 years ago
@reduxjs/toolkit26.4M2MIT1 day ago
immutable07MIT1 day ago
redux-thunk01MIT1 day ago
dayjs48.7M1MIT1 day ago
reselect44M1MIT1 day ago

Dependencies

Declared by redux v5.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (20)

@babel/core ^7.19.0@types/node ^18.7.16@typescript-eslint/eslint-plugin ^6@typescript-eslint/parser ^6cross-env ^7.0.3esbuild-extra ^0.1.3eslint ^8.23.0eslint-config-react-app ^7.0.1eslint-import-resolver-typescript ^3.5.1eslint-plugin-import ^2.26.0eslint-plugin-react ^7.31.8eslint-plugin-react-hooks ^4.6.0glob ^8.0.3netlify-plugin-cache ^1.0.3prettier ^2.7.1rimraf ^3.0.2rxjs ^7.5.6tsup 7.0.0typescript 5.2vitest ^0.34.0

Used by

Popular packages that depend on redux.

Relationship graph

Dependencies (left) and dependents (right) of redux.

Frequently installed together

Release history

No releases in the last two years, typically about 20 days apart.

Recent versions of redux
VersionPublishedSizeLicense
5.0.1latest2 years ago283 KBMIT
5.0.02 years ago282 KBMIT
5.0.0-rc.12 years ago291 KBMIT
5.0.0-rc.02 years ago288 KBMIT
5.0.0-beta.03 years ago288 KBMIT
5.0.0-alpha.63 years ago288 KBMIT
5.0.0-alpha.53 years ago285 KBMIT
5.0.0-alpha.43 years ago286 KBMIT
5.0.0-alpha.33 years ago271 KBMIT
5.0.0-alpha.23 years ago149 KBMIT
5.0.0-alpha.13 years ago150 KBMIT
4.2.13 years ago172 KBMIT
4.2.04 years ago174 KBMIT
5.0.0-alpha.04 years ago175 KBMIT
4.2.0-alpha.04 years ago175 KBMIT

Overview

redux is an npm package that predictable state container for JavaScript apps. It is extremely widely used, with about 30.2M downloads per week and 5 known dependents in the graph. The latest version is 5.0.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need predictable state container for JavaScript apps and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (30.2M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (20 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use redux?

redux is usable, with caveats. Last published 991 days ago.

How do I install redux?

Run `npm install redux` to add redux to your npm project.

What license is redux released under?

redux is distributed under the MIT license.

How popular is redux?

redux has approximately 30,201,957 downloads per week and 5 known dependent packages.

Is redux still maintained?

The most recent release of redux (v5.0.1) was published 2 years ago.

Does redux run install scripts?

No. redux does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.