# Immer

> Work with immutable state by writing ordinary mutating code

Source: https://talira.ai/catalog/immer-y7a1kc8t
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frontend / state management](https://talira.ai/categories/frontend/state-management), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Immer](https://talira.ai/orgs/immerjs.md)

Immer is a small JavaScript library, created by Michel Weststrate, for working with immutable state. Instead of copying every level of an object by hand with spreads, you change a draft with ordinary JavaScript and its produce function returns a new state, sharing the parts that didn't change with the old one. It throws on accidental mutation and works with plain objects, arrays, Maps and Sets, so it fits React state, Redux reducers and configuration alike.

## Links

- Website: https://immerjs.github.io/immer/
- GitHub: https://github.com/immerjs/immer
- Docs: https://immerjs.github.io/immer/

## Problems it solves

- update deeply nested state in React without writing spread operators at every level
- stop accidental mutations of my Redux state
- write immutable updates in JavaScript with ordinary assignment syntax

## Features

- produce: change a draft with normal mutating code and get a new immutable state
- Structural sharing: unchanged parts of the tree are reused, not copied
- Throws on accidental mutations of the frozen result
- Works with plain objects, arrays, Maps and Sets
- Curried producers for React setState and reducers

## Trust

Overall: 0.74 out of 1.
Signals: maintenance 1.00, adoption 0.89, momentum 0.74, community 0.96, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 63 commits in the last 90 days
- latest release v11.2.13 3 days ago
- 29.0k GitHub stars
- 245 contributors
- accepts sponsorship (Open Collective, Custom, Patreon)
- has a company behind it

## Alternatives

- [Immutable.js](https://talira.ai/catalog/immutable-js-xjvqya87.md): Immutable persistent data collections for Javascript which increase efficiency and simplicity
- [MobX](https://talira.ai/catalog/mobx-p8wx8zdy.md): Simple, scalable state management
- [Redux](https://talira.ai/catalog/redux-c8rxkxfs.md): A JS library for predictable global state management
- [Valtio](https://talira.ai/catalog/valtio-d10jnsv5.md): Proxy-based state for React and vanilla JavaScript

## Sources

[^1]: https://github.com/immerjs/immer/blob/main/LICENSE (checked 27 Nov 2026)
