Description
limu is an immutable data library for JavaScript that aims to be a faster alternative to immer while keeping the same API. Its name stands for love immutable. It works by copying objects only when they are read, and marking them as modified only when they are written, which the project calls shallow copy on read and mark modified on write. Changes are not frozen by default, and the library supports Map and Set. Drafts can be viewed directly while debugging without a current helper. The package is about 4.3 KB gzipped. The README has a produce function that also supports currying, and a createDraft and finishDraft pair for explicit control. The author reports results that beat immer and mutative in several benchmark cases and links to an online performance demo. The library needs a JavaScript runtime that supports Proxy. The source is on GitHub, and the README invites benchmark contributions.…
Highlights
- Immutable updates with the same API as immer
- Copies objects on read, marks changes on write
- No freezing by default
- Supports Map and Set
- About 4.3 KB gzipped
Ratings & Reviews
No ratings yet
Be the first to rate Limu.
People also visit
Limu FAQ
What is limu?
A JavaScript library for creating and updating immutable objects, designed as an alternative to immer.
How is it different from immer?
It keeps immer's API, but does not freeze objects by default, and the author reports faster results in several benchmarks.
Which runtimes does it support?
Any JavaScript runtime that supports Proxy.
How do I use it?
The README shows a produce function with currying, and a createDraft and finishDraft pair.
How big is it?
About 4.3 KB gzipped.
What are the best Limu alternatives?
Popular alternatives to Limu include ImTools, opensource.builders and Amicro. See all Limu alternatives







