Send magnet links or torrent URLs to a remote Transmission daemon in your browser or via HTTP.
Set the following environment variables:
$TRANSMISSION_RPC_URL
: URL of your Transmission daemon's RPC interface, defaults tohttp://localhost:9091/transmission/rpc/
.$DOWNLOAD_DIRECTORIES
: array ofname:/my/directory,…
for torrent content to be moved to upon completion.$PORT
: to serve from, defaults to3000
.
npm install
npm start
and open http://localhost:3000/.
Using httpie:
http post localhost:3000/ url='https://archive.org/download/flickr-ows-05-6503285175/flickr-ows-05-6503285175_archive.torrent'
# HTTP/1.1 201 Created
# Content-Type: application/json; charset=utf-8
# …
# ETag: 02234f9cb44ba1157473578ccc94cbbbb3be04fa
#
# {
# "hashString": "02234f9cb44ba1157473578ccc94cbbbb3be04fa",
# "id": 626,
# "name": "flickr-ows-05-6503285175",
# "url": "https://archive.org/download/flickr-ows-05-6503285175/flickr-ows-05-6503285175_archive.torrent"
# }