MIT LICENSE
DiffCore Released

Zero-Garbage Collection
JSON Diff Engine.

Production-ready NPM package with SIMD-accelerated Rust core. npm install diffcore — zero toolchain required.

42ms
Latency (10MB)
750 MB/s
Throughput

Why standard JS parsing fails at scale — and why DiffCore doesn’t.

When JSON payloads grow, JavaScript parsers allocate millions of objects. The V8 engine eventually freezes execution to clean them up.

JSON Input Grows
Heap Fills
GC Threshold Reached
Garbage Collection
Application Frozen for 155ms

DiffCore avoids the causes entirely: garbage collection, recursive traversal, JS object graphs, heap churn

End-to-End Diff Latency (10MB JSON)

JS + JSON.parse
127ms
JS (pre-parsed)
52ms
DiffCore WASM
42ms

* DiffCore parses + diffs in a single streaming pass. Auto memory cleanup via FinalizationRegistry.

How DiffCore Bypasses the JavaScript Runtime

V8

JavaScript Heap

Objects, recursion, garbage collection.
Unbounded latency.

WASM Linear Memory

Single contiguous buffer. Zero-copy writes.
No heap growth.

Native SIMD Engine

Single-pass structural diff.
Deterministic latency.

This architecture is exposed directly to JavaScript through a minimal WASM interface.

Get Started in 3 Steps

1

Install from NPM

Pre-compiled WASM included. No Rust toolchain required.

npm install diffcore
2

One-Line Diff

Zero-config API with embedded WASM auto-loading.

3

Streaming Mode

For large files, use the streaming engine with automatic memory management.