Installation
Prerequisites
- Node.js 18+ or Bun 1.0+
Install as a CLI
npm install -g @linuxctrl/grabrOr with Bun:
bun install -g @linuxctrl/grabrAfter installation, verify it works:
npx @linuxctrl/grabr --helpInstall as a Library
npm install @linuxctrl/grabrThen import it in your project:
import { Downloader } from "@linuxctrl/grabr";
const downloader = new Downloader();
await downloader.start();Build from Source
git clone https://github.com/LinuxCTRL/grabr.git
cd grabr
bun install
bun run buildThis produces dist/ with the CLI and library.
Running Locally (Development)
# Run CLI directly from source
bun run cli --help
# Add a download
bun run src/cli/index.tsx add https://example.com/file.zip
# Start the web server + dashboard
bun run src/server/index.ts