blazediff  by teimurjan

Blazing-fast diff ecosystem for JavaScript applications

Created 9 months ago
293 stars

Top 90.0% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

BlazeDiff offers a high-performance diffing ecosystem for JavaScript applications, addressing the need for speed and comprehensive comparison tools. It targets developers requiring efficient image comparison, object diffing, perceptual quality assessment, and visual regression, providing significant performance gains over existing solutions.

How It Works

The ecosystem leverages multiple implementations for optimal performance: native Rust with SIMD for unparalleled single-threaded speed, WebAssembly (compiled from Rust) for browser/edge environments with SIMD acceleration, and pure JavaScript for broader compatibility. It includes specialized packages for object diffing, perceptual quality metrics (SSIM, MS-SSIM, GMSD), CLI tools, an agentic visual regression system, and UI components for difference visualization. This multi-pronged approach ensures maximum speed and flexibility across runtimes.

Quick Start & Requirements

Installation is straightforward via npm or JSR:

# Node / Bun via npm
npm install @blazediff/core
# or
bun i @blazediff/core

# Deno / Bun via JSR
deno add jsr:@blazediff/core
# or
bunx jsr add @blazediff/core

No specific non-default prerequisites are detailed. Comprehensive API references, guides, examples, and benchmarks are available within the repository.

Highlighted Details

  • Performance: Native Rust achieves 3-4x speed over odiff and 8x over pixelmatch on 4K images; WebAssembly offers ~58% speedup over pixelmatch. Pure JS image diffing is ~50% faster than pixelmatch. Object diffing is ~55% faster than microdiff.
  • Agentic Visual Regression: Features an agent that auto-discovers routes, captures deterministic screenshots, and delegates ambiguous diff judgments to AI coding agents (e.g., Claude Code, Cursor).
  • Comprehensive Suite: Encompasses image diffing, object diffing, perceptual quality metrics (SSIM, MS-SSIM, Hitchhiker's SSIM, GMSD), CLI tools, and framework-agnostic/React UI components.

Maintenance & Community

Information regarding specific contributors, sponsorships, or community channels (e.g., Discord, Slack) is not detailed in the provided README. GitHub Actions are configured for testing and releases.

Licensing & Compatibility

The project is licensed under the permissive MIT License, suitable for commercial use and integration into closed-source applications. Specific algorithm packages (SSIM, GMSD) adhere to licenses based on their underlying academic research.

Limitations & Caveats

UI libraries (@blazediff/ui, @blazediff/react) and test-runner adapters are exclusively available on NPM, not JSR. Native-binary sub-packages are also NPM-only, though Deno consumers can resolve them via npm specifiers. The agentic visual regression functionality relies on external AI coding agents for decision-making.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
16
Issues (30d)
1
Star History
23 stars in the last 30 days

Explore Similar Projects

Starred by Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX), and
2 more.

Valdi by Snapchat

0.0%
16k
Build native cross-platform UIs with TypeScript
Created 6 months ago
Updated 19 hours ago
Feedback? Help us improve.