whatisgithub

What is immutable-json-patch?

josdejong/immutable-json-patch — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2025-07-31

54TypeScriptAudience · developerComplexity · 2/5QuietSetup · easy

In one sentence

TypeScript library that applies JSON Patch changes to data by returning a new copy with the changes, leaving the original data untouched.

Mindmap

mindmap
  root((repo))
    What it does
      Applies JSON patches
      Keeps original unchanged
      Supports reverting changes
    Tech stack
      TypeScript
      JSON Patch format
    Use cases
      Merge collaborative edits
      Build undo redo
      Track change history
    Audience
      Developers
      Frontend engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Apply a list of add, update, or remove operations to JSON data and get back a new object with the original left untouched.

USE CASE 2

Build an undo/redo system by applying and reversing JSON patches for each user action.

USE CASE 3

Merge concurrent edits from multiple users in a collaborative app by exchanging JSON patches instead of full documents.

USE CASE 4

Keep an audit trail of every change to a piece of structured data using immutable patches.

What is it built with?

TypeScript

How does it compare?

josdejong/immutable-json-patchavijit07x/git-switchcryptosaras/tokenward
Stars545454
LanguageTypeScriptTypeScriptTypeScript
Last pushed2025-07-31
MaintenanceQuiet
Setup difficultyeasymoderateeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Copy-paste prompts

Prompt 1
Show me how to use immutable-json-patch to apply a patch that updates one field of a JSON object without mutating the original.
Prompt 2
Using immutable-json-patch, how would I build a simple undo/redo feature by applying and reverting patches?
Prompt 3
Write an example where immutable-json-patch merges two users' edits to the same JSON document by applying each user's patch in sequence.
Prompt 4
How do I use immutable-json-patch to keep a log of every change made to a config object over time?

Frequently asked questions

What is immutable-json-patch?

TypeScript library that applies JSON Patch changes to data by returning a new copy with the changes, leaving the original data untouched.

What language is immutable-json-patch written in?

Mainly TypeScript. The stack also includes TypeScript.

Is immutable-json-patch actively maintained?

Quiet — no commits in 6-12 months (last push 2025-07-31).

How hard is immutable-json-patch to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is immutable-json-patch for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.