- Ship the official static NZBGet 26.3 build (with unrar/7za) as a Tauri resource. scripts/fetch-nzbget.sh downloads it, checks its SHA-256 and unpacks it; tauri dev/build run it automatically. Binaries are git-ignored. - src-tauri/src/engine.rs starts NZBGet in server mode on 127.0.0.1 with a random port and password (kept in a 0600 nzbget.conf, not argv), locks against a second instance, and stops it on exit or if Grabster dies. - Settings: "Download Engine" chooses built-in vs. your own NZBGet; new "News Servers" page adds/edits/tests servers and picks the download folder via loadconfig/saveconfig/reload. Mock engine implements the same. - Set WEBKIT_DISABLE_DMABUF_RENDERER=1 on Linux (WebKitGTK crashed on Wayland + NVIDIA with "Error 71 (Protocol error)"). - Drop -webkit-font-smoothing: none (jagged text without Tahoma); point docs at ms-core-tahoma-fonts. - Commit Cargo.lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
100 lines
4.4 KiB
Markdown
100 lines
4.4 KiB
Markdown
# 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)
|
|
|
|
```bash
|
|
# 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 dev` working, 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.sh` downloads the pinned release, checks its SHA-256, and unpacks it into
|
|
`src-tauri/resources/nzbget/` (git-ignored). `npm run tauri dev` / `tauri build` run it for you;
|
|
run it by hand with `npm run fetch:nzbget`. To upgrade, change `VERSION` and `SHA256` there.
|
|
- 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
|
|
|
|
```bash
|
|
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
|
|
|
|
```bash
|
|
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)
|