News for hackers. Stuff that matters.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by dmos62 on Tuesday August 10, 2021 @02:28AM (#28125686)
This queries the tracker websites, but I was hoping this would be a distributed hash table (DHT) search engine, like bitcq. Bitcq is indispensible for obscure torrents, but its interface could be better.

Edit: wait, looking at the source, this doesn't search torrents on the mentioned trackers, it keeps an eye on feeds of newest or most popular (in case of tpb) torrents and caches the tracker metadata. This doesn't seem very useful to me. Over a long time you'll have a big view of the tracker's database, but not older content than you started tracking, and, in the case of tpb, you'll just have a view of torrents that have been in the top 100 since you started crawling. Weird. Also, peer counts don't seem to get updated, I think.

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by sergiotapia on Monday August 09, 2021 @08:14PM (#28123883)
I wanted a very small, efficient program that anyone could run without ceremony on their machine. Nim made it very easy for me to do. It looks like Python/Ruby, runs really fast, and uses very little resources. I love Nim!
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by elcritch on Tuesday August 10, 2021 @01:39AM (#28125464)
Impressive!

> High performance, extremely low memory footprint. > RAM usage (avg.): 21.5MB > Binary application size: 600KB

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by nix23 on Tuesday August 10, 2021 @09:23AM (#28128503)
Application size here[1] is 1.8MiB, Ram 131MiB (release build -> make build)

[1] Freebsd13 x64, Nim Compiler Version 1.4.8

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by FnControlOption on Monday August 09, 2021 @09:45PM (#28124384)
> It looks like Python/Ruby, runs really fast, and uses very little resources.

You should also check out Crystal, which had its 1.0 release earlier this year: https://crystal-lang.org/ (Although, no Windows support yet.)

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by reilly3000 on Monday August 09, 2021 @10:04PM (#28124487)
This looks nice! Is there a way to configure it to exclude certain categories of content (such as nsfw)? Do you tend to run this behind a proxy?
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by squarefoot on Tuesday August 10, 2021 @01:14AM (#28125356)
After a brief look at the code it doesn't seem so, however there's a procedure (insert_torrent() in src/torrents.nim) in which a retrieved torrent is added to the database, of which one column is the name of the torrent, so it would be possible to insert a filter based on a list of nsfw words that would discard the torrent if one or more are found. Of course it wouldn't work on torrents that hide their nature, which hopefully happens very rarely.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by teitoklien on Tuesday August 10, 2021 @03:19AM (#28125976)
Does anyone have a book recommendation to learn and implement the bittorrent protocol myself ? Ive been looking for a good book on the protocol.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by eliasson on Tuesday August 10, 2021 @04:56AM (#28126579)
Not a book but I wrote an article about implementing the basics of a BitTorrent client in Python a few years ago. Maybe you'll find that useful. https://markuseliasson.se/article/bittorrent-in-python/
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by teitoklien on Tuesday August 10, 2021 @10:05PM (#28137098)
Thanks a lot ! Really appreciate it
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by belval on Monday August 09, 2021 @05:39PM (#28122648)
Interesting project, what are some similar self-hosted solutions that allow you to search torrents on public trackers?

To the author: How do you personally use it, do you have a custom interface to search the aggregated results or do you just plug it into a bigger content consumption system?

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by rnhmjoj on Monday August 09, 2021 @07:15PM (#28123500)
Magnetico[1] is an easy-to-use, self-hosted DHT crawler. It has a web UI that shows statistics and gives you a search engine (it uses sqlite full-text search).

It needs quite a bit of bandwidth and some storage space, but worked well so far, for me. I've been running it for a couple of years and it indexed around 12.5M torrents (36GB of uncompressed database).

[1]: https://github.com/boramalper/magnetico

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by ComputerGuru on Monday August 09, 2021 @09:22PM (#28124272)
Do you mind sharing what sample daily/monthly bandwidth during discovery looks like?
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by rnhmjoj on Tuesday August 10, 2021 @02:38AM (#28125735)
You can somewhat control the bandwith by limiting the number of simultaneous peers: in my case the usage seems to be around 5 Mbps up/down.

If you're running it from home, the real problem is not the bandwidth but the number of open connections the router has to keep track (assuming the network is NATed). The default settings will likely crash any cheap consumer router, so I would run the daemon from a VPS or a machine that isn't behind a NAT.

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by LeoPanthera on Monday August 09, 2021 @06:44PM (#28123227)
> what are some similar self-hosted solutions that allow you to search torrents on public trackers?

Jackett. https://github.com/Jackett/Jackett

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by nirav72 on Monday August 09, 2021 @06:56PM (#28123343)
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by arthurcolle on Monday August 09, 2021 @07:13PM (#28123481)
also Magnetissimo https://github.com/sergiotapia/magnetissimo

implemented using Elixir and Phoenix. Cool little project

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by laurentlbm on Monday August 09, 2021 @07:43PM (#28123676)
It's a former project by OP, who stopped work on it: > I've paused development of Magnetissimo to focus on Torrentinim.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by arthurcolle on Monday August 09, 2021 @09:47PM (#28124388)
Good catch, didn't notice that!
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by sergiotapia on Monday August 09, 2021 @08:03PM (#28123812)
I use it to search for DODI releases and x265 releases, it's faster than looking through websites. Once I finish Radarr/Sonnar support, I'll point my instances at Torrentinim.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by nix23 on Tuesday August 10, 2021 @09:12AM (#28128359)
I liked magnetissimo (from the same author) much more, but its kind of sleeping:

https://github.com/sergiotapia/magnetissimo

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by rmm on Monday August 09, 2021 @08:16PM (#28123889)
As an aside, does anyone know of a light-weight torrent tracker that can be used for personal use?

I always wanted to setup a tracker for documents and files etc, without the need for huge member management systems etc.

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by Wowfunhappy on Monday August 09, 2021 @11:41PM (#28124945)
Hard to get simpler than BitStorm. A single PHP file you can drop on a web server: https://web.archive.org/web/20111101104813id_/https://ck3r.o...
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by sa1 on Monday August 09, 2021 @09:11PM (#28124212)
If you want a hosted tracker instead, I’ve used privtracker.com for personal files with success. If you want to set one up, chihaya or udpt might do the job.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by ComputerGuru on Monday August 09, 2021 @09:20PM (#28124261)
OpenTracker and XBT are the most famous for lightweight use.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by nix23 on Tuesday August 10, 2021 @09:46AM (#28128782)
OpenTracker is absolutely great and under one of the best licenses -> Beerware

https://erdgeist.org/arts/software/opentracker/

Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by dicknuckle on Monday August 09, 2021 @09:18PM (#28124251)
what about Resilio Sync?
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by Wowfunhappy on Monday August 09, 2021 @11:43PM (#28124957)
^ Or it's open source version, SyncThing.
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by halfmatthalfcat on Tuesday August 10, 2021 @12:18AM (#28125091)
I've been looking for something like this but on the JVM (specifically Java or Scala if possible)
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by wiradikusuma on Tuesday August 10, 2021 @02:18AM (#28125637)
What do people use this for? I mean beside creating another pirate bay (CIMMW, that's the only thing comes to mind when I see "torrent search engine").
Re:Show HN: Torrentinim – low memory-footprint, API-only tor... by asxd on Tuesday August 10, 2021 @04:04AM (#28126249)
Dumb question I'm sure, but what does CIMMW stand for? (search results didn't turn anything up for me)