How it works
Shared parts once
Office containers (.docx, .xlsx, .pptx, and related) repeat fonts, styles, themes, and images. Prune matches those parts by type and CRC-32 (confirmed by SHA-256) and stores each shared part once under META-INF/PRUNE/ITEMS/ using the PRUNE-ITEM compression method.
Document recipes
Each document is stored with the PRUNE compression method and a NEO_PRUNE_METHOD extra field recording the underlying codec (Store, Deflate, or Zstd). META-INF/PRUNE.NZIP holds the Pruned Data Table. PDFs are stored whole for now (PDF stream pruning is off).
Lossless restore
Plain neozip extract, Desktop extract, and MCP extract/test rebuild every file byte-for-byte. Stock unzip lists the archive but refuses PRUNE and PRUNE-ITEM entries.
Wire rules: NeoZip Application Note 0.5.0.
Compression results
To illustrate what pruning achieves on a realistic folder of Microsoft Word documents, we benchmarked a sample corpus of 253 public-domain 2025 Florida session-law chapters formatted as standard Microsoft Word (.docx) documents that share a common template — alongside the same files re-saved from Microsoft Word and a small folder of unrelated Office documents as a baseline. Best method per dataset is highlighted.
Sample Word corpus — 253 DOCX chapters (shared template)
253 files · 17.29 MB input — Public-domain 2025 Florida session-law chapters exported as .docx files — a representative real-world folder of standard Word documents built from a shared template.
| Method | Archive | Cmpr | Compress | Test | Unzip |
|---|---|---|---|---|---|
| deflate | 16.44 MB | 5% | 1.15 s (15 MB/s) | 0.52 s | 0.93 s |
| zstd | 16.30 MB | 6% | 3.05 s (5.66 MB/s) | 0.35 s | 0.54 s |
| deflate+prune | 8.71 MB | 50% | 0.40 s (42.85 MB/s) | 0.21 s | 0.30 s |
| zstd+prune · best | 8.62 MB | 50% | 1.11 s (15.61 MB/s) | 0.18 s | 0.28 s |
Same 253 DOCX chapters re-saved from Microsoft Word
253 files · 8.77 MB input — The same 253 documents after Word Save As DOCX — leaner per-file XML and less repeated structure, showing a more modest ~23% reduction.
| Method | Archive | Cmpr | Compress | Test | Unzip |
|---|---|---|---|---|---|
| deflate | 7.90 MB | 10% | 0.70 s (12.45 MB/s) | 0.34 s | 0.52 s |
| zstd | 7.71 MB | 12% | 2.60 s (3.38 MB/s) | 0.27 s | 0.39 s |
| deflate+prune | 6.94 MB | 21% | 0.40 s (22.13 MB/s) | 0.19 s | 0.27 s |
| zstd+prune · best | 6.74 MB | 23% | 0.88 s (9.95 MB/s) | 0.17 s | 0.26 s |
Mixed Office samples (baseline)
15 files · 1.13 MB input — Small folder of unrelated Office files with little repeated structure — prune stays near plain ZIP.
| Method | Archive | Cmpr | Compress | Test | Unzip |
|---|---|---|---|---|---|
| deflate | 1.10 MB | 3% | 0.24 s (4.76 MB/s) | 0.17 s | 0.20 s |
| zstd | 1.10 MB | 3% | 0.31 s (3.62 MB/s) | 0.16 s | 0.18 s |
| deflate+prune | 1.10 MB | 3% | 0.11 s (10.05 MB/s) | 0.15 s | 0.16 s |
| zstd+prune · best | 1.10 MB | 3% | 0.15 s (7.29 MB/s) | 0.15 s | 0.15 s |
Methodology
- Source: neozip-cli compression bench REPORT.md, generated 2026-11-21.
- Host: darwin/arm64, Node v22.23.4. Level 9 for deflate / zstd / prune plain leftovers.
- Prune create used --no-verify so compress time excludes the post-create restore check; verify timed separately as test.
- Test / unzip used neozip extract (auto-rebuilds PRUNE entries). Times include CLI process start-up.
- Cmpr = round((1 − archive/input) × 100), floored at 0 — same formula as neozip list.
Full write-up: Pruned Archives Cut a Word Document Corpus Nearly in Half.
Desktop, CLI & MCP
NeoZip Desktop
Create Archive → Archive type Pruned (always .nzip). Open, verify, and extract with rebuild. Timestamp and tokenize use the same buttons as standard archives.
NeoZip CLI
neozip prune analyze|create|extract|verify|info. Compare with neozip benchmark. Add -ts or -b on create for Token Service proofs.
NeoZip MCP
prune_analyze, prune_create (optional timestamp/tokenize), prune_info. extract / test / read_entry rebuild when META-INF/PRUNE.NZIP is present.
Timestamp & tokenize
With neozip-prune 0.6.0, pruned archives support the same Token Service flows as regular .nzip files. The Merkle root is the standard APPNOTE v1 root over each file's rebuilt bytes — equal to a standard ZIP of the same files. Proof sidecars are appended in place (no recompression). CLI: neozip prune create -ts / -b. MCP: prune_create options plus stamp / mint / verify. Desktop uses the same Timestamped / Tokenized buttons.
Beta notes
- Prune remains beta — flags and JSON shapes may change before a stable 2.0 line.
- PDFs are stored whole until stream pruning is ready.
- Desktop cannot edit or encrypt pruned archives (rewriting would drop rebuild payloads).
- Archives from the older neozip-prune 0.1.0 era (MCP 0.9.0-beta) cannot be read by 0.5.0+ tools — extract with the old build and prune_create again.
- Wire format is APPNOTE 0.5.0; neozip-prune 0.6.0 adds in-place proof sidecars without changing that wire format.
Try prune
Desktop 1.9.0-beta.1, CLI 1.98.0, and MCP 0.9.6-beta ship pruned archives across the NeoZip stack.