Libraries of the week #1
Weekly library roundup: DOM-free syntax highlighter Kirari, Remix 3.2, lightweight React runtime TanStack Redact, Mutative v2, and Partytown.
Kirari — a lightweight DOM-free syntax highlighter
Kirari has been released: a fast, lightweight syntax highlighter that works without touching the DOM tree. It wraps each token in a <span> tag with a dedicated class and supports 48 languages out of the box. Its creators position it as one of the fastest and smallest highlighters available.
Remix 3.2 — a major framework update
Remix 3.2 is out, the second minor update since the 3.0 branch shipped. The release optimizes Server-Side Rendering (SSR), boosting server rendering throughput by up to 2x, and adds built-in CSP middleware for managing security policies.
TanStack Redact — an ultra-lightweight alternative runtime for React
The TanStack ecosystem has added TanStack Redact, a drop-in replacement for the standard React runtime that shrinks client-side JS bundles by 30–70% without changing component code.
The library renders the DOM synchronously without Concurrent Mode overhead, swaps heavy synthetic events for thin native wrappers, and lets you strip out unused features such as Portals or Context via feature flags. In hybrid frameworks, original React still handles SSR while Redact takes over hydration and browser execution.
Mutative v2 — a blazing-fast alternative to Immer
Version 2 of Mutative is out, a library for safely updating nested data structures using an immutable pattern. It offers a simpler, faster alternative to Immer, showing speedups of up to 1,000x (when removing the first element).
Partytown — offloading third-party scripts to Web Workers
Partytown moves heavy third-party scripts (GTM, Amplitude, Hotjar, and analytics) into Web Workers. This frees up the browser’s main thread for your core application, improves UI responsiveness metrics, and prevents page freezes when loading heavyweight trackers.