Skip to content

Zing v1.0.1

Choose a tag to compare

@dxniyvl dxniyvl released this 30 Nov 23:57
· 13 commits to main since this release

Zing v1.0.1

Auto-update support, major memory and resource optimizations, security hardening, and reliability fixes for Zing (Windows 10/11 x64).

What's New in v1.0.1

Built-in Auto-Update

  • Lightweight one-time launch check: Checks github.com/dxniyvl/Zing once per launch via redirect inspection (no GitHub REST API rate limits, zero background polling, cached across close-to-tray reopen cycles).
  • Non-intrusive update banner & Settings check: Displays a compact banner with Update Now, Release Notes, and Later, plus a manual Check for Updates control in Settings → About.
  • SHA-256 verified upgrades: Streams Zing_*_x64-setup.exe, verifies its SHA-256 digest against SHA256SUMS.txt, launches the NSIS installer, and exits gracefully (portable builds open the GitHub Release page directly).

Memory & Resource Optimization

  • Close-to-tray WebView2 reclaim & deferred --background launch: Closing to tray destroys the main WebView2 renderer while keeping the Rust engine and tray icon alive (preserving UI state and queuing dropped/clipboard actions for reopen); --background autostart launches with zero WebView2 renderers until opened.
  • Lightweight vanilla Drop Basket: Rebuilt the floating Drop Basket in vanilla TypeScript/CSS (~8.2 KB JS, no React/Motion) and lazily creates/destroys its WebView2 window only while enabled.
  • WebView2 hardening & minimize suspension: Unified browser flags across windows, hardened WebView2 settings (DevTools disabled in release, autofill/SmartScreen/background networking off), and wired ICoreWebView2_19 Low-Memory mode plus TrySuspend/Resume when minimized.
  • Visibility-gated pull telemetry & animation gating: Replaced high-frequency push Channel::send telemetry with visibility-gated pull polling (10–16.7 Hz visible, 4 Hz Drop Basket, 0 Hz idle/hidden) while preserving 60–144 fps rAF smoothing, pruned completed items from the telemetry store, hoisted shimmer canvas gradients, and paused CSS/canvas animations while hidden.
  • Rust engine bounds: Bounded Tokio worker/blocking thread pools, right-sized SQLite page caches with idle PRAGMA shrink_memory trimming, tuned HTTP/2 initial windows and LRU-4 HTTP client caches, switched yt-dlp manifest parsing to typed deserialization, and capped HLS/DASH init map buffers at 16 MiB.

What's Fixed in v1.0.1

Security & Privacy

  • Strict IPC & Native Messaging allowlists: Separated in-process desktop UI RPCs from Named Pipe / browser extension (zing-nmh.exe) RPCs, hardcoded client identities in zing-nmh, blocked Overwrite and arbitrary save_dir_override from external clients, and redacted proxy passwords from settings.get.
  • Confinement & path hardening: Enforced canonicalized scratch_dir confinement with per-run nonce tags on yt-dlp output handoff, strict StateDb ID resolution for open_downloaded_file / reveal_in_explorer (with Win32 SHOpenFolderAndSelectItems and UNC rejection), and Rust-owned file dialogs for batch import/export.
  • Network & SSRF protection: Added DNS-aware SSRF guards (blocking loopback, RFC 1918, link-local, and CGNAT) across Site Grabber, HLS/DASH manifests, and redirects; enforced HTTPS-only host-pinned downloads for managed media tools; stripped sensitive headers across cross-origin redirects; and pinned FTP PASV/Active data channels to the control peer IP.
  • Browser extension hardening: Switched the floating media pill to a closed Shadow DOM with ev.isTrusted checks, scoped runtime.onMessage handlers, enabled Chromium incognito: "split", failed closed on Incognito cookie lookup, filtered non-HTTP(S)/FTP schemes in context menus, and added pageshow bfcache recovery.
  • Secret & credential hygiene: Encrypted fallback proxies with DPAPI, zeroized transient secret buffers and zing-nmh frame buffers, moved authenticated yt-dlp proxies out of process argv, redacted Referer queries/userinfo in the Inspector, and added startup cleanup for stale temp cookie files.

Core Engine, Media & Reliability

  • Transfer & resume integrity: Hardened 64-byte canary verification across mirror changes, prevented bandwidth drain when servers ignore Range end bounds, fixed max_connections live-reduction races, prevented zero-byte chunks from resetting retries, and added ±20% jitter to retry backoff.
  • HLS, DASH, Remote ZIP & Site Grabber bounds: Added global segment caps and checked arithmetic in DASH/HLS parsers, ZIP-bomb size/ratio caps and dangling symlink/reserved-name checks in Remote ZIP Preview, and default per-file/total crawl caps in Site Grabber.
  • Power & scheduler safety: Ensured post-queue Sleep/Hibernate/Shutdown actions never fire after manual pauses, qualified shutdown.exe / netsh.exe via %SystemRoot%\System32\, and synchronized active task queue moves.
  • Named Pipe & CLI resilience: Replaced upfront 16 MiB frame allocation with incremental reading, added transient accept() recovery, fixed zing --help / --version exit codes and non-zero exit on failed downloads, and enforced a single combined --timeout deadline for /d + /s.

Desktop UI & Windows Packaging

  • UI fixes: Fixed progress bar registration after probing, guarded global hotkeys inside modals/buttons, sorted Speed/ETA columns using live telemetry, reverted accent preview on Settings Cancel without clobbering external edits on Save, added Escape dismissal on ContextMenu, and capped dropped .txt/.ef2 file sizes.
  • Installer & uninstaller polish: Added NSIS uninstaller hooks to stop zing-nmh.exe and clean Native Messaging registry entries, plus cross-manifest version parity and stray-DLL checks in package-windows.ps1.

Which File Should I Download?

File Recommended For Notes
Zing_1.0.1_x64-setup.exe Most users (Recommended) Per-user NSIS installer. No admin prompt needed; includes Start Menu shortcut and uninstaller.
Zing_1.0.1_x64_en-US.msi Enterprise / silent installs Standard Windows Installer (.msi) package.
Zing-v1.0.1-windows-x64-portable.zip Portable / USB usage Unzip and run zing-desktop.exe. Stores state.db, credentials, and logs in .\data\ via portable.marker.
Zing-Extension-v1.0.1-chrome.zip Chrome / Edge / Brave Standalone unpacked MV3 extension archive (also included inside all desktop packages under extension\).
Zing-Extension-v1.0.1-firefox.xpi Firefox 140+ Standalone Firefox WebExtension package (also included inside all desktop packages under extension\).
SHA256SUMS.txt Checksum verification SHA-256 hashes for every release asset above.

Windows SmartScreen & SHA-256 Verification

Zing is an unsigned open-source indie build, so Windows SmartScreen may warn on first launch. To verify your file before running it:

Get-FileHash .\Zing_1.0.1_x64-setup.exe -Algorithm SHA256

Match the output against SHA256SUMS.txt. If SmartScreen appears, click More info -> Run anyway.


Browser Extension & Media Tools Setup

  • Browser Extension: Load the Chrome/Edge/Brave or Firefox extension, then open Zing -> Settings -> General -> Browser Integration (Native Messaging) and click Install. Full step-by-step instructions (including troubleshooting Extension ID mismatches) are in the README Browser Extension Setup section.
  • YouTube / HLS / DASH Support: On first launch, click Install Missing on the top banner (or open Settings -> General -> Media Tools) to download SHA-256-verified yt-dlp, LGPL ffmpeg, and deno automatically.