ZAR
Rust archive format and toolkit with parallel zstd compression, commit-based history, deduplication, random access, FUSE mounting, and an MCP server.
At a Glance
ZAR core archive format and toolkit (CLI, GUI, library, MCP server) licensed under MIT OR Apache-2.0.
Engagement
Available On
Alternatives
Listed Dec 2026
About ZAR
ZAR is an open-source archive format and toolkit written in Rust by brmmm3. It is positioned as a replacement for tar, zip, and 7z, with parallel Zstandard compression, random access, commit-based history, deduplication, and read-only mounting. It ships as a CLI (zarc), a desktop GUI (zarg), a Rust library (zarlib), language bindings, a network copy tool, a mount tool, and an MCP server. The latest release listed is 0.19.0.
What It Is
ZAR creates .zar archives made of a container header followed by commits. Each commit holds compressed data blocks and a header describing additions, updates, removals, or metadata. Users create archives from files and directories, inspect them, add changes, verify checksums, and extract the current state or an earlier commit.
History, Integrity, and Security
Updates are recorded as commits, so earlier states stay available until commits are removed or compacted with join. Every frame is checksummed, and check --recover scans past damaged regions and reports gaps. Optional authenticated encryption uses AES-256-GCM or ChaCha20-Poly1305 with Argon2id key derivation, and can cover data, headers, or both, with per-commit passwords. Extraction is restricted to the destination and avoids path traversal.
Tools and Interfaces
- zarc: command line for create, add, remove, list, grep, check, extract, convert, and metadata.
- zarg: egui desktop manager for browsing commits, searching, and restoring selected versions.
- zarmount: read-only mounts through FUSE on Linux (the homepage also lists ProjFS on Windows).
- zcopy: one-way network copy of file trees as compressed, optionally encrypted ZAR batches.
- zarmcp: local MCP tools for AI clients to inspect, read, and manage archives, with read-only and tool-allowlist modes.
Search, Import, and Bindings
zarc grep searches archived text in parallel with filename filters, regular expressions, and context lines, without extracting. ZIP, 7z, RAR, ISO, TAR, and gzip files can be extracted or imported, with documented limits such as no encrypted ZIP/7z/RAR support. Bindings cover Python, C, C++, Go, Java, C#, Lua, and WebAssembly/Node.js. The README includes benchmark reports against zip, 7z, tar, and tar.gz and notes that results depend on hardware and data, and that some 7z configurations produce smaller archives.
Collections
Popular collections
- See What Your Agent Is Doing remix
Collection by @joemseifi
- Let Your AI Read the Document, Not Just the Words
Collection by @priyashah
- Local-First Databases
Collection by @joemseifi
- Charts, Graphs, and Diagrams
Collection by @joemseifi
Add ZAR to one of your collections.
Community Discussions
Be the first to start a conversation about ZAR
Share your experience with ZAR, ask questions, or help others learn from your insights.
Pricing
Open Source
ZAR core archive format and toolkit (CLI, GUI, library, MCP server) licensed under MIT OR Apache-2.0.
- Licensed under MIT OR Apache-2.0
- zarc CLI
- zarg desktop GUI
- zarlib Rust library with language bindings
- zarmount read-only FUSE/ProjFS mounting
Capabilities
Key Features
- Parallel block-based Zstandard compression
- Random access to individual files
- Commit-based updates with history and compaction
- Block deduplication within a commit
- Authenticated encryption with per-commit passwords
- Checksums and damage recovery scan
- Safe extraction with path validation
- Search archived text without extracting
- Read-only FUSE/ProjFS mounting
- ZIP, 7z, RAR, ISO, TAR, and gzip import and extraction
- Batch archive conversion
- Custom archive metadata
- Streaming read and write APIs
- Network copy tool (zcopy)
- MCP server with read-only and allowlist modes
- Language bindings for Python, C, C++, Go, Java, C#, Lua, WASI
