Developers
Peel’s archive engine without the app: a Rust library, the peel command line, an MCP server and a C library, for reading, creating and recovering archives safely from your own code.
Start here
The quickest way in is the peel command. On a Mac, the install script verifies the download’s checksum and installs the notarized tool from the latest Peel release:
curl -fsSL https://filesunwrapped.com/developers/install.sh | sh
peel inspect archive.zip -j| Today | What |
|---|---|
| Available | The peel CLI and peel mcp on macOS, through the install script or inside the Peel app. |
| Restricted | The Rust library and the C library. The source is private and peel-core is not on crates.io, so both need access to the repository. |
| Planned | Rind’s own downloads: the Homebrew formula, Linux builds and prebuilt C libraries. Linux and Windows are not built or tested yet. |
What Rind is
Rind is Peel with the app peeled away: the archive engine on its own, ready to build on. It is not a separate codebase. It is the engine that already runs inside Peel for Mac, offered in four forms so a CMS, a batch job, an on-device tool or a backend that speaks MCP can read, inspect, create and recover archives without writing its own unzip.
A host gets one archive layer for dozens of formats, including ones that are ZIP underneath: EPUB, Office files, OpenDocument, iWork, Sketch, USDZ, 3MF and comic books. peel formats -j prints exactly what each format supports, and the formats support matrix lays it out with the caveats.
The four surfaces
Library
The Rust crate peel-core. The whole lifecycle as typed functions.
CLI
The peel command. Every command can print JSON.
MCP
peel mcp: tools for any MCP client, with writes confined to roots.
C library
libpeel_ffi and peel.h: 37 functions, JSON strings across the boundary.
Guides
Task by task, each with the CLI, the Rust library and the C library side by side, and terminal output recorded from a real peel.
Inspect and read
Look inside without extracting, and read one member to memory.
inspect · list · catExtract safely
Destinations, collisions, passwords and the checks that refuse hostile names.
extractCreate archives
Every writable format, levels, AES-256 and split volumes.
create · edit · solidifyRecover and repair
Assess a locked archive, find originals, salvage damage, repair with PAR2.
assess · salvage · repairScripts and CI
JSON, exit codes, progress events and archives tested in CI.
-j · exit codesEmbed in Swift
Call the C library from Swift the way the Peel app does.
peel.h · SwiftAgents over MCP
Give an MCP client archive tools, with writes confined to roots.
peel mcpFor how it fits together, read Architecture, the Safety model and Performance.
Which surface when
| Your host is | Use | Why |
|---|---|---|
| A Rust program | Library | Typed results, no process or JSON hop, cancellation and progress hooks, an open-once session. |
| A native program in C, C++, Swift, Python, Go or Node | C library | In-process and fast. Strings are JSON; bytes come back as a buffer. This is how the Mac app itself calls the engine. |
| A script, a CI job or a service in any language | CLI | No build integration. Run peel, read JSON, branch on the exit code. |
| An MCP client or agent runtime | MCP | Tools with schemas. Reads work anywhere the process can read; writes stay inside the roots you grant. |
If you are unsure, start with the CLI: peel inspect archive.zip -j gives you the same manifest the library returns, and you can move to the library or the C library later without changing what you learned about the data.
What you get
- Understand without extracting. Detect the real format, then
inspectorlistthe contents as data. Per-entry size, compressed size, type, and, where the format records them, mode, modified time, owner, symlink target, compression method and CRC-32. - Read one member. Pull a cover image or a manifest out of an archive without unpacking the rest, from a path or into memory, with a size cap.
- Extract safely. The whole archive or a selection, under a policy for collisions and enclosing folders.
- Create. ZIP, 7z (library and CLI), tar and compressed tar, and single-stream gz, bz2, xz and zst, with AES-256 passwords for ZIP and 7z and split volumes.
- Verify and recover. Test every entry, assess a locked archive, salvage what a damaged ZIP or tar still holds, repair against PAR2, and open ZipCrypto ZIPs from a copy of a file you still have.
Safe on untrusted input
Rind is built to open hostile files. Every extraction goes through the same checks, on every surface:
- Path containment. Names with
../, backslashes, absolute paths and drive prefixes are refused or sanitised, and the finished tree is asserted to sit inside the destination. - Decompression-bomb limits and a resource budget. An archive that unpacks to more than it declares is stopped, and sizes are checked against free space first.
- Symlinks cannot redirect a write outside the destination.
- Clean failure. A failed or cancelled extract leaves nothing behind. Cancellation is polled during the copy.
- Passwords are handled as secrets: copied once, wiped after use, and never read from the environment by the newer calls.
A host that embeds Rind inherits these checks instead of hand-rolling a safe unzip.
Errors
On the CLI, the C library and the Rust library, a failure has a stable kind and a free-text detail. The CLI prints it as JSON on stderr with -j and exits with a matching code, the C library returns it as a JSON object, and the library exposes it as ErrorKind. MCP returns a tool error with a plain message. Branch on the kind, log the detail. Errors and exit codes lists every kind.
Status and limits
- Platform. Rind is built and tested on macOS. The macOS-specific code is gated so the engine is structured to compile elsewhere, but other platforms are not yet built or tested. Treat Linux and Windows as unsupported for now.
- The source is private. Peel is proprietary and
peel-coreis not on crates.io. The CLI is available as a binary, and embedding the Rust library as a dependency needs access to the repository. See Install. - The MCP server covers the CLI's read, recover and write commands. It is a stdio server only.
- Not a format-conversion tool. Rind does the archive; your host does the pixels, the pages and the text inside.
Questions or something missing? Email hello@snackstud.io.