qmetrics.net

Mutative

JavaScript library for fast immutable state updates

Frameworks & PlatformsDesktop/CLI app
Mutative screenshot

Mutative lets you update immutable state by mutating a draft object, similar in style to Immer. It targets Redux-style reducers with optional patches, freezing, and marks for custom types.

Overview

Mutative is a JavaScript library for producing the next immutable state after you write ordinary-looking mutations against a draft. It is aimed at state management in Redux and other immutable stores, with an API centered on create and producer-style reducers.

The implementation copies each object at most once per update, drafts only when recipes read values, and runs native array methods on its copies. Optional auto-freeze, JSON Patch style patches, strict mode, async recipes, and Map or Set subclass support are built in rather than requiring separate plugins.

Published benchmarks in the project documentation compare timing against Immer and hand-written spread reducers across many workloads, especially large arrays and wide objects. Ecosystem packages connect Mutative to React, Zustand, Jotai, XState, and Yjs, and a compatibility layer mirrors common Immer APIs.

Documentation describes migration from Immer, marks for class instances, custom shallow copy hooks, and reducer patterns. The library ships as an npm package installable with npm install mutative.

Key features

  • Draft-based immutable updates
  • Optional JSON Patch generation
  • Per-call options without global plugins
  • Map, Set, and class instance drafts
  • Async recipe support
  • Strict mode for non-draft reads
  • Redux-compatible producers
  • mutative-compat Immer API layer

Use cases

  • Redux reducers without manual spreads
  • Large list updates in client state
  • Undo and redo via patches
  • Migrating codebases from Immer

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