Skip to content

Compakt 1.0.0

Latest

Choose a tag to compare

@Rounak-M Rounak-M released this 19 Oct 08:20

You deserve better compression.

Your files are nobody else's business. Compakt runs entirely on your own
machine — no sockets, no telemetry, no account, nothing uploaded to be
processed — and when you ask it to encrypt, it encrypts the file listing
too, which ZIP, the format most people use, leaves readable to anyone
holding the archive.

Downloads

Platform File
Windows Compakt_Setup.exe desktop app + pakt command
Debian / Ubuntu compakt_1.0.0_amd64.deb sudo apt install ./compakt_1.0.0_amd64.deb
Any Linux pakt-1.0.0-linux-x86_64.tar.gz extract and put on PATH

Linux ships the command line only. Built against glibc 2.28, so it runs on
Debian 10, Ubuntu 20.04, RHEL 8 and anything newer.

Verify what you downloaded

The Windows installer is not code-signed, so Windows will show
"Windows protected your PC". That warning is about a missing certificate,
not about the file — Windows shows it for every unsigned installer. Rather
than ask to be trusted, every artifact here is published with a SHA-256:

certutil -hashfile Compakt_Setup.exe SHA256              # Windows
sha256sum -c --ignore-missing SHA256SUMS                  # Linux

What it does

  • Routes by measuring — entropy, printable ratio, line structure. A SQLite database renamed notes.txt is packed as a database.
  • Truncation is survivable — the index is written at both ends.
  • Filenames stay private — with a password, the index itself is encrypted, unlike ZIP.
  • Authentication precedes disclosure — no plaintext reaches disk before its AES-256-GCM tag verifies.
  • Reproducible output, when you ask for it — identical input, byte-identical archive, on Windows and Linux alike. Not with encryption, which needs fresh randomness.
  • Ed25519 signing — optional, with verify --expect-key.
  • Big folders — each file is read once, and packing holds a quarter of your RAM at most (never less than 256 MB); past that it works from a temporary file, so a folder larger than memory packs.
  • Unpacks .pakt, .zip, .7z, .tar*, .gz, .bz2, .xz, .zst, .br, .iso, plus .rar, .cab, .deb, .rpm, .cpio, .arj, .lha and more via libarchive.

Benchmarks — losses beside wins

Against 7-Zip -mx9. Ratio is archive size over original, lower is better.

Corpus Compakt 7-Zip -mx9
silesia (202 MB) 0.2288 · 45.7s 0.2297 · 69.5s 0.4% smaller, and faster
enwik8 (95 MB) 0.2545 · 78.8s 0.2480 · 84.5s 2.6% behind
sitepackages (64 MB, 4,027 files) 0.2126 · 24.4s 0.2111 · 18.2s 0.7% behind
jsonlogs (1.6 MB, 8,000 files) 0.3724 · 4.4s 0.1596 · 1.4s 2.3× larger
sourcelike (1.3 MB, 1,200 files) 0.0546 · 0.8s 0.0123 · 0.2s 4.4× larger

Unpacking is where Compakt is quickest: the 4,027 files of sitepackages
come out in 2.7s, against 7.7s for 7-Zip. Timings are one machine, one
run; ratios are deterministic.

The big losses are small folders of many tiny files, where the index —
every file's path, size and digest, stored twice for recovery — is most
of the archive. Photos and video are already compressed; no archiver will
shrink them meaningfully, so Compakt stores them raw. All nine corpora:
benchmarks/RESULTS.md.

Verification performed

All 280 tests pass on Windows, and the suite passes on Linux too, where
the desktop-window tests do not run. Pack, verify and unpack —
plain and encrypted — were round-tripped byte-identically through the
frozen binaries on both platforms, and reproducible mode produced the
same archive, byte for byte, on Windows and on Linux. The Windows
installer was installed and uninstalled silently: everything it
registered was gone afterwards and PATH was restored exactly. The .deb
was installed on a clean Ubuntu 22.04, resolved libarchive as a declared
dependency, round-tripped byte-identically and removed cleanly.

Licensing

The .pakt format specification and reference decoder are Apache-2.0 — the
format is free forever. The application is MPL-2.0. One file, the routing
engine, is proprietary. No part of reading your archive is withheld:
dictionaries are trained from your own files at pack time and embedded in
the archive, and Compakt never writes one that refers to a dictionary it
does not carry.