Feature · beta

Pruned archives

Lossless shared-part archives for Office document collections. Because .docx, .xlsx, and .pptx files are already ZIP-compressed, standard ZIP barely shrinks a folder of them. In a sample benchmark of 253 Word documents (17.29 MB), zstd+prune cut the archive to 8.62 MB (50% savings) versus 16.30 MB with plain zstd.

  • Store fonts, styles, themes, and images shared across Office documents once — rebuild every file byte-for-byte on extract.
  • In a sample benchmark of 253 Microsoft Word (.docx) documents (17.29 MB), zstd+prune produced an 8.62 MB archive (50% savings) vs 16.30 MB plain zstd.
  • Timestamp and tokenize pruned archives the same way as regular .nzip (neozip-prune 0.6.0).

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.

MethodArchiveCmprCompressTestUnzip
deflate16.44 MB5%1.15 s (15 MB/s)0.52 s0.93 s
zstd16.30 MB6%3.05 s (5.66 MB/s)0.35 s0.54 s
deflate+prune8.71 MB50%0.40 s (42.85 MB/s)0.21 s0.30 s
zstd+prune · best8.62 MB50%1.11 s (15.61 MB/s)0.18 s0.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.

MethodArchiveCmprCompressTestUnzip
deflate7.90 MB10%0.70 s (12.45 MB/s)0.34 s0.52 s
zstd7.71 MB12%2.60 s (3.38 MB/s)0.27 s0.39 s
deflate+prune6.94 MB21%0.40 s (22.13 MB/s)0.19 s0.27 s
zstd+prune · best6.74 MB23%0.88 s (9.95 MB/s)0.17 s0.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.

MethodArchiveCmprCompressTestUnzip
deflate1.10 MB3%0.24 s (4.76 MB/s)0.17 s0.20 s
zstd1.10 MB3%0.31 s (3.62 MB/s)0.16 s0.18 s
deflate+prune1.10 MB3%0.11 s (10.05 MB/s)0.15 s0.16 s
zstd+prune · best1.10 MB3%0.15 s (7.29 MB/s)0.15 s0.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

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.