Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
piecemeal
command
Command piecemeal is a BitTorrent client with a native REST API, a qBittorrent-compatible WebAPI and an embedded web UI.
|
Command piecemeal is a BitTorrent client with a native REST API, a qBittorrent-compatible WebAPI and an embedded web UI. |
|
internal
|
|
|
api
Package api is piecemeal's native REST API under /api/piecemeal/v1, built with Huma.
|
Package api is piecemeal's native REST API under /api/piecemeal/v1, built with Huma. |
|
auth
Package auth authenticates people and tools: the local admin's password, session cookies for the web UI and for qBittorrent clients (SID), and named API keys sent as Bearer tokens to either API.
|
Package auth authenticates people and tools: the local admin's password, session cookies for the web UI and for qBittorrent clients (SID), and named API keys sent as Bearer tokens to either API. |
|
auth/authtest
Package authtest has a fake OpenID Connect provider for tests.
|
Package authtest has a fake OpenID Connect provider for tests. |
|
config
Package config reads piecemeal's startup configuration from environment variables.
|
Package config reads piecemeal's startup configuration from environment variables. |
|
engine
Package engine owns the anacrolix/torrent client and everything torrent-shaped: adding, removing, starting and stopping torrents, limits, seed goals, categories and tags, and the state the rest of piecemeal reads.
|
Package engine owns the anacrolix/torrent client and everything torrent-shaped: adding, removing, starting and stopping torrents, limits, seed goals, categories and tags, and the state the rest of piecemeal reads. |
|
engine/enginetest
Package enginetest has helpers for tests that need a BitTorrent swarm: a seeder serving generated content on loopback, and client settings that keep anacrolix off the network.
|
Package enginetest has helpers for tests that need a BitTorrent swarm: a seeder serving generated content on loopback, and client settings that keep anacrolix off the network. |
|
fetch
Package fetch downloads .torrent files from URLs given to the add endpoints.
|
Package fetch downloads .torrent files from URLs given to the add endpoints. |
|
logbuf
Package logbuf keeps the most recent log records in memory, for the log endpoints of both APIs.
|
Package logbuf keeps the most recent log records in memory, for the log endpoints of both APIs. |
|
metrics
Package metrics exports engine state to Prometheus.
|
Package metrics exports engine state to Prometheus. |
|
natpmp
Package natpmp keeps a TCP and a UDP port mapping open on a NAT-PMP gateway, such as a VPN provider's, and reports the forwarded port.
|
Package natpmp keeps a TCP and a UDP port mapping open on a NAT-PMP gateway, such as a VPN provider's, and reports the forwarded port. |
|
qbit
Package qbit serves the qBittorrent WebAPI v2 under /api/v2 on top of the engine, so Radarr, Sonarr, Prowlarr and other qBittorrent clients can use piecemeal unchanged.
|
Package qbit serves the qBittorrent WebAPI v2 under /api/v2 on top of the engine, so Radarr, Sonarr, Prowlarr and other qBittorrent clients can use piecemeal unchanged. |
|
settings
Package settings holds piecemeal's runtime settings: the ones that can be changed through the API while it runs.
|
Package settings holds piecemeal's runtime settings: the ones that can be changed through the API while it runs. |
|
store
Package store keeps piecemeal's own state in SQLite: settings, users, sessions, API keys, categories, tags and everything about torrents that anacrolix does not persist.
|
Package store keeps piecemeal's own state in SQLite: settings, users, sessions, API keys, categories, tags and everything about torrents that anacrolix does not persist. |
|
watch
Package watch adds the .torrent and .magnet files dropped into a directory.
|
Package watch adds the .torrent and .magnet files dropped into a directory. |
|
webui
Package webui serves the web UI that `pnpm -C web build` writes to internal/webui/dist, embedded into the binary.
|
Package webui serves the web UI that `pnpm -C web build` writes to internal/webui/dist, embedded into the binary. |
|
test
|
|
|
e2e/seeder
command
Command seeder seeds generated content for the end-to-end tests.
|
Command seeder seeds generated content for the end-to-end tests. |
Click to show internal directories.
Click to hide internal directories.