Fast, hardware-accelerated archiver for Windows built with Tauri 2, Rust, and React.
π What's New in v3.0.0 β’ β‘ Key Features β’ πΎ I/O Calibration β’ π Security & Cryptography β’ πͺ Shell Extension β’ π Supported Formats β’ π§ͺ Test Report β’ π Quick Start β’ π Changelog
Bayzip v3.0.0 introduces a ground-up Multi-Core, Storage-Aware Extraction Architecture across six engineering phases alongside an upgraded RFC 8878 Seekable .bay / .bayg Container Format:
- Multi-Frame Seekable
.bay/.baygContainer & Parallel Zstd Unpacking (compressor/bay.rs,inspector/bay.rs,extractor/bay.rs):- Unencrypted Zstandard archives now emit independent seekable Zstd frames (
8 MBframes for.baygGamer Preset;16 MBframes for.bay) indexed by an RFC 8878 Seek Table skippable frame (0x184D2A5E/0x8F92EAB1) directly ahead of the instantBAYTOC\x02\x00trailer. ParallelSeekableZstdReaderdecodes frames concurrently across2β8zstd::bulk::Decompressorworkers inside a bounded96 MBsliding window with recycled buffers, using independentopen_random_readhandles on SSDs/NVMe and serialized sequential reads on spinning HDDs/USB drives across single-frame and seekableBAYZIP\x02\x00containers as well asBAYENC\x04\x00(Argon2id+AES-256-GCM) encrypted archives.
- Unencrypted Zstandard archives now emit independent seekable Zstd frames (
- Storage-Aware Win32 NTFS I/O &
AsyncFileWriterPool(inspector/hardware.rs,extractor/io.rs,extractor/mod.rs):- Queries both
STORAGE_BUS_TYPEandStorageDeviceSeekPenaltyProperty(PropertyId = 7) viaIOCTL_STORAGE_QUERY_PROPERTYto distinguish NVMe SSDs, SATA SSDs, spinning HDDs, and USB flash drives. - Applies Win32
FILE_FLAG_SEQUENTIAL_SCAN/FILE_FLAG_RANDOM_ACCESShints, NTFSFileAllocationInfopreallocation for files>= 64 KB,DirectoryCacheancestor tracking to eliminate redundantcreate_dir_allsyscalls, and a byte-budgetedAsyncFileWriterPool(16β48 MBin-flight cap) with per-workerScopedPriorityGuardand deterministicabort_and_join()rollback cleanup.
- Queries both
- Parallel Multi-Core
.zipExtraction & SIMDzlib-rs(Cargo.toml,extractor/zip.rs):- Switched
flate2tozlib-rsSIMD hardware acceleration and enabledzipdeflate-flate2. - Added zero-seek Pass 1 central-directory planning (
name_for_index), case-insensitive duplicate conflict resolution (last-wins), per-workeropen_random_readhandles (2β8NVMe /2β6SATA SSD / sequential HDD & USB), and Zip-Bombeof_checkguards.
- Switched
- Zero-Double-Buffer Pipelined
.bayExtraction & Async AES Read-Ahead (extractor/bay.rs,priority.rs,tester.rs):- Eliminated double buffering via
zstd::stream::Decoder::with_bufferand addedPipedAesBufReader(8 Γ 512 KBzeroized ring buffers) to overlap AES-256-GCM decryption on a read-ahead thread with Zstd decompression and async file writes, plus boundedlocate_bay_payload_endframing forBAYTOCtrailers.
- Eliminated double buffering via
- Multi-Block Parallel
.7z& Native SIMD.tar/.tar.gz/.tar.zst(extractor/sevenz.rs,extractor/tar.rs,extractor/mod.rs):- Added Longest-Processing-Time parallel
.7zblock workers (open_random_read) governed by storage seek-penalty limits and a512 MB(SEVENZ_MAX_CONCURRENT_DICT_BYTES) dictionary RAM ceiling,Lzma2ReaderMt+AsyncFileWriterPoolfor solid blocks, cross-block duplicate serialization, and stream-aligneddrain_7z_entryskipping. - Routed
.tar, multi-memberpigz/.tar.gz(MultiGzDecoderviazlib-rsSIMD), and multi-frame.tar.zstthrough a native streaming Rust extractor withDirectoryCache,AsyncFileWriterPool, and single-passhoist_single_root_dir.
- Added Longest-Processing-Time parallel
- Single-Pass Cancellable System
tar.exeInspection (extractor/system_tar.rs):- Replaced three sequential
tar.exepre-scans with a single cancellable streamingtar.exe -tvfpass and fail-closedparse_bsdtar_tvf_lineparser (rejecting symlinks, hardlinks, FIFOs, sockets, and device nodes mid-stream) plus fastDirectoryCachestaged finalization.
- Replaced three sequential
- Expanded Verification:
- Automated workspace Rust test suite expanded through v3.0.3 Phase 2 Crypto v4 (
Argon2id+AES-256-GCM) & legacy format purge to 103 unit tests (102bayzip_lib+1bayzip_shell,103/103 passing), verified alongside0workspace Clippy warnings and0TypeScript errors.
- Automated workspace Rust test suite expanded through v3.0.3 Phase 2 Crypto v4 (
| Feature | Description | Architecture Component |
|---|---|---|
| β‘ Multi-Core Seekable Extraction Engine (v3.0.0) | Parallel Zstd .bay/.bayg frames, multi-core SIMD zlib-rs .zip, multi-block .7z + LZMA2-MT, native .tar/.tar.gz/.tar.zst, and async Win32 NTFS writer pools. |
extractor/, compressor/bay.rs
|
| π‘οΈ In-Place Archive Integrity & CRC-32 Tester | High-throughput zero-disk-write stream verification engine validating container parity, CRC-32 checksums, and encrypted blocks with live UI telemetry. | tester.rs |
ποΈ Ultra-Fast Gamer Preset (.bayg) |
Locked at Zstandard Level 3 with 8 MB seekable frames for maximum multi-core game installation, repack, and transfer throughput. |
compressor/bay.rs, extractor/bay.rs
|
| π‘οΈ Zip-Slip & Path Traversal Proof | Multi-layer sanitization rejecting directory escapes (..), DOS device aliases (CLOCK$, CONFIG$, CON), NTFS ADS colons, illegal characters, and external link/device entries. |
inspector/mod.rs, extractor/system_tar.rs
|
| β‘ 100k-File Virtualized UI | Silky 60 FPS scrolling and |
VirtualScrollList.tsx |
| π Streaming Chunked AEAD Encryption | 4 MB chunked AES-256-GCM streaming with async read-ahead ring pipeline (PipedAesBufReader), constant < 100 MB RAM footprint, and cryptographic EOF truncation detection. |
crypto.rs, extractor/bay.rs
|
| πͺ Windows 11 Native Context Menu | In-process Win32 COM DLL (IExplorerCommand) top-level menu integration with MSIX Sparse Package identity and verified binary resolution. |
bayzip_shell.dll |
| πΎ Storage Bus & Seek-Penalty Calibration | Win32 IOCTL detection (STORAGE_BUS_TYPE + StorageDeviceSeekPenaltyProperty) scaling thread counts, NTFS preallocation, and buffers across NVMe, SATA SSD, HDD, and USB. |
inspector/hardware.rs, extractor/io.rs
|
- High-Throughput Zero-Disk-Write Verification (
src-tauri/src/tester.rs):- Validates container parity and entry checksums by streaming decompressed payloads directly into an in-memory discard sink (
std::io::sink()) with zero disk writes. - Multi-container integrity checking for
.bay,.bayg,.zip(rolling CRC-32 vs central directory headers),.7z(folder block decoding and CRC validation),.tar.*(block header checksums and delegated.xz/.bz2/.iso/.cabhandling), full.baystream EOF verification, and full payload streaming viatar.exe -xvf -Ofor systemtar.exefallback formats. - Runs inside
tauri::async_runtime::spawn_blockingprotected byScopedPriorityGuard(THREAD_PRIORITY_BELOW_NORMAL) ensuring smooth system and gaming performance. - Real-time cancellation (
cancel_test_archive/CANCEL_TEST) and ~40ms throttled progress event emitter (test_progress).
- Validates container parity and entry checksums by streaming decompressed payloads directly into an in-memory discard sink (
- In-Place UI Telemetry & Verification Indicators (
ArchiveTreeInspector.tsx):2pxSky Blue (#38BDF8) live stream line along the top edge of the footer status bar with active file, percentage, throughput telemetry, and inline[ Cancel ]button.- Flashes emerald green
β Stream Verified 100% OK (X items, 0 CRC errors)on completion. - Displays persistent
β OKbadges on verified archive rows.
- Zero-Scroll Main Window Architecture (
App.tsx):- Desktop-native layout locked to
h-screen overflow-hidden flex flex-col bg-[#141416]β the main chrome never scrolls; only the inner file viewer scrolls. - Neutral dark zinc/graphite palette (
#141416/#1C1C1F) with crisp1px solid #2E2E34borders and#38BDF8sky blue interactive accents.
- Desktop-native layout locked to
- Unified Top Ribbon Toolbar:
- Single streamlined action bar with contextual sky-blue primary button states (
[ π¦ Compress... ]when staging files;[ π€ Extract... ]when opening archives).
- Single streamlined action bar with contextual sky-blue primary button states (
- Keka-Style Compact Popup Dialogs with Live Streaming Morph:
- Completely eliminated
backdrop-blurand heavy window overlays; dialogs stay neatly contained within the File Viewer bounds. - Compact
CompressModalwith notched hardware slider (Store,Fast,Balanced,High,Ultra) and archive format dropdowns. - Smoothly morphs upon action into a Live Streaming Progress View showing throughput, ETA, streamed bytes, current item, and minimize-to-footer option.
- Completely eliminated
- High-Performance Archive Directory Inspector (
ArchiveTreeInspector.tsx):- Direct, fast tree & list view of loaded archive contents with instant folder hierarchy navigation.
- Interactive parent navigation (
..) and clickable breadcrumb navigation (π¦ root / folder / subfolder). - Real-time search and filter input with instantaneous filename matching.
- In-memory file content preview modal (
FilePreviewModal.tsx) for images, text, and code files. - Selective extraction: include/exclude specific files and subfolders with 1-click checkboxes.
- Password-protected archive unlock banner for encrypted archives.
- Standalone VirtualScrollList (
VirtualScrollList.tsx):- Reusable, generic virtual scroll list component handling 100,000+ files at smooth 60 FPS with
requestAnimationFramescroll debouncing.
- Reusable, generic virtual scroll list component handling 100,000+ files at smooth 60 FPS with
- Focused Compression & Extraction Workflows:
- Clean separation: fast archive creation (drop files, format presets, multi-core slider, encryption) and fast extraction (open, inspect, extract).
- Zero-CPU Dynamic Store Mode (
zip::CompressionMethod::Stored) [ZIP & TAR]:- Automatically identifies pre-compressed video, audio, image, and archive formats (
.mp4,.mkv,.avi,.mov,.wmv,.mp3,.flac,.ogg,.opus,.aac,.jpg,.jpeg,.png,.webp,.avif,.gif,.zip,.7z,.rar,.gz,.bz2,.xz,.zst,.docx,.xlsx,.pptx,.apk,.vpk,.pak,.iso). - Directly streams already-compressed files uncompressed in Store mode, completely bypassing CPU compression loops.
- Saturates PCIe Gen4/Gen5 NVMe read/write speeds (1,000β3,000+ MB/s), archiving media directories and downloads in seconds instead of minutes.
- Highly compressible assets (
.txt,.json,.xml,.exe,.dll, source code) remain fully compressed with multi-threaded Deflate for maximum space reduction.
- Automatically identifies pre-compressed video, audio, image, and archive formats (
Bayzip inspects physical drive characteristics via Win32 IOCTL (IOCTL_STORAGE_QUERY_PROPERTY) for both STORAGE_BUS_TYPE and StorageDeviceSeekPenaltyProperty (PropertyId = 7) to calibrate read slices, write buffers, NTFS FileAllocationInfo preallocation (>= 64 KB), and parallel extraction concurrency to the exact drive profile:
flowchart TD
Drive[Target Drive Path] --> Query["Win32 IOCTL Query (IOCTL_STORAGE_QUERY_PROPERTY + SeekPenalty)"]
subgraph Bus Detection ["Bus & Seek-Penalty Detection"]
Query --> Detect{STORAGE_BUS_TYPE & SeekPenalty}
Detect -->|BusTypeUsb| USB["External USB Flash (BusTypeUsb)"]
Detect -->|BusTypeSata HDD| SATA_HDD["Internal SATA HDD (SeekPenalty = true)"]
Detect -->|BusTypeSata SSD| SATA_SSD["Internal SATA SSD (SeekPenalty = false)"]
Detect -->|BusTypeNvme| NVME["PCIe M.2 NVMe SSD (BusTypeNvme)"]
Detect -->|Network / UNC / Unknown| NET["Network Share / Remote (DRIVE_REMOTE)"]
end
subgraph Read Slicing ["Read Slice & Extract Chunk"]
USB --> R_USB["256 KB Read Slice<br/>1 Writer | 16 MB In-Flight"]
SATA_HDD --> R_HDD["512 KB Read Slice<br/>1 Writer | 16 MB In-Flight"]
SATA_SSD --> R_SSD["512 KB Read Slice<br/>2-4 Writers | 32 MB In-Flight"]
NVME --> R_NVME["1 MB Read Slice<br/>2-6 Writers | 48 MB In-Flight"]
NET --> R_NET["256 KB Read Slice<br/>1 Writer | 16 MB In-Flight"]
end
subgraph Safe Buffer Capping ["Destination Write Capping (BufWriter)"]
USB --> W_USB["512 KB Safe Cap<br/>(Prevents RAW Disks & Quick-Removal Freezes)"]
SATA_HDD --> W_HDD["1 MB Safe Cap<br/>(Sequential Writers Prevent Platter Thrashing)"]
SATA_SSD --> W_SSD["1 MB Calibrated Cap<br/>(Balanced SSD Queue & MFT Scaling)"]
NVME --> W_NVME["2 MB Calibrated Cap<br/>(Flushes in 1β2 ms; Zero NVMe Queue Stalls)"]
NET --> W_NET["512 KB Safe Cap<br/>(Prevents Packet Queue Overflows)"]
end
| Storage Medium | Bus / Seek Profile | Read Slice | Write Buffer Cap | Extract Writers / In-Flight Budget | Core Hardware Safeguard |
|---|---|---|---|---|---|
| Internal PCIe NVMe SSD (M.2) | BusTypeNvme / No Seek |
1 MB | 2 MB | 2β6 writers (2β8 ZIP/7z/.bay workers) / 48 MB |
Maximum PCIe line rate without NTFS $MFT lock convoys |
| Internal SATA SSD | BusTypeSata / No Seek |
512 KB | 1 MB | 2β4 writers (2β6 ZIP/7z/.bay workers) / 32 MB |
Multi-queue SSD extraction without saturating AHCI/SATA channels |
| Internal Mechanical SATA HDD | BusTypeSata / Seek Penalty |
512 KB | 1 MB | 1 writer (Sequential ZIP/7z) / 16 MB | Keeps disk I/O sequential to prevent mechanical platter head thrashing |
| External USB / Flash Drive | BusTypeUsb |
256 KB | 512 KB | 1 writer (Sequential ZIP/7z) / 16 MB | Prevents Windows Quick-Removal lockups, stalls, and RAW corruption |
| Network Share / UNC / Fallback | DRIVE_REMOTE |
256 KB | 512 KB | 1 writer / 16 MB | Prevents packet queue overflows and remote handle stalls |
- In-Place AEAD Streaming (
BAYENC\x04\x00+BAYETOC\x04):ChunkedAesWriterandChunkedAesReaderencrypt and decrypt 4 MB chunks in-place using AES-256-GCM (aes-gcmwithzeroize), keeping steady-state RAM constant (< 100 MB) regardless of archive size.- Every chunk binds its exact chunk sequence index (
u32) and authenticated finality flag (BAY_CHUNK_FLAG_MORE = 0x00/BAY_CHUNK_FLAG_FINAL = 0x01) inside AES-256-GCM AAD, rejecting mid-stream truncation, flag tampering, or0u32EOF forgery whileChunkedAesWriterpermanently poisons on write errors to prevent unwind panics or nonce reuse. BAYETOC\x04metadata trailers bind cryptographically to the archive headersaltandbase_noncevia domain-separated AAD (build_toc_aad), preventing trailer stripping or cross-archive TOC grafting, withZeroizingBufandCompressPayloadpassword redaction/zeroization across compression paths.
- Key Derivation: Memory-hard Argon2id (
64 MiBmemory,t=3iterations,p=1) derives domain-separated(stream_key, toc_key)256-bit keys in a single pass per archive using random 16-byte salts and 8-byte base nonces.
- Native Windows 11 Top-Level Context Menu (
IExplorerCommand):- Implements Microsoft's modern Windows 11 shell extension standard via companion in-process COM DLL (
bayzip_shell.dll). - Appears directly at the top level of the Windows 11 right-click menu without needing "Show more options" (
Shift+F10). - Cascading sub-commands with native Fluent icons:
- "Compress to .bayg (Gamer Preset)"
- "Compress to .bay (Ultra-Fast)"
- "Extract Here"
- "Extract to Subfolder"
- "Open in Bayzip"
- Context-sensitive visibility (
ECS_HIDDEN): extraction verbs hide automatically on folders and non-archive files. - Multi-selection & batch support: processes multiple selected files/folders and queues sequential multi-archive mini-extractions cleanly.
- Cached startup registration (
registration_stamp.txt) skips redundant registry writes on launch and bypasses background sync in mini-extract invocations.
- Implements Microsoft's modern Windows 11 shell extension standard via companion in-process COM DLL (
- Sparse Package Identity (
AppxManifest.xml):- Deploys a Windows Sparse Package on Windows 11 (
Build >= 22000) for seamless modern shell integration.
- Deploys a Windows Sparse Package on Windows 11 (
- Classic Windows 10 Fallback:
- Dual-mode support maintains standard
HKCU\Software\Classesshell registry keys for Windows 10 and classic Explorer contexts.
- Dual-mode support maintains standard
| Format | Extension | Create | Extract | Preview | Algorithms & Engines |
|---|---|---|---|---|---|
| Bayzip | .bay |
β | β | β | Seekable Multi-Frame Zstandard (16 MB frames, Levels 1β19, parallel unpack), Brotli, LZ4, AES-256-GCM (PipedAesBufReader) |
| Bayzip Gamer | .bayg |
β | β | β | Seekable Multi-Frame Zstd-Fast (8 MB frames, Level 3 cap, 2β8 core parallel unpack) |
| ZIP | .zip |
β | β | β | Parallel Multi-Core (2β8 NVMe / 2β6 SSD workers), zlib-rs SIMD Deflate, Store (Smart Media Bypass), BZip2 |
| 7-Zip | .7z |
β | β | β | Multi-Block Parallel Workers + Lzma2ReaderMt, 512 MB Dict RAM Cap, AES-256 |
| TAR | .tar |
β | β | β | Native Streaming Rust Engine + AsyncFileWriterPool + DirectoryCache |
| GZip / TarGz | .gz, .tgz, .tar.gz |
β | β | β | Native zlib-rs SIMD MultiGzDecoder (Multi-Member pigz) + Tar |
| Zstandard Tar | .zst, .tar.zst |
β | β | β | Native Multi-Frame Zstandard Decoder + Tar |
| BZip2 / TarBz2 | .bz2, .tar.bz2 |
β | β | β | Single-Pass Cancellable tar.exe Streaming Engine (BZip2 / Tar) |
| XZ / TarXz | .xz, .tar.xz |
β | β | β | Single-Pass Cancellable tar.exe Streaming Engine (LZMA2 / Tar) |
| ISO Image | .iso |
β | β | β | Single-Pass Cancellable tar.exe Streaming Engine (ISO 9660) |
| Cabinet | .cab |
β | β | β | Single-Pass Cancellable tar.exe Streaming Engine (Microsoft Cabinet) |
| RAR | .rar |
β | β | β | Single-Pass Cancellable tar.exe / libarchive with Link/Device Guard |
- Node.js (v18+)
- Rust (2021 Edition / 1.77+) with
x86_64-pc-windows-msvctarget - Windows 10 or 11 (64-bit)
# Clone the repository
git clone https://github.com/Baymax005/Bayzip.git
cd Bayzip
# Install frontend dependencies
npm install
# Run desktop app in development mode
npm run tauri devnpm run tauri buildThe compiled installer will be located in src-tauri/target/release/bundle/nsis/.
# Backend unit tests (crypto, path sanitization, priority guards, specs)
cargo test --manifest-path src-tauri/Cargo.toml
# Frontend TypeScript typecheck
npx tsc --noEmitMuhammad Ali (@Baymax005)
Distributed under the MIT License. See LICENSE for details.