How thebeastlt/torrentio-scraper works
Torrentio is a Stremio addon that finds scraped torrent entries and presents them as playable streams; its resolve route can then hand a selected stream to a debrid provider. A separate catalogs addon exposes catalog metadata derived from indexed torrents. The main flow is supported by the README and sampled routing, repository, and provider excerpts; source for the core addon handlers and catalog metadata implementation was not sampled, so their internal wiring is shown only at a high level.
Main entry points: serverless.js Addon HTTP routes · addon.js Addon handlers · moch.js Provider dispatch · realdebrid.js Real-Debrid adapter
Components 20
Addon serving
- Addon HTTP routes
addon/serverless.js - Addon handlers
addon/addon.js - Configuration UI
addon/lib/landingTemplate.js
Stream discovery
- Torrent index
addon/lib/repository.js - Stream selection
addon/lib/filter.js - Stream ordering
addon/lib/sort.js - Magnet lookup
addon/lib/magnetHelper.js - Availability cache
addon/lib/cache.js
Debrid resolution
- Provider dispatch
addon/moch/moch.js - Real-Debrid adapter
addon/moch/realdebrid.js - TorBox adapter
addon/moch/torbox.js - Other adapters
addon/moch - Debrid services
Catalog service
- Catalog HTTP routes
catalogs/serverless.js - Catalog handlers
catalogs/addon.js - Catalog index query
catalogs/lib/repository.js - Catalog caching
catalogs/lib/cache.js - Metadata lookup
catalogs/lib/metadata.js
Other components
- Stremio client
- Metadata source
Connections 22
- Stremio client → Addon HTTP routes: requests streams
- Addon HTTP routes → Addon handlers: dispatches requests
- Addon HTTP routes → Configuration UI: renders setup
- Addon handlers → Torrent index: queries entries
- Addon handlers → Stream selection: filters results
- Addon handlers → Stream ordering: orders results
- Addon HTTP routes → Provider dispatch: dispatches resolve
- Provider dispatch → Real-Debrid adapter: calls adapter
- Provider dispatch → TorBox adapter: calls adapter
- Provider dispatch → Other adapters: calls adapter
- Real-Debrid adapter → Availability cache: reads availability
- Real-Debrid adapter → Magnet lookup: gets magnet
- TorBox adapter → Magnet lookup: gets magnet
- Real-Debrid adapter → Debrid services: requests links
- TorBox adapter → Debrid services: requests links
- Other adapters → Debrid services: requests links
- Stremio client → Catalog HTTP routes: requests catalogs
- Catalog HTTP routes → Catalog handlers: dispatches requests
- Catalog handlers → Catalog caching: caches catalog data
- Catalog handlers → Catalog index query: queries identifiers
- Catalog handlers → Metadata lookup: loads metadata
- Metadata lookup → Metadata source: looks up metadata