boypt / simple-torrent

☁️ Simple Torrent: a self-hosted remote torrent client (rebranded from Cloud Torrent)
GNU Affero General Public License v3.0
1k stars 312 forks source link

Plugins Development #41

Open ketankr9 opened 4 years ago

ketankr9 commented 4 years ago

There are a lot of features which can be developed based on this simple-cloud torrent server, some of them which have already been pointed out are :

All these features are not necessary for every one but only for a selected people, hence these can be developed as a list of plugins which can be added to the server selectively, so that it will be easier for people to contribute without reading the whole code of the server.

It will be helpful if you could create a example/sample plugin, based on which further plugins can be developed without modifying the core code of simple-torrent server.

For example this project syslog-ng has multiple modules which have been developed without modifying the code of main project.

supriyo-biswas commented 4 years ago

Adding my voice to this issue:

Personally, I have a use case where simple-torrent would allow you to check file hashes on Virustotal, and display alert icons on the files should viruses be detected.

This is a quite specialized feature to put in the core, and plugins would help.

boypt commented 4 years ago

I prefer offering rich APIs that can communicated with other applications (eg: a telegram bot), instead of integrating too much in the program.

The APIs is the latest version are now ready, you can CRUD (create, read, update and delete) over torrent tasks and files with curl. see: Restful API document

I myself is quite a telegram user, but still don't think a bot is more practical over the web. But if others is interested on creating one, the API offered now is capable of doing that.