Immer
Immutable state management by mutating a draft in a simpler API.
State and data fetching npm MIT
Used in agent projects
77
0.6% of 12,697 public repos built with AI coding agents
Rank in state and data fetching
#8 of 20
by use in those projects
Downloads
64.6M
npm, last 7 days, immer
GitHub stars
29K
last push Oct 2, 2026
How Immer is used
Immer is a dependency in 77 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.6%), #8 of 20 in state and data fetching. The most used alternative there is TanStack Query. Projects that use it most often also use Zustand (77.9%), React (97.4%), Tailwind CSS (77.9%).
Often used with Immer
| Zustand | 77.9% of Immer projects · 13.2× more than average |
|---|---|
| React | 97.4% of Immer projects · 2.2× more than average |
| Tailwind CSS | 77.9% of Immer projects · 2.2× more than average |
| ESLint | 79.2% of Immer projects · 2.1× more than average |
| TypeScript | 96.1% of Immer projects · 1.7× more than average |
| date-fns | 40.3% of Immer projects · 4.7× more than average |
| Testing Library | 37.7% of Immer projects · 5.2× more than average |
| Vitest | 41.6% of Immer projects · 3.4× more than average |
By coding agent
| Claude Code | 0.8% of projects set up for it |
|---|---|
| Cursor | 1.0% of projects set up for it |
| GitHub Copilot | 0.6% of projects set up for it |
| OpenAI Codex | 1.1% of projects set up for it |
Share of public repos configured for each agent that list Immer as a dependency.
Install
| Package | npm install immer |
|---|---|
| Main stacks | Next.js (37), TypeScript / JavaScript (34), React Native / Expo (4), Rust (2) |
| Example projects | sunflower-land/sunflower-land, amelioro/ameliorate, dydxprotocol/v4-web, witchesofthehill/manabrew, exitatmosphere/Solana-Token-Creator |
Alternatives to Immer
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| TanStack Query npm Hooks for managing, caching and synchronizing remote data in React. |
1,217 (9.6%) | 65.8M | 50.4K | MIT |
| Zustand npm Lightweight state management for React with minimal boilerplate. |
752 (5.9%) | 60.8M | 58.8K | MIT |
| RxJS npm Reactive programming library for composing async events and data streams in JavaScript. |
176 (1.4%) | 104M | 31.7K | Apache-2.0 |
| React Redux npm Official React bindings for Redux state management with hooks. |
135 (1.1%) | 39.2M | 23.4K | MIT |
| Jotai npm Minimal React state management with atoms as primitive building blocks for flexibility. |
124 (1.0%) | 6.6M | 21.3K | MIT |
| SWR npm React hooks library for data fetching with caching, revalidation and real-time updates. |
123 (1.0%) | 18.8M | 32.5K | MIT |
| Redux Toolkit npm Official Redux library with built-in best practices and reduced boilerplate for state management. |
120 (0.9%) | 32.6M | 11.2K | MIT |
| Pinia npm Intuitive, type-safe state management store for Vue applications. |
69 (0.5%) | 5.2M | 14.7K | MIT |