# Immutable.js

> Immutable persistent data collections for Javascript which increase efficiency and simplicity

Source: https://talira.ai/catalog/immutable-js-xjvqya87
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / data structures / immutable](https://talira.ai/categories/libraries/data-structures/immutable), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- API: yes[^3]
- Creator: Lee Byron

Immutable.js provides persistent immutable collections for JavaScript: `List`, `Stack`, `Map`, `OrderedMap`, `Set`, `OrderedSet` and `Record`. Updates return new collections that share structure with the old ones through hash array mapped tries and vector tries, as popularised by Clojure and Scala, so nothing is copied defensively. Collections compare by value with `equals` and `is`, nested data is read and changed with `getIn`, `setIn` and `updateIn`, and a lazy `Seq` chains `map` and `filter` without intermediate copies. It has no dependencies and ships Flow and [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) type definitions.

## Links

- Website: https://immutable-js.com/
- GitHub: https://github.com/immutable-js/immutable-js
- Docs: https://immutable-js.com/docs/

## Problems it solves

- state in my front-end app gets mutated somewhere and I can't find where
- copying big objects on every state update is slowing my app down
- check whether two nested data structures are equal without a deep compare on every render
- update a deeply nested value without spreading every level of the object by hand
- share unchanged parts of a large data structure between versions instead of copying it
- keep an undo history of application state without storing full copies
- use maps with object keys and value equality in JavaScript
- an ordered map that keeps insertion order and returns a new map on every change
- chain map and filter over a large collection lazily without intermediate arrays
- batch many changes to a collection efficiently, then freeze the result
- typed record objects with default values that can't be changed after creation

## Features

- List, Stack, Map, OrderedMap, Set, OrderedSet and Record
- structural sharing with hash array mapped tries and vector tries
- value equality with is() and equals()
- getIn, setIn, updateIn and mergeDeep for nested data
- lazy Seq, Range and Repeat
- batched mutations with withMutations
- fromJS and toJS conversion
- Flow and TypeScript definitions included
- no dependencies

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 0.93, adoption 0.90, momentum 0.71, community 0.96, backing 0.20, extensibility 0.20.

- last commit 7 days ago
- 50 commits in the last 90 days
- latest release v5.2.1 12 days ago
- 33.0k GitHub stars
- 246 contributors
- accepts sponsorship (Github)
- created by Lee Byron

## Sources

[^1]: https://github.com/immutable-js/immutable-js/blob/main/LICENSE (checked 20 Nov 2026)
[^2]: https://immutable-js.com/ (checked 20 Nov 2026)
[^3]: https://github.com/immutable-js/immutable-js (checked 20 Nov 2026)
