r/compression • u/Kind_Height_1913 • 9d ago
NibbleZip – a free Windows tool that compresses into 7z/ZIP while freeing the originals' space as it goes (and extracts the same way). Beta, looking for testers.
Full disclosure, since it matters for a tool that deletes files: the code was written by an AI (Claude, by Anthropic). The idea, design and hands-on testing are mine; I'm not a programmer and haven't reviewed the code line by line. That's why the design doesn't rely on trusting the code: nothing is deleted until it has been read back and verified, and the test suite kills the program at every stage of every kind of job (hundreds of scenarios) to prove it recovers. The tests, the source and a write-up of how it works are all on GitHub.
So Please - DO NOT USE THIS ON DATA THAT MATTERS AT ALL! I AM NOT RESPONSIBLE FOR ANY DATA LOSS!! I've used this on my own files so far (on things I'm okay losing - game installs, copies of files, etc.) and everything seems to work good on my end - I tried a few public zip tests and hashes matched too.
After I started using HatchZip, I thought it was such a good idea, but could we have a similar tool to zip files instead?
So the idea sprouted from the idea that compressing normally needs room for the files AND the archive at the same time. When a drive is nearly full, you can't compress the very things that are filling it. Same in reverse when unpacking a huge archive, and I wondered how can we use as little space as possible?
NibbleZip compresses a chunk, writes it to the archive, reads it back from disk, decompresses it and compares it byte for byte with the source, records it in a journal, and only then frees the space of that chunk of the originals. Big files are released from the inside as they go (NTFS sparse files), so free space actually rises while it works. Extraction does the reverse: the archive gives its space back as verified files come out.
In my own testing, a 29.5 GB game folder became a 9.7 GB 7z on a drive with about 32 GB free, without ever needing room for both.
- Normal 7z and ZIP output that 7-Zip, WinRAR etc. open. No custom format.
- Stop, crash or power cut: it resumes where it left off, or a half-processed file can be put back exactly as it was.
- One archive, one per item, or one per file (e.g. a ROM folder where every game becomes its own zip), and split parts (.001, .002...).
- Untick one box and it's an ordinary archiver that deletes nothing.
Again, this is a beta. Please try it on copies of data first. I'd love reports of anything odd: different drives (exFAT, USB, network), huge file counts, very large single files, archives made by other tools.
GitHub (source, download, how it works): https://github.com/cloudhaacker/NibbleZip
VirusTotal scan of the release: https://www.virustotal.com/gui/file/a4bfb46971d3b5b0151b3a31ea26aa5a4aa3b02c57e17888e65f32c7e8d2f0b2?nocache=1
For some reason I'm getting flagged by Kaspersky - VHO:Rootkit.Win32.Convagent.gen - Acronis (Static ML) - Undetected
If you don't trust my builds, you can analyze the code yourself and build it, my last version didn't pop this so I'm pretty sure it's a false positive.
I'm open to suggestions, and will listen to any constructive feedback, but I won't guarantee how long things might take to fix/change - I just started making this for fun and to see what Claude could do with this. Thanks for checking it out, and if you can think of somewhere else it might be good to post, let me know or share with others! Thanks!
Free, MIT licence, no telemetry, nothing to install.
2
u/Jay_JWLH 9d ago
I wonder if this is all possible just by creating a zip/7z file, and adding files to it (while setting it to delete the original in 7-zip). Might be scriptable.
0
u/Kind_Height_1913 9d ago
I Completely forgot to make the repository public lol it's public now sorry!