qmetrics.net

Immer

JavaScript library for convenient immutable state updates

Frameworks & PlatformsDesktop/CLI app
Immer screenshot

Immer lets you edit draft copies of plain objects and arrays while producing new immutable snapshots. It fits React, Redux, and other state-heavy JavaScript code.

Overview

Immer is a small JavaScript package that makes working with immutable data structures less verbose. Instead of manually spreading and cloning nested objects at every level, you pass existing state and a recipe function that mutates a draft proxy; Immer records those changes and returns the next immutable state while sharing unchanged subtrees in memory.

The library uses standard objects, arrays, Sets, and Maps with familiar mutable APIs, then freezes results to catch accidental later changes. It detects illegal mutations outside produce and can throw, which helps guard reducers and component state updates.

Immer supports structural sharing, deep updates without hand-written copy logic, JSON patch generation, and a compact runtime footprint. Teams adopt it alongside React state, Redux reducers, and configuration objects where reference equality drives efficient rendering or change detection.

Internally, edits apply to a draft proxy of the current state until the recipe finishes, at which point Immer materializes the next tree. This model reduces boilerplate compared with manual immutable update patterns while keeping the immutability guarantees those patterns were meant to enforce.

Key features

  • produce helper with draft-based recipes
  • Automatic copies only where needed
  • Works with plain JS collections
  • Detects accidental mutations
  • Structural sharing of unchanged data
  • Freezes output objects
  • JSON patch support
  • Small gzipped bundle size

Use cases

  • Simplify Redux reducer updates
  • Update nested React component state
  • Manage immutable configuration trees
  • Enable cheap change detection by reference

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT