mergeos-bounties · open source · offline-friendly

TrucCompression

Compress any file with the browser MFC1 codec, restore byte-for-byte, and compare against built-in media compressors (Gzip, Deflate/zlib). Sample fixtures are ready to try — no install.

Open playground GitHub CLI quick start Bounties

Playground

Ready — pick a sample or drop a file.

1 · Load data

Use a sample fixture, or upload / drop your own binary, image, or WAV.

Drop a file here or click to browse

Binary · PNG/JPEG/WebP · WAV · any bytes (client-side only)

No file loaded

2 · Options & actions

3 · Compare codecs

MFC1 (this product) vs browser CompressionStream Gzip & Deflate. All paths are lossless here. Lossy codecs (JPEG quality, MP3, H.264) are not 1:1 comparable.

Method Size Ratio Saved Time Verify Notes
Load a file to see results…

MFC report

{}

Log

What you are comparing

MFC1 (TrucCompression)

Block formula list: CONST, REPEAT, COPY, ZLIB, DELTA+ZLIB, XOR+ZLIB, RAW. Browser encoder skips BZ2/LZMA (CLI has them).

Gzip

Whole-stream DEFLATE + gzip framing via CompressionStream("gzip") — common for downloads and HTTP.

Deflate / zlib

Raw zlib wrapper via CompressionStream("deflate") — same family as Python zlib.

Media containers

PNG/JPEG/WebP are already entropy-coded. MFC rarely beats the file size — try “image raw RGB” for a fair pixel-level compare.

Sample fixtures

FileSizeExpected behaviour
samples/zeros.bin4 KiBCONST / huge savings
samples/const.bin2 KiBCONST
samples/repeat.bin2 KiBREPEAT (ABAB…)
samples/text.bin~3 KiBZLIB / REPEAT
samples/ramp.bin2 KiBDELTA_ZLIB often best
samples/noise_4k.bin4 KiBLittle or no savings (RAW)
samples/tone_440.wav~9 KiBStructured PCM; MFC vs Gzip
samples/gradient_32.png~2 KiBAlready compressed container

CLI (same codec on disk)

git clone https://github.com/mergeos-bounties/TrucCompression.git
cd TrucCompression
python -m venv .venv
# Windows: .venv\Scripts\activate
pip install -e ".[dev]"
truccompression demo
truccompression compress data/samples/zeros.bin out.mfc --verify
truccompression decompress out.mfc restored.bin

Honest limits

MergeOS bounties

Star core MergeOS repos, claim a bounty issue, open a PR against master, pass CI → maintainer merge + MRG credit.

View issues