FindSoftware

Immer

JavaScript package that allows code to work with immutable state in a more convenient way.

Immer lets code change a draft of plain JavaScript objects, arrays, Sets and Maps, and then produces the next immutable state from those changes, with structural sharing and object freezing. The documentation says it can be used wherever immutable data structures are needed, such as React state, Redux reducers or configuration management, and it supports JSON patches for communicating changes.

Worth knowing

Support for Map and Set, JSON patches and an array-method optimization is opt-in: each is enabled once by a function call at application start. Immer relies on Proxy and cannot be used in engines without it.

Identity

Status
Active
Maintainer
Michel Weststrate3
Maintained by
Individual3
First release
20166

Rendering and deploy

Install with
npm install immer or yarn add immer, deno install immer, script tag from the unpkg or jsDelivr CDN4

Releases

Current major version
115
Last release
2026-11-105

Adoption

GitHub stars
29,0032
npm downloads a week
92,536,6677
Contributors
2228
Dependent repositories
1,478,2259
Dependent packages
5,4379

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories
    immerjs.github.io/immer/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/immerjs/immer
  3. 2026-11-16: Maintainer, Maintained by, License, License model
    github.com/immerjs/immer/blob/main/LICENSE
  4. 2026-11-16: Install with
    immerjs.github.io/immer/installation/
  5. 2026-11-16: Current major version, Last release
    api.github.com/repos/immerjs/immer/releases/latest
  6. 2026-11-16: First release
    registry.npmjs.org/immer
  7. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/immer
  8. 2026-11-16: Contributors
    api.github.com/repos/immerjs/immer/contributors?per_page=1
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/immer

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON