
Security News
Agent Baseline Publishes Security Reference Architecture for Software Factories
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.
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
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
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.