Skip to content
ifpintacPublic

About

A video and audio downloader for Windows, written in Rust: a native front end for yt-dlp with a queue, transcripts, tools and an Edge/Chrome extension

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Snagger 2

A private video and audio downloader for your desktop. A native Windows app written in Rust: no Python, no browser tab, no console window.

Paste a link from YouTube, TikTok, Instagram, X, Reddit, Facebook, Vimeo, Twitch, SoundCloud or any of the 1,800+ sites yt-dlp supports, pick a quality, and the file lands in Downloads\Snagger.

Snagger's queue with a finished download's menu open

Look

Snagger 2.6 looks like a command console: one pale ice-blue line colour on near-black, hairline modules, clipped-corner frames and keys that light up. Dark by default; Settings → Theme has a light version too. The design notes (tokens, audit, test tasks) are in docs/design-console.md, with screenshots in docs/screens.

Run it

Snagger runs on Windows 10 and 11. Build it (see Build), then double-click Snagger.exe. The first launch fetches the download engine (about 110 MB, from the projects' own GitHub releases) and then you're ready.

What it does

Getting links in

  • Paste into the box, click Paste, or press Ctrl+V anywhere in the window.
  • Search: type words instead of a link to search YouTube or SoundCloud. Tick several results and download them together, or press the eye on a row to preview it first (and come back to the results after).
  • Add many: paste a whole list, or any text that contains links (a chat, an email, a web page). Snagger pulls out every link and skips duplicates.
  • Import: every link in a .txt, .csv, .html, bookmarks export or .url shortcut. You can also drop such files onto the window.
  • Copied links: copy a video link in your browser and Snagger offers to download it (or, if you choose, queues it straight away).
  • Browser button: Settings → Browser button adds a "Snag it" bookmark; on any video page, click it and that page opens in Snagger (via snag: links).
  • Browser extension (Edge or Chrome; Settings → Browser button → Set up the extension, then "Load unpacked"): a toolbar button that lists the streams and files the page has played (HLS, DASH, MP4…), even on sites yt-dlp can't read, and sends one with the page as Referer and its title as the file name; right-click "Snag this link / video / page". The extension lives in extension/ and ships inside Snagger.exe.
  • Download shortcut: copy a link anywhere and press Ctrl+Alt+D (or Ctrl+Shift+D): it's queued with your default quality, even while the window is closed.
  • Snagger.exe <link> or "Open with" passes links to the window that's already open.

Plain files: a link to a file rather than a page (.zip, .pdf, .psd, .blend, .mp4 on a server…) is downloaded by Snagger's own Rust engine: several connections at once (6 by default), pause and resume, a speed limit, and a retry for any piece whose connection stalls. Links yt-dlp doesn't recognise are checked for a file too.

Choosing what to save

  • Quality buttons show what the video actually offers, with estimated sizes for the format you picked (Best/4K/1440p/1080p/720p/480p/360p, or audio only).
  • Video as MP4 (H.264, plays everywhere), MKV (best codecs) or as the site serves it. Audio as MP3, M4A, Opus, FLAC, WAV or untouched.
  • Trim: download only part of a video (from 1:30 to 2:45).
  • Playlists and channels: a list with thumbnails to pick from. Filter by title, click to tick, Shift+click to tick a run, or use All / None / Invert / First 10 / Only matching. Picked videos go in their own numbered folder. A video link that's part of a playlist can be switched to the whole playlist in one click.
  • Optional subtitles (embedded or .srt), cover art, tags and chapters, SponsorBlock cutting, plain ASCII file names, custom name templates, sorting into folders by site or uploader.
  • Transcripts: a .transcript.txt of what's said, with a time at the start of each paragraph, saved next to each video (on by default; Settings → Subtitles, artwork and tags). Made from the site's captions in the language that's spoken; YouTube's repeating automatic captions are cleaned up. Older downloads have "Get transcript" in their ⋮ menu (Downloads and History).

The queue

  • Runs 1 to 10 downloads at once (3 by default); the rest wait their turn.
  • Pause, resume, cancel, retry, "download next", move to the end, per row or all at once. Retrying a playlist only fetches the videos that failed.
  • Closing Snagger pauses running downloads; they continue from where they stopped the next time it opens.
  • Progress, speed and time left per download, in the window title and on the taskbar button (red if something in the batch failed). The taskbar flashes with a chime when a batch is done. The PC is kept awake while downloading.
  • Select several rows (click, Ctrl+click, Shift+click, Ctrl+A) to resume, pause, retry, move up, copy the links of, or remove them together. Esc clears.
  • When done: open the download folder, put the PC to sleep or shut it down once the queue finishes (with a one-minute warning you can cancel).
  • Download hours: only start downloads between, say, 22:00 and 07:00. "Start now anyway" overrides it for the session.
  • Tries again by itself after a dropped connection, a busy server or "too many requests" (a few times, waiting longer each time). When a site seems to have changed, a failed row offers "update yt-dlp and try again".
  • "403 Forbidden" (YouTube refusing one stream link, or an expired file link): Snagger fetches fresh links twice (after 5 s and 30 s, the last time one connection at a time) before it gives up with a plain message.
  • Disk space: the preview warns when a download won't fit (counting room to join video and audio). A video that won't fit is paused before it starts, a full disk pauses a download and keeps what it has, and waiting downloads are held while less than 256 MB is free.
  • Waits a few seconds between playlist videos so sites don't block you.
  • Never overwrites a file: a second copy becomes name (2).ext.
  • Speed limit, retries, proxy, sign-in from your browser (Firefox, Chrome, Edge, Brave…) or a cookies.txt file for private or members-only videos.
  • Optional download archive: skip anything Snagger has ever downloaded.
  • The video's description (links, chapter list) saved as .description.txt.
  • Change quality… for downloads that are waiting, paused or failed.
  • In the background: closing the window keeps Snagger in the tray (by the clock) and downloads carry on; it can start in the tray with Windows. A Windows notification says when a batch finishes.

Tools for finished files (in each row's ⋮ menu): Make smaller… to fit 10/25/50/100 MB or any size (two-pass, sized to fit), Make a GIF… of up to 60 seconds, and Split into tracks by chapters. Results are saved next to the original.

History lists everything saved, searchable (also by what was said, from the transcripts: "robot hand" finds the scene), with Open, Show in folder and Download again. Subscriptions follow channels and playlists and download only new videos, on demand or every 6 hours / daily while Snagger is open.

Engine: yt-dlp updates itself when Snagger starts (stable or nightly builds), which fixes most "this site stopped working" problems. Settings → Engine shows versions and can reinstall each part.

Where things live

What Where
Downloads Downloads\Snagger (change in Settings)
Settings, queue, history, subscriptions %APPDATA%\Snagger
yt-dlp, ffmpeg, Deno %LOCALAPPDATA%\Snagger\engine

To remove Snagger, delete Snagger.exe and those two folders.

How it works

Snagger is a Rust app (egui/eframe for the window). Downloading itself is done by yt-dlp, the engine behind every serious downloader, because its 1,800 site extractors change weekly and can't be reimplemented. Snagger installs the official standalone yt-dlp.exe (no Python needed), checks its SHA-256, keeps it updated, and drives it with a machine-readable progress format. ffmpeg comes from yt-dlp/FFmpeg-Builds. YouTube needs a JavaScript runtime: Snagger uses Deno, or Node.js 23.5+ if it's already on the PC.

Each download runs in its own hidden staging folder (.snag-temp) inside the download folder and inside a Windows job object, so pausing or quitting stops yt-dlp and ffmpeg together and nothing is left running.

Plain files skip yt-dlp entirely. src/direct.rs asks the server for one byte to learn the name, size and whether it allows ranges, then splits the file into chunks (up to 8 MB) that several connections fetch at once, writing each straight into its place in the file. Finished chunks are recorded in state.json, so a pause, a quit or a dropped connection only costs the chunks in flight.

File What's in it
src/main.rs Startup, single instance, snag: links, window
src/engine.rs Installing and updating yt-dlp, ffmpeg, Deno
src/ytdlp.rs Command lines, link previews, search, progress parsing
src/direct.rs Snagger's own multi-connection file downloader
src/worker.rs One running yt-dlp download
src/manager.rs The queue, saving, taskbar, keep-awake, download hours, "when done", subscription schedule
src/hub.rs Shared state, queue operations, automatic retries
src/clipwatch.rs, src/ipc.rs Copied-link watcher, second-launch hand-off
src/ui/ The window: downloads (preview, search, picker, queue), history, subscriptions, settings

Build

Needs Rust (stable) and the Visual Studio Build Tools with the Windows SDK.

cargo build --release

The app is target\release\Snagger.exe. cargo test runs the unit tests.

Credits

  • yt-dlp (Unlicense), FFmpeg (GPL build), Deno (MIT): downloaded at first run, not bundled.
  • egui / eframe (MIT/Apache-2.0).
  • Icons: Phosphor, Thin weight, from @phosphor-icons/core 2.1.1 (MIT, see assets/phosphor/LICENSE), rendered with resvg (Apache-2.0/MIT).
  • Type: Saira (SIL OFL 1.1, see assets/fonts/OFL-Saira.txt) and Fira Code (SIL OFL 1.1, see assets/fonts/OFL-FiraCode.txt).
  • App icon: "Inbox tray" from Microsoft Fluent Emoji (MIT, see assets/LICENSE-fluentui-emoji.txt).

Only download videos you have the right to keep: your own uploads, Creative Commons work, or videos the creator allows you to save.

License

MIT, see LICENSE. The fonts, icons and app icon keep their own licences (listed under Credits).

About

A video and audio downloader for Windows, written in Rust: a native front end for yt-dlp with a queue, transcripts, tools and an Edge/Chrome extension

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages