Skip to content
nirmaleeswar30Public

About

Tory - The Intelligent Torrent Discovery Engine

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

Repository files navigation

Tory Logo

The Intelligent Torrent Discovery Engine

Version Flutter Dart Node.js Shorebird Backend License

One tap. Best torrent. Every time.

πŸš€ Quick Start β€’ πŸ“± Features β€’ πŸ—οΈ Architecture β€’ βš™οΈ Configuration


🌟 Overview

Tory is an intelligent torrent discovery app built with Flutter. It aggregates results from 17+ torrent indexers via its own tory-server backend, scores them using a multi-factor algorithm, and surfaces the best results through a polished dark UI. Discover movies via TMDB, anime via AniList + Jikan, and browse episodes with full season/episode pickers β€” all with one tap to magnet link.

πŸ“± Features

πŸ” Intelligent Search Engine

  • 17 Torrent Sources β€” 1337x, YTS, NyaaSi, PirateBay, TorrentGalaxy, EZTV, RARBG, KickAss, and more
  • Multi-Factor Scoring β€” Seeders (40%), S/L ratio (25%), file size (15%), recency (10%), source reliability (10%)
  • SubsPlease / Erai-raws Bonus β€” +5 score for known quality anime release groups
  • Dual Search β€” Runs two query formats in parallel (scene S01E02 + SubsPlease style), merges & deduplicates results

🎬 Media Discovery

  • TMDB Integration β€” Trending, popular, and top-rated movies & TV shows with poster art
  • AniList Integration β€” Trending, popular, and latest airing anime via GraphQL API
  • Jikan / MAL β€” Episode details with thumbnails, titles, air dates, scores, filler/recap tags
  • Season & Episode Pickers β€” Two-step UI: bottom sheet with episode range cards β†’ full-screen episode browser

🎌 Anime-Optimized Search

  • Season Extraction β€” Detects season numbers from titles ("2nd Season", "Part 3", Roman numerals)
  • Short Title Detection β€” Strips subtitles after colons for SubsPlease-style queries
  • Smart Query Format β€” S1: Title - 03, S2+: Title S2 - 03 (matching real fansub naming)

🎨 UI / UX

  • Deep Navy Dark Theme β€” Custom AppTheme with crimson accents throughout
  • Shimmer Loading β€” Skeleton placeholders while content loads
  • Score Badges β€” Color-coded quality indicators on every torrent card
  • Source Chips β€” Quick-switch between indexers with emoji icons
  • Sort Filters β€” Best Match, Most Seeders, Smallest, Newest, Largest, Latest
  • Scroll-to-Top β€” Auto-scrolls when switching sort modes

πŸ”„ OTA Updates (Shorebird)

  • Code Push β€” Hot-patch the app without a store release
  • Patch Version Display β€” About screen shows current patch number
  • Bundletool Script β€” Included build_universal_apk.ps1 to convert AAB β†’ APK

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        Flutter App (Dart)                       β”‚
β”‚                                                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Home     β”‚  β”‚  Search  β”‚  β”‚ Episodes β”‚  β”‚   Settings    β”‚  β”‚
β”‚  β”‚  Screen   β”‚  β”‚  Screen  β”‚  β”‚  Screen  β”‚  β”‚   Screen      β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚       β”‚              β”‚              β”‚                            β”‚
β”‚  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”                     β”‚
β”‚  β”‚           Provider (State Mgmt)       β”‚                     β”‚
β”‚  β”‚  SearchProvider Β· SettingsProvider     β”‚                     β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜                     β”‚
β”‚       β”‚              β”‚              β”‚                            β”‚
β”‚  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚  β”‚ API     β”‚   β”‚  TMDB    β”‚  β”‚  AniList   β”‚                    β”‚
β”‚  β”‚ Service β”‚   β”‚  Service β”‚  β”‚  Service   β”‚                    β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚              β”‚              β”‚
        β–Ό              β–Ό              β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚tory-     β”‚  β”‚ TMDB API  β”‚  β”‚AniList GQL   β”‚  β”‚ Jikan API  β”‚
  β”‚server    β”‚  β”‚   v3      β”‚  β”‚              β”‚  β”‚  (MAL)     β”‚
  β”‚:8080     β”‚  β”‚           β”‚  β”‚              β”‚  β”‚            β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Project Structure

tory/
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ main.dart                    # Entry point
β”‚   β”œβ”€β”€ app.dart                     # MaterialApp setup
β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ constants.dart           # Sources, API keys, categories
β”‚   β”‚   └── theme.dart               # AppTheme (deep navy + crimson)
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ torrent.dart             # Torrent data model + scoring
β”‚   β”‚   β”œβ”€β”€ tmdb_media.dart          # TMDB movie/TV model
β”‚   β”‚   └── anilist_media.dart       # AniList model + season extraction
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ api_service.dart         # Torrents-Api HTTP client
β”‚   β”‚   β”œβ”€β”€ tmdb_service.dart        # TMDB API v3
β”‚   β”‚   β”œβ”€β”€ anilist_service.dart     # AniList GraphQL
β”‚   β”‚   └── storage_service.dart     # SharedPreferences wrapper
β”‚   β”œβ”€β”€ providers/
β”‚   β”‚   β”œβ”€β”€ search_provider.dart     # Search state + dual-search + sorting
β”‚   β”‚   └── settings_provider.dart   # API URL, TMDB key, default source
β”‚   β”œβ”€β”€ screens/
β”‚   β”‚   β”œβ”€β”€ splash_screen.dart       # Animated splash
β”‚   β”‚   β”œβ”€β”€ home_screen.dart         # TMDB + AniList discovery sections
β”‚   β”‚   β”œβ”€β”€ search_screen.dart       # Search UI with source/sort chips
β”‚   β”‚   β”œβ”€β”€ episode_screen.dart      # TMDB episode browser
β”‚   β”‚   β”œβ”€β”€ anime_episode_screen.dart# Anime episode browser (Jikan)
β”‚   β”‚   β”œβ”€β”€ favorites_screen.dart    # Saved items
β”‚   β”‚   └── settings_screen.dart     # Config + About (version/patch)
β”‚   └── widgets/
β”‚       β”œβ”€β”€ torrent_card.dart        # Torrent result card
β”‚       β”œβ”€β”€ torrent_detail_sheet.dart # Bottom sheet details
β”‚       β”œβ”€β”€ media_card.dart          # TMDB media card
β”‚       β”œβ”€β”€ anime_card.dart          # AniList anime card
β”‚       β”œβ”€β”€ episode_picker_sheet.dart # TMDB season picker sheet
β”‚       β”œβ”€β”€ anime_episode_sheet.dart # Anime episode range sheet
β”‚       β”œβ”€β”€ score_badge.dart         # Color-coded score indicator
β”‚       β”œβ”€β”€ source_chip.dart         # Source selector chip
β”‚       └── shimmer_loader.dart      # Skeleton loading effect
β”œβ”€β”€ assets/
β”‚   └── logo.png
β”œβ”€β”€ shorebird.yaml                   # Shorebird app config
β”œβ”€β”€ build_universal_apk.ps1          # AAB β†’ universal APK script
└── pubspec.yaml

πŸš€ Quick Start

Prerequisites

  • Flutter SDK 3.8+
  • Node.js (LTS) for the backend
  • Shorebird CLI (optional, for OTA updates)
  • TMDB API Key β€” get one here

1. Backend Setup

# Clone and start the tory-server backend
git clone https://github.com/nirmaleeswar30/tory-server.git
cd tory-server
npm install
npm start
# Runs on http://localhost:8080

2. Flutter App Setup

cd Tory
flutter pub get
flutter run

3. Configure in App

Open Settings in the app to set:

  • API Base URL β€” defaults to https://tory-server.vercel.app (or set your own)
  • TMDB API Key β€” your v3 API key
  • Default Source β€” preferred torrent indexer

βš™οΈ Configuration

Torrent Sources (17)

Source Emoji Reliability Best For
YTS 🎬 95% Movies (small size)
1337x πŸ”₯ 90% Everything
NyaaSi 🎌 90% Anime
RARBG ⚑ 90% Movies & TV
TorrentGalaxy 🌌 85% General
EZTV πŸ“Ί 85% TV Shows
PirateBay πŸ΄β€β˜ οΈ 80% General
KickAss πŸ’₯ 75% General
BitSearch πŸ”Ž 75% General
ETTV πŸ“‘ 75% TV
Torlock πŸ”’ 70% General
Zooqle πŸ” 70% General
GloTorrents 🌍 70% General
MagnetDL 🧲 70% General
TorrentProject πŸ“‹ 70% General
LimeTorrent πŸ‹ 65% General
TorrentFunk 🎡 65% General

Scoring Algorithm

Score = Seeders (40%) + S/L Ratio (25%) + Size (15%) + Recency (10%) + Source (10%)
       + SubsPlease/Erai-raws bonus (+5)

API Endpoints

Service URL Purpose
tory-server https://tory-server.vercel.app/api/{source}/{query} Torrent search
TMDB https://api.themoviedb.org/3/ Movie & TV metadata
AniList https://graphql.anilist.co Anime discovery
Jikan https://api.jikan.moe/v4/ Episode details (MAL)

πŸ”„ Shorebird OTA Updates

# Create a release
shorebird release android

# Convert AAB to universal APK
.\build_universal_apk.ps1

# Push a patch (after code changes)
shorebird patch android

Patch number is displayed in Settings β†’ About.

πŸ› οΈ Tech Stack

Layer Technology
UI Flutter 3.8 / Dart 3.8
State Provider
Storage SharedPreferences
OTA Shorebird Code Push
Backend Node.js (tory-server)
Movie Data TMDB API v3
Anime Data AniList GraphQL + Jikan v4

⚠️ Disclaimer

Educational Purpose Only. This project is intended for educational and research purposes. Users are responsible for complying with all applicable laws and regulations in their jurisdiction. The developers do not endorse or encourage the downloading of copyrighted material without proper authorization.


Built with ❀️ using Flutter & Dart

About

Tory - The Intelligent Torrent Discovery Engine

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages