Skip to main content
coreydaley.dev

Day one: libarchive, UnRAR, and a cat in a box

Purrchiver’s first commit landed on May 20, 2026. By the end of that day there was still no app — no window, no menu — but there was an archive engine that could read most of what you’d throw at it, and a test suite to prove it.

Two engines, not one

Most of the heavy lifting is libarchive 3.8.7, the library behind the tar that ships with macOS. It reads and writes ZIP, 7z, every flavour of tar, ISO images, and a long tail of older formats.

It doesn’t do everything. libarchive can’t decrypt modern password-protected RAR archives, so encrypted RAR goes through RarLab’s own UnRAR 7.2.6 library instead. RarLab’s licence allows UnRAR in any software that reads RAR — and forbids using it to create RAR archives, which is why Purrchiver opens RAR but will never write it. On a Mac, only RarLab’s own rar tool can make RAR files, along with apps that use it and need its licence.

Patching what was missing

libarchive 3.8.7 refused every password-protected 7z archive outright. Rather than bolt on a second 7z engine, the first day’s work added AES-256 support directly to libarchive’s 7z reader — and, later the same day, to its writer — so encrypted 7z archives open and can be created, with either just the contents encrypted or the file names hidden too.

Tests before features

Before the engine read anything, the project pulled 42 real-world archives from libarchive’s own test corpus: ZIPs made by old Windows tools with file names in legacy code pages, encrypted ZIP and 7z variants, ZIP64 boundary cases, RAR5 edge cases, multi-volume RAR sets, and ISO images with different extensions.

Every extraction test checks the output against a known SHA-256 hash, not just “it didn’t crash.” By the end of the first day there were 88 tests, covering reading and writing across the main formats, encrypted RAR and 7z, and multi-volume sets that open correctly from any part — not just the first.

And the icon

The icon was settled the same day: a cat in a cardboard box, which is roughly what an archive is.


Everything else in Purrchiver is built on what landed that day. The format support page has the full list of what it reads and writes.

Related posts