- Vue 47.8%
- TypeScript 29.3%
- Rust 17.4%
- CSS 4.3%
- Shell 1%
- Other 0.2%
Engine - Bundle rqbit 9.1.0 (scripts/fetch-rqbit.sh, pinned SHA-256 per arch), started on first use: 127.0.0.1 + random port, random Basic-auth password passed in its env, UPnP off, session/DHT cache/log under the app data dir, downloads in ~/Downloads/Grabster/Torrents. Stopped with Grabster like NZBGet. - torrent_add peeks at the file list, then adds only the playable files (no samples); torrent_stats / torrent_remove (Ditch = delete with data). - engine.rs: spawn_supervised / wait_for_port shared by NZBGet and rqbit. - http.rs: tiny loopback HTTP client (Content-Length, chunked, streaming bodies). Playback - media.rs proxies torrent streams (Source::Remote) so the page never sees rqbit's password; suffix ranges become explicit ones; the MKV subtitle fix now runs lazily on the first request, so it also works on streams. - Player items are a finished download or a stream. Streams show "Connecting to peers…", then speed / peers / % on disk in the strip. Stop asks Keep or Ditch; starting something else over an undecided stream asks first. Search - Indexers have a type: Newznab (Usenet) or Torznab (Prowlarr, Jackett). Torznab results show seeders; double-click or the Stream button plays them. - Mock mode: a Torznab indexer with public-domain films, and a simulated rqbit. Tests: http client, playable-file picking, proxy (auth, ranges, MKV fix) against a fake rqbit, and an opt-in end-to-end test against the real rqbit with the Creative Commons Sintel torrent (cargo test --lib -- --ignored real_rqbit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| scripts | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| CLAUDE.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Grabster
A Usenet downloader for Linux with the look and feel of the early-2000s P2P clients. NZBGet does the heavy lifting (downloading, yEnc, par2 repair, unpacking); Grabster is the front end: search across your Newznab indexers, send NZBs to NZBGet, watch transfers, browse what you've grabbed.
Tabs
| Tab | What it does |
|---|---|
| Networks | NZBGet status, news servers, indexer health checks |
| Library | Finished downloads, sorted into Audio / Video / Software / Other / Failed |
| Chat | Placeholder (IRC planned) |
| Search | Search all indexers at once. Same post on several indexers is grouped under one ⊞ row |
| Hotlist | Saved searches you run often |
| Transfers | NZBGet queue + history, pause/resume/cancel/move to top, load .nzb files |
| Bandwidth | Live speed graph, stats, speed limit |
Quick start on your laptop (with Claude Code)
# 1. Unzip and enter the project (it's already a git repo with one commit)
unzip grabster.zip -d ~/Projects && cd ~/Projects/grabster
# 2. Install Claude Code (native installer) and open a new terminal
curl -fsSL https://claude.ai/install.sh | bash
claude --version
# 3. Start a session in the project — it reads CLAUDE.md automatically
claude
A good first prompt:
Read CLAUDE.md and README.md. The Rust/Tauri side has never been compiled. Install whatever Nobara needs (see README section 2), get
npm run tauri devworking, and fix any build errors.
To just look at the UI without NZBGet or Rust: npm install && npm run dev, then open
http://localhost:1420 (runs on simulated data).
1. NZBGet (bundled — nothing to install)
Grabster ships its own copy of NZBGet (the official static Linux build, with unrar and 7-Zip) and runs it in the background while the app is open:
scripts/fetch-nzbget.shdownloads the pinned release, checks its SHA-256, and unpacks it intosrc-tauri/resources/nzbget/(git-ignored).npm run tauri dev/tauri buildrun it for you; run it by hand withnpm run fetch:nzbget. To upgrade, changeVERSIONandSHA256there.- Its config, queue and logs live in
~/.local/share/com.orca.grabster/nzbget/; finished downloads go to~/Downloads/Grabster(changeable in Settings → News Servers). - It listens on 127.0.0.1 only, on a random port with a random password each launch, and has no web UI. Grabster stops it on quit (and the kernel stops it if Grabster crashes).
To use an NZBGet you already run instead, pick My own NZBGet in Settings → Download Engine.
NZBGet is GPLv2 (source: https://github.com/nzbgetcom/nzbget); its COPYING and the unrar/7-Zip
licences are shipped next to the binary.
2. Build prerequisites
sudo dnf install webkit2gtk4.1-devel openssl-devel curl wget file libappindicator-gtk3-devel librsvg2-devel
sudo dnf group install "c-development" # gcc, make, etc.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo dnf install ms-core-tahoma-fonts # optional, but it's what makes the UI look right
3. Run
npm install
npm run tauri dev # real app, runs the bundled NZBGet + talks to your indexers
npm run dev # browser only, simulated data (good for tweaking the look)
npm run tauri build # produces an .rpm and AppImage in src-tauri/target/release/bundle
In the app: Settings → News Servers → Add Server... for your Usenet provider (host, port, SSL, login, connections → Test), then Settings → Indexers → Add Indexer... for each indexer (base URL + API key → Test).
Project layout
src/
state.ts app state, polling loop, search sessions
services/nzbget.ts NZBGet JSON-RPC client
services/newznab.ts Newznab search + caps test
services/mock.ts simulated engine/indexers for browser mode
views/*.vue one file per tab
components/ ListView, SettingsDialog, Icon (original 16px pixel icons)
styles.css classic bevelled chrome + black list panes
src-tauri/ thin Rust shell (http/store/opener/dialog plugins + read_file_base64)
src/engine.rs starts/stops the bundled NZBGet
scripts/fetch-nzbget.sh downloads the NZBGet build that gets bundled
Ideas for next steps
- Hotlist auto-grab (poll saved searches / RSS and send new matches to NZBGet)
- IRC chat tab
- Right-click context menus, column resizing, remembering column widths
- Per-indexer API hit counters
- Replace NZBGet with a native Rust NNTP engine (someday, maybe)