I made Scissor Zip, a set of archive tools that run in the browser tab: https://zip.scissor.studio. It zips files, adds AES-256 passwords, opens RAR, 7z and tar.gz, and converts between formats, with libarchive compiled to WebAssembly doing the work on your device.
The engine
The engine is libarchive 3.8.10, the library behind bsdtar, built with Emscripten together with the compression libraries it needs:
- zlib 1.3.2 (zlib licence)
- bzip2 1.0.8 (BSD-style)
- XZ Utils 5.8.4, liblzma only (0BSD)
- Zstandard 1.5.7 (BSD-3-Clause)
- LZ4 1.10.0 (BSD-2-Clause)
- Mbed TLS 3.6.5 (Apache-2.0), for the AES-256 encryption of password-protected zips
A small C file in front of libarchive exposes about twenty functions: open a buffer, step through entries, read one, write a new archive. The result is archive.wasm at 1.16 MB, about 324 KB with Brotli, plus a 67 KB JavaScript loader. It runs in a module worker, so a 500 MB archive does not freeze the page.
All of that is permissive licensing, and the licences page lists each component with its full text in a notices file next to the engine.
RAR, and what that means for licences
RAR is the part people ask about. libarchive reads RAR and RAR5 with its own code: archive_read_support_format_rar.c (Andres Mejia) and archive_read_support_format_rar5.c (Grzegorz Antoniak), both under the BSD 2-Clause licence. No RARLAB UnRAR source is involved, so there is no UnRAR licence to carry.
That also sets the limits. libarchive can read RAR but not write it, and RAR is a closed format that only WinRAR may create. So Scissor Zip extracts RAR and converts it to zip, 7z or tar, but never makes a .rar. Encrypted RAR and 7z archives do not open yet; the page says so instead of failing quietly.
Multi-part RAR archives (name.part1.rar, name.part2.rar, ...) work when you choose all the parts together. Each part has its own headers, so they cannot simply be joined. The C side gives libarchive one buffer per volume with archive_read_append_callback_data, plus read, seek and switch callbacks, and libarchive moves from part to part itself. Split 7z and zip archives (.001, .002, ...) are just bytes cut into pieces, so those parts are joined into one File in JavaScript before the engine sees them.
Telling a cut-short file from a broken engine
Big archives on phones are often incomplete: an interrupted download, or only the first part of a split set. libarchive reports that as "Seek error" or "Malformed 7-Zip archive", which used to reach the visitor as "the engine stopped". A 7z file says in its first 32 bytes how long it should be, so the worker checks that before reading the rest:
const head = new DataView((await readBytes(file, 0, 32)).buffer); const want = 32 + Number(head.getBigUint64(12, true)) + Number(head.getBigUint64(20, true)); if (want > file.size) throw new Error(`PARTIAL: ${file.size}/${want}`); The page then says the archive is incomplete, with both sizes, instead of blaming itself.
How the files stay on the device
The browser reads the chosen file with file.arrayBuffer(), copies it into the WebAssembly heap, and the result goes back as a Blob download. Our servers have no endpoint for your archives. The Content Security Policy only lets the page connect to its own origin, plus Google's sign-in and Drive services for the optional Google Drive open and save. The Drive scope is drive.file, so the site sees only files you open or save with it, and the Network tab in developer tools shows the rest.
Error reports carry a code such as ENGINE or MEMORY. When the code alone does not explain the error, the wording goes along too, but anything that looks like a file name or path is removed first.
A service worker keeps the pages and the engine, so a tool you have opened once works without a connection.
The limit: memory
Everything happens in the tab's memory. The archive is read into the WebAssembly heap, which can grow to 4 GB, and creating or converting holds the input and the new archive at the same time. Every out-of-memory report so far came from archives over 1 GB on desktop browsers, so the page now warns from 1 GB and suggests splitting. Streaming files through the engine in chunks would raise that ceiling, and it is the next big change I would like to make.
Try it
Try it: https://zip.scissor.studio
It is free, with no account and no ads, in 30 languages. There is also an archive explorer at /app/ that opens several archives side by side, previews images and text, and lets you add, rename or delete files before saving as zip, 7z or tar.
If you have an archive it fails to open, I would like to know the format and the tool that made it.


