
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
Fast binary diff/patch implementation in Zig with zstd compression.
This is a high-performance port of bsdiff/bspatch that uses zstd compression instead of bzip2, providing better compression ratios and faster decompression speeds.
We built this to power the built-in update diffing in Electrobun apps where it's used to diff the tar file of two versions of your app.
Hence TRDIFF (TR for Tar)
npm install zig-bsdiff
Platform-specific binaries are automatically downloaded from GitHub releases during installation. No manual setup required!
The package includes two binaries: bsdiff and bspatch.
# Create a patch
bsdiff <oldfile> <newfile> <patchfile> [--use-zstd]
# Apply a patch
bspatch <oldfile> <newfile> <patchfile>
import { getBinaryPath, getBinaries } from 'zig-bsdiff';
// Get path to a specific binary
const bsdiffPath = getBinaryPath('bsdiff');
const bspatchPath = getBinaryPath('bspatch');
// Or get both at once
const { bsdiff, bspatch } = getBinaries();
// Use with child_process
import { spawn } from 'child_process';
spawn(bsdiffPath, ['old.bin', 'new.bin', 'patch.bin', '--use-zstd']);
When you install this package, the postinstall script automatically:
node_modules/zig-bsdiff/bin/This means:
For development or if you want to build from source:
# Clone the repository
git clone https://github.com/blackboardsh/zig-bsdiff.git
cd zig-bsdiff
# Single command
bun dev
This will
- run setup (vendor zig and init zstd submodule)
- build bsdiff/bspatch
- run the zig tests (only outputs if one fails)
- run a full end-to-end test creating and applying a diff of two random 2MB files with output
If you have Zig 0.13.0+ installed:
zig build -Doptimize=ReleaseFast
zig build test
This implementation uses:
MIT
Based on the original bsdiff by Colin Percival. Ported to Zig with zstd compression by Yoav Givati at Blackboard Technologies Inc.
FAQs
Fast binary diff/patch implementation in Zig with zstd compression
The npm package zig-bsdiff receives a total of 0 weekly downloads. As such, zig-bsdiff popularity was classified as not popular.
We found that zig-bsdiff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.