sergiotapia/magnetissimo
53.7
Adequate · 10 November 2026
11.4k
lines of production code
Elixir
primary language
9
measurements over time
What this system is
Magnetissimo is a self-hosted torrent aggregation service that indexes content from multiple public sources and the BitTorrent DHT into a local SQLite database. It provides a unified search interface with advanced query syntax and exposes a Torznab-compatible API for integration with media management tools like Sonarr and Radarr. The system features a modular crawler framework with concurrency controls and a web interface built on Phoenix LiveView for real-time search and configuration.
Features
Added release scripts for database migrations and server startup
The release now includes executable shell scripts (migrate, server) and their Windows equivalents (migrate.bat, server.bat) to manage runtime operations. The migrate script executes the database migration via Magnetissimo.Release.migrate, while the server script starts the application with the PHX\_SERVER environment variable set to true, ensuring the Phoenix server runs correctly in release mode.
rel · high confidence
Development database now pre-seeded with demo torrents
Running the database seed script now populates the system with a diverse set of demo torrents (anime, movies, software, etc.) from sources like Nyaa.si and YTS. This ensures that a fresh development environment has immediate content to display and search, rather than starting with an empty library. These fixtures are strictly limited to the development environment and are only inserted if the torrent table is currently empty, ensuring they do not interfere with production data or subsequent crawls.
priv/repo · high confidence
Initial release of the Magnetissimo torrent aggregation service
This change introduces the core functionality of Magnetissimo, a self-hosted torrent indexer. It adds crawlers for multiple sources (including Nyaa.si, YTS, The Pirate Bay, and EZTV) that fetch and index content into a local SQLite database with FTS5 search. A new DHT crawler allows users to discover torrents directly from the BitTorrent network via a dedicated /dht page. The application now features a unified search interface that queries all sources simultaneously, supports filtering by Torznab-standard categories, and exposes a Torznab-compatible API at /api for integration with tools like Sonarr and Radarr. The system is designed to run as a standalone release with automatic database migrations and source seeding on startup.
lib/magnetissimo · high confidence
Introduce advanced torrent search with phrase, exclusion, and pattern operators
The torrent search capability now supports complex query syntax, allowing users to search for exact phrases (using quotes), exclude specific terms (using a leading dash), and use wildcard patterns (using asterisks). The system utilizes two SQLite FTS5 indexes to handle different token types efficiently, ensuring that quoted text matches exactly including punctuation, while unquoted terms are matched as whole words or substrings depending on length and script. This change also introduces a custom Ecto type for storing torrent file lists as JSON and categorizes all indexed torrents according to the Torznab standard.
lib/magnetissimo/torrents · high confidence
New API endpoints and theme/DHT settings controllers
The web layer now exposes a Torznab API at /api for integration with Sonarr, Radarr, and other media managers, alongside a legacy JSON API at /api/latest and /api/search. A new DHT settings controller allows users to configure DHT crawling via POST /dht/settings, and a theme controller enables switching between light, dark, and system modes via GET /theme/:mode. The previous generic page controller and its associated HTML templates have been removed to make way for these specialized endpoints.
_lib/magnetissimo\web/controllers · high confidence
New BitTorrent DHT crawler for discovering torrents
Added a complete DHT crawler implementation that discovers torrents by walking the BitTorrent Distributed Hash Table. The new modules handle Bencode serialization, KRPC network communication, peer metadata fetching via the Peer Wire protocol, and bloom filter-based swarm estimation. A classifier automatically categorizes discovered torrents by file extensions and naming patterns, while a runner manages the crawler lifecycle based on configuration settings.
lib/magnetissimo/dht · high confidence
New DHT crawler page and redesigned home/search interface
A new DHT page (lib/magnetissimo\_web/live/dht\_live.ex) lets users toggle the BitTorrent DHT crawler, adjust its rate and concurrency settings, and watch a live, streaming list of the last 100 indexed torrents with swarm stats. The home page (lib/magnetissimo\_web/live/home\_live.ex) now supports real-time search-as-you-type, category and source filters, column sorting, and pagination, with results sliding in as sources respond. Torrent detail pages (lib/magnetissimo\_web/live/torrent\_live.ex) link DHT-found torrents to the DHT page instead of an external source.
_lib/magnetissimo\web/live · high confidence
New DHT settings, refined search filters, binary size formatting, and theme switching
The web interface now includes a dedicated /dht page with a settings form to toggle the BitTorrent DHT crawler and adjust its rate. Search functionality is enhanced with refine fields for size, seeders, and age, supporting binary units (KiB, MiB, GiB) consistent with source data. A new theme system allows users to switch between light, dark, and system preferences, persisted via a cookie. Additionally, the application now exposes a Torznab API at /api for compatibility with Sonarr, Radarr, and other managers, and supports LiveView behind HTTPS reverse proxies.
_lib/magnetissimo\web · high confidence
New data layer for torrent sources, search, and DHT crawling
The application now persists torrent data in a new database schema, introducing tables for sources, torrents, and DHT nodes to support crawling and storage. Search capabilities are significantly enhanced with SQLite FTS5 indexes (using trigram and word tokenizers) that allow full-text searching of torrent names, descriptions, and file lists, alongside a new search hits table to track source-specific results. Additionally, a DHT crawler is introduced with settings and node storage, and existing data is corrected to properly decode HTML entities in torrent names.
priv/repo/migrations · high confidence
New modular crawler framework with support for multiple torrent sources
The application now uses a structured crawler system to index torrents from multiple sources, including AudioBookBay, EZTV, Nyaa.si, Sukebei, OxTorrent, The Pirate Bay (via apibay), TorrentDownloads, and YTS. This change introduces a shared HTTP client, a rate-limiting pacer to prevent site blocks, and a category mapping system that aligns source-specific categories with the Torznab standard. Users will see expanded search coverage across audiobooks, TV shows, movies, and adult content, with results properly categorized and deduplicated.
lib/magnetissimo/crawlers · high confidence
Removals
Removal of the Phoenix Framework landing page
The default home page template (home.html.heex) has been deleted from the application. This removes the Phoenix Framework welcome screen, including its decorative SVG background, version badge, and links to documentation, source code, and community channels.
_lib/magnetissimo\_web/controllers/page\html · high confidence
Behavioural changes
Enforces strict code quality and architectural rules via precommit checks
The project now enforces a comprehensive suite of static analysis and architectural policies before every commit. This includes strict linting with Credo and ExSlop, duplication detection via ex\_dna, and architectural layering rules via reach (forbidding domain code from touching the web layer, direct Repo access, or non-Req HTTP clients). Additionally, Dialyzer is run to catch type warnings, ensuring higher code reliability and consistency across the codebase.
(repo-wide) · high confidence
Nyaa and Sukebei crawlers now use RSS feeds instead of HTML scraping
The Nyaa and Sukebei crawlers have been refactored to fetch data via RSS feeds rather than scraping HTML pages. This change introduces a shared feed parser (\Magnetissimo.Crawlers.Nyaa.Feed\) that extracts torrent details like title, infohash, and size directly from the RSS XML, building magnet URIs with standard trackers. The crawlers now rely on site-specific configurations for RSS URLs, trackers, and category mappings, resulting in more reliable data extraction and consistent categorization under the Torznab standard.
lib/magnetissimo/crawlers/nyaa · high confidence
Retheme UI to Y2K glass atrium and remove daisyUI dependency
The application's visual style has shifted from a standard light/dark theme powered by daisyUI to a custom 'corporate Y2K' aesthetic featuring glass-like azure tones, specific fonts (Quicksand, Jura, Silkscreen, Space Mono), and a new color palette. The daisyUI plugin and its bundled themes have been removed from the CSS build, replaced by Tailwind's native @theme directive for custom design tokens. Additionally, the live navigation progress bar has been restyled with a new gradient and shadow effect to match the updated theme.
assets · high confidence
Simplified production setup and improved database reliability
The application now runs with zero configuration required for a standard release: the secret key is automatically generated and persisted alongside the database file, and SSL is no longer forced at the application level, allowing it to sit behind an HTTPS reverse proxy. For users, this means a much easier initial setup. Additionally, the SQLite database configuration has been changed to use immediate transaction mode, which prevents 'database is locked' errors when multiple crawlers write simultaneously, ensuring more reliable data ingestion.
config · high confidence
UI retheme to Y2K aesthetic and removal of daisyUI dependency
The application's visual style has shifted from a CRT terminal look to a 'soft Y2K' pastel aesthetic, featuring new decorative elements like sparkles and a 'sky' background in the main layout. The underlying styling framework has been simplified by dropping the daisyUI plugin in favor of plain Tailwind CSS, which also means the application is now light-only with no dark mode support. A new set of UI components for torrent details has been introduced, including category chips, swarm health bars, and a unique fingerprint visualization for infohashes. Additionally, the navigation layout has been updated to include horizontal scrolling on mobile devices and a dedicated theme switcher component.
_lib/magnetissimo\web/components · high confidence
Updated layout with system theme support and new assets
The root layout template now applies a frost-100 background and ink-900 text color, and supports a system-based color theme via the data-theme attribute. It includes dynamic theme-color meta tags for browser UI theming, a specific favicon link, and preloads for Quicksand, Jura, and Silkscreen fonts. The previous inline JavaScript for manual light/dark/system theme switching has been removed, delegating theme management to the new data-theme approach.
_lib/magnetissimo\web/components/layouts · high confidence
Test coverage
Added controller tests for theme switching, torrent search, and Torznab API; Added test coverage for DHT crawling and classification components; Added test fixtures for multiple torrent crawlers; Added test support crawlers for concurrent and error scenarios; Added test support modules for DHT crawling; Added tests for DHT, Home, and Torrent LiveViews; Added tests for LiveView socket origin checks, size formatting, and search filters; Added tests for advanced search, DHT listing, file list search, indexing, and query parsing; Added tests for new crawler implementations and infrastructure; Added tests for seed management, source search concurrency, and taxonomy validation; Updated test support helpers and documentation.
Dependencies
Upgrade to Elixir 1.20 and add static analysis tooling
The project now requires Elixir 1.20 and bumps the version to 3.1.1. To support development and deployment quality, several static analysis tools (Credo, ex\_slop, ex\_dna, dialyxir, and reach) have been added as dev/test dependencies, and the precommit hook has been expanded to run these checks. The build process for assets now compiles code first to ensure generated CSS and hooks are available. Additionally, the daisyUI dependency has been removed, and the :crypto application has been added to the extra applications list.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 53 → 54 (+1.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 98 → 98 (+0.0)
- Architecture 82 → 95 (+13.1)
- Maturity 62 → 69 (+6.9)
- Readiness 50 → 50 (-0.1)
- Security 42 → 40 (-1.8)
Resolved (1)
- Projects may be oversized for their cohesion
New (7)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Outdated: lazy_html
- Outdated: phoenix_html
- Outdated: swoosh
- Outdated: tailwind
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
sergiotapia/magnetissimo was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 10 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 4ab21351dd5ffd752d44b7373aa32abd679ad6da — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.4+preprod-464a0040a931.