The long tail of 'opens most archives'
Supporting all the formats sounds like one feature; in practice it is a hundred small agreements with strangers.
Picture a folder in Downloads with three files in it: holiday.zip.001, holiday.zip.002 and holiday.zip.003. Someone has split a big archive into pieces so it would fit through an email limit or an upload form, and now you are holding the pieces. You double-click the second one, because it happens to be the one under your cursor.
What should an archive app do? Nothing about that gesture is wrong. A person is not obliged to know which part is "the real one". And yet a lot of software quietly assumes they do.
That scene is more or less why this article exists. When I started Peel I wrote "opens most archives" on a list as a single line item. It turned out to be the least accurate line on the list. It is not one feature. It is a long tail of other people's conventions, each of which is reasonable on its own and none of which agree with each other.
What "it opens" is made of
The nice thing about a feature people never notice is that they only talk about it when it fails. Nobody writes to say a .tar.zst opened fine. They write when it did not, and then the question is always the same: why won't it open?
The answer is that "it opens" is the sum of dozens of small decisions. Which format is this, really? What compressor sits inside it? Is this file part of a set? Is it a plain ZIP, or a ZIP wearing a costume? Each answer is boring. Together they are most of the work.
Here are the ones that taught me the most.
RAR gets its own world
Most formats I deal with are documented well enough that you can read the spec and write a reader. RAR is the odd one out. It is a proprietary format with a long history, and in practice the way you decode it is by going through the vendor's own unrar code rather than rewriting the algorithm from scratch. Peel's RAR support follows an adapter model: the engine wraps that decoder behind the same interface the other readers use, so the rest of the app does not care which one it is talking to. I also carry a small patch to the wrapper crate, a fix for an out-of-bounds read in its multi-volume callback. That is the kind of detail you only learn by feeding it real multi-volume sets.
Multi-volume is where RAR earns its reputation. A set might be named .part1.rar, .part2.rar and so on, or the older style with .rar, .r00, .r01. Either way the job is the same: find the siblings, work out which one is first, and hand them to the decoder as one logical archive. If you ask for volume three, the app should resolve to volume one and read across all of them. Peel can list a set from any part and extract across the volumes. I tested that against a four-volume set from libarchive's test files rather than one I made up, because the fixtures I make up tend to agree with my assumptions.
Then there is RAR5, which is not an update to RAR so much as a different format that happens to share a name and a file extension. Encrypted data and even encrypted file names exist in both generations, solid and non-solid, and each combination wants its own test. I have a rule that a reader is not done until I have run it against an independent oracle, meaning a tool that was not written by me, so I am not just proving that my code agrees with itself.
Split archives, from any part
Back to the folder in Downloads. Splitting a file into numbered parts is the simplest convention in this whole article: take the bytes, cut them into chunks, number the chunks. Concatenate them in order and you have the original.
The simplicity is the trap. The user's gesture is "open this file", and the file they point at might be .002. So the real work is not joining bytes. It is noticing that the name looks like a part, finding its siblings, checking that .001 exists and the numbers run on without a gap, and working out what kind of archive the joined result is. Peel opens a set like name.zip.001, name.7z.001 or name.tar.gz.001 from whichever part you hand it.
There is a boundary worth being honest about. The numbered-parts convention is one thing; the spanning scheme some ZIP tools use, with .z01 style segments, is a different thing, and I have not claimed to handle that one. Two conventions that both look like "split ZIP" to a person are not the same format to a program, and pretending otherwise is how you ship a bug that only appears on someone's backup.
The newer compressors turn up in old containers
The second long-tail pattern is time. Compression keeps moving, but containers are sticky. The tarball is decades old and nobody is going to replace it. What changed is what you put in front of it.
So a .tar.gz is no longer the default assumption. You meet .tar.xz, .tar.bz2, and increasingly .tar.zst as well, plus bare gzip, bzip2, xz and zstd files with no TAR inside at all. The container name is a hint, not a promise. A file called thing.tgz is probably gzip, but the reliable answer is in the first few bytes, so Peel sniffs the content and does not trust the extension alone.
ZIP is a similar story from the other direction. It is one container with a menu of methods per entry, and people use more of the menu than you expect. Peel reads deflate, but also bzip2, LZMA and Zstandard entries inside ZIP files, and a single archive can mix them. A reader that only handles the common method works right up until the one file that does not.
None of this is clever. It is the unglamorous habit of asking, for every format, "what else do people put in this?" and then going to find a real example.
Zips in costumes
My favourite part of the tail is the family of formats that are secretly ZIPs.
An EPUB is a ZIP. So is a JAR, an APK, a CBZ comic, a USDZ 3D model and a 3MF print file. Rename any of them to .zip and a plain ZIP reader will open them and show you the contents: XML and images for a book, class files for a Java library, a manifest and resources for an Android app, page images for a comic.
This matters for two reasons. First, it means the format list is shorter than it looks, since the same reader handles the whole family. Second, it means the interesting questions move up a level. Does the user want a folder of pages, or the book? Should a comic show its cover as the file icon? Peel treats CBZ, CBR, CB7 and CBT that way, using the first image in name order as the thumbnail, read alone with a size cap and a time budget so Finder is not kept waiting.
The costume also cuts the other way. Creating them is a different matter, because a valid EPUB, APK or USDZ has rules a plain ZIP does not. Peel will open them, but it refuses to pretend it can make them. I would rather decline than hand someone a file that looks right and fails in the app they meant it for.
What the tail teaches
Looking back, none of the individual pieces was hard in the way a research problem is hard. Each was a small convention, written down somewhere or not, that I had to find, respect and test. Multiply by the number of formats and you get the real cost of breadth: not one big difficulty, but many small ones, each of which has to be handled without making a fuss.
There is also a discipline in the failures. For the formats I cannot fully read, the right behaviour is to say so plainly. A format that is recognised but not supported should report exactly that, not hand back garbage. An encrypted entry should ask for a password, not fail with a confusing checksum error. Most of the trust in a tool like this comes from what it does at the edge of what it knows.
I will not pretend this is glamorous. Nobody is going to share a screenshot of a three-part ZIP opening correctly. But I have come to think that is exactly the point. If "it opens" is the whole experience, then every one of those unglamorous cases did its job without being noticed, and the folder in Downloads, with its three numbered parts, becomes a folder of files.
Peel is free for macOS 13 or later. Get Peel, or install it with brew install --cask snackstudio/tap/peel.
Next in the series: Building a password-recovery feature that refuses to lie