- Go 94.3%
- HTML 2.6%
- CSS 1.6%
- Go Template 1%
- Nix 0.2%
- Other 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .beads | ||
| .forgejo/workflows | ||
| .github | ||
| charts/sniffarr | ||
| docs | ||
| hack | ||
| internal | ||
| packaging | ||
| proto/sniffarr/v1 | ||
| tools | ||
| .gitignore | ||
| AGENTS.md | ||
| buf.gen.yaml | ||
| buf.yaml | ||
| CHANGELOG.md | ||
| config.go | ||
| config_test.go | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| generate.go | ||
| go.mod | ||
| go.sum | ||
| install.sh | ||
| LICENSE | ||
| main.go | ||
| main_test.go | ||
| README.md | ||
| VERSION | ||
sniffarr
sniffarr is a private classification database of BitTorrent torrents discovered on the DHT, with an API to search it. Its web UI is a catalogue of movies and series as TMDB knows them, each with the releases of it the DHT carries; a search looks in the database and on TMDB together, so it also finds what has no release yet.
The database and the API are meant to stay private: run them for yourself, not
as a public index. Peer IP addresses are never sent to the server or stored:
peers are counted in HyperLogLog sketches of keyed hashes, from which no
address comes back. The sniffer fetches metadata only: it never downloads
pieces, never uploads, and never announces itself into a swarm. The fetcher
does so only with -probe: it downloads the first pieces of a stored
release's main video file to read its tracks, and seeds them back; see
Probes.
The repository is sarak.sh/mikluko/sniffarr, mirrored hourly to github.com/mikluko/sniffarr.
Install
One process on a Linux host, as a systemd service:
curl -fsSL https://sarak.sh/mikluko/sniffarr/raw/branch/main/install.sh | sh
On Debian/Ubuntu the script installs the package from the sarak.sh Debian registry; elsewhere, the release archive. Each way has its guide:
- Debian/Ubuntu, the
.debpackage - systemd, the release archive on any Linux
- Docker Compose, the image in one container
- Kubernetes, the Helm chart
The Compose and systemd guides also give a container or a service per component.
Documentation
- Components: the
-api,-ui,-sniffand-fetchcomponents, what each does and how they fit together - Probes: reading the audio tracks of releases from their first pieces, and seeding them back
- API: the ingest, browse and search services, and calling them from a shell
- Torznab: the indexer Prowlarr, Radarr and Sonarr search
- Radarr and Sonarr: their webhook and grab history as demand and as matches
- Torznab sources: the latest listings of Torznab indexers as a source of releases
- Web UI: the pages, their parameters and the language
- Configuration: every flag and variable of every component
- Telemetry: metrics, traces and logs
- Helm: the chart, a Deployment per component or one process
- Development: building the image, generating code and cutting a release
Contributing
Proposals, not code; see CONTRIBUTING.
License
MIT; see LICENSE. The web UI ships JetBrains Mono under the SIL
Open Font License 1.1 and Lucide icons under the ISC License, both from
libarr's ui package, which carries
their license files.