hybrid-torrent-tracker
v2.0.1
Published
Hybrid torrent tracker for Node.js
Downloads
27
Readme
Hybrid-Torrent-Tracker - This is a torrent tracker for Node.js with HTTP and UDP support based middleware.
| 📖 Documentation | |---------------------------|
Features
- Reliable. The library is written in TypeScript and covered by tests.
- Modern. The library comes with native ESM support
- Powerful. User-friendly interface for query processing (middleware)
Installation
Node.js 20.0.0 or newer is required
- Using
npm
(recommended)npm i hybrid-torrent-tracker
- Using
Yarn
yarn add hybrid-torrent-tracker
- Using
pnpm
pnpm add hybrid-torrent-tracker
Example usage
import { TorrentTracker } from 'hybrid-torrent-tracker';
const tracker = new TorrentTracker({
http: {
port: 6881
},
udp: {
port: 6881
}
});
tracker.use((context, next) => {
// Your logic
});
async function run() {
await tracker.listen();
console.log('Torrent tracker started');
}
run().catch(console.error);
Debug
Set environment DEBUG=hybrid-torrent-tracker:*