• Stars
    star
    2,947
  • Rank 14,590 (Top 0.3 %)
  • Language
    Elixir
  • License
    MIT License
  • Created over 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Web application that indexes all popular torrent sites, and saves it to the local database.

Magnetissimo

https://i.imgur.com/J6eB3mp.png

Magnetissimo is a self-hosted web application that indexes all popular torrent sites and saves the magnet links to your local database.

image

image

Goals:

  • No javascript
  • Crawl multiple index sites for torrents and magnet links.
  • Easily integrates with both Sonarr and Radarr.
  • Run without ceremony. No need for configurations.
  • Easy to understand source code. Special care is taken to keep code lean and understandable.
  • High performance, leveraging Elixir's GenServer and Erlang's BEAM VM.

Usage Guide:

We want to explain how to run Magnetissimo on:

  • Windows
  • Linux
  • Mac

Docker Compose

# Generate a secret_key with either
openssl rand -base64 64
mix phx.gen.secret

# Enter that key as SECRET_KEY_BASE in the docker-compse.yml file
SECRET_KEY_BASE=YourKeyGoesHere

# Start the application
docker compose up -d

If you are going to access Magnetissimo at an address besides localhost, add PHX_HOST to your environment variables. For example, to access it at http://192.168.0.54:4000:

      - PHX_HOST=192.168.0.54

Or to access it at https://magnetissimo.domain.tld:

      - PHX_HOST=magnetissimo.domain.tld

Kubernetes

# Generate a secret_key with either
openssl rand -base64 64
mix phx.gen.secret

Edit the k8s/deployment.yaml file, and replace the ENV SECRET_KEY_BASE with your generated key.
Edit k8s/ingress.yaml & the PHX_HOST in k8s/deployment.yaml and replace the host with your domain name.

The Postgres database is configured to use the DNS name assuming it is being deployed to the default namespace, update this in the enviroment variables if you are deploying to a different namespace.

Finaly, deploy the application to your cluster.
kubectl apply -f k8s/pvc.yaml
kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/svc.yaml
kubectl apply -f k8s/ingress.yaml

Local Development

asdf install
mix deps.get
iex -S mix phx.server

Then visit: http://localhost:4000

API

All endpoints returns JSON formatted information.

/search endpoint: http://localhost:4000/api/search/:search_term

Search returns torrents that match the search_term param.

/latest endpoint: http://localhost:4000/api/latest

Latest returns the latest 50 published_at torrents.

Contributing:

We have a .tool-versions so you can use ASDF to install the right versions really easily.

elixir 1.14.4
nodejs 19.8.1

Then asdf install.

You also need to have Postgres running and configure it using the DATABASE_URL environment variable.

Finally set up your database with some dummy data and run the project.

mix deps.get
mix ecto.reset
iex -S mix phx.server

Community

Want to talk about Magnetissimo or suggest features? We have an official Discord server.

Click to join our official Discord server

More Repositories

1

torrentinim

A very low memory-footprint, self hosted API-only torrent search engine. Sonarr + Radarr Compatible, native support for Linux, Mac and Windows.
Nim
773
star
2

nimlings

Learn the Nim programming language by fixing tiny broken programs.
Nim
47
star
3

golden

A sample Phoenix 1.6.0 LiveView application using esbuild, alpinejs and tailwind jit.
Elixir
22
star
4

gophers

Gophers is a tool you can use to scrape user information from a Github organisation or search results collection.
Go
21
star
5

rails4-dropzone-carrierwave-demo

Ruby on Rails 4 with Dropzone and Carrierwave Integration.
Ruby
16
star
6

ekeko

Ekeko is a tool that helps you save all of your favorited memes, videos and other online resources.
Nim
13
star
7

curltime

curltime is an Elixir package allows you to easily get website response times.
Elixir
11
star
8

smitego

SmiteGo is an API wrapper for the Smite game from HiRez. It is written in Go!
Go
11
star
9

ASP.Net-MVC3-Persona-Demo

A demo MVC3 web application using Mozilla Persona for authentication.
11
star
10

kryten

Kryten is a CLI tool to ask questions and get sourced answers from any .pdf, .doc, .docx, and many more documents.
Nim
10
star
11

hidemyass-proxy-lister

Easily fetch a list of Hidemyass's free proxy list as easy to use structs.
Elixir
7
star
12

Streamtastic

Streamtastic is a .NET (C#) library that provides information for streams hosted on a wide variety of websites including Own3d and Twitch.tv.
C#
7
star
13

filesize

A Nim package to convert filesizes into other units, and turns filesizes into human readable strings.
Nim
5
star
14

task-list-kata

Just a lil friday kata. Writing a task list using React and Mobx.
JavaScript
5
star
15

CherryTomato

CherryTomato makes using information provided by RottenTomatoes.com very simple. It's aim is to allow developers to quickly and safely create powerful applications with the JSON api provided for free by RottenTomatoes. Full C# POCO objects allow you to concentrate on creating a great application and not parsing random JSON from a source.
C#
4
star
16

subreddit-advisor

Terminal application that analyses top submissions and tells you when it's best to submit your link.
Go
4
star
17

sigma

Sigma is an Elixir package that gives you the current status of companies online.
Elixir
3
star
18

atom-darcula

Atom editor theme inspired by RubyMine's Darcula.
CSS
2
star
19

advent-of-code-2019-elixir

My Advent of Code for 2019 - using Elixir!
Elixir
1
star
20

octomixer

Octomixer is the easiest way to find Github information on users and organizations for Elixir apps.
Elixir
1
star
21

mailtester

Elixir
1
star
22

nextjs13-test

CSS
1
star
23

sergiotapia

readme
1
star
24

kotlin-hello-world

Kotlin
1
star
25

lostinthegc.com

Hugo blog for my website
CSS
1
star
26

UVM-Blog-Parser

Simple blog parser for Universidad Viรฑa del Mar's blog.
PHP
1
star