Tirkey Logo
BACK TO WORKS ARCHIVE
CASE STUDY•03 / 011
Systems / DesktopYEAR 2026 ARCHIVEFLAGSHIP SHIPMENTOPEN SOURCEMIT LICENSERUST NATIVEGPU ACCELERATED

MPD: Multi-Protocol Media & Torrent Downloader

Fast, cross-platform media stream and BitTorrent downloader desktop app and CLI built in Rust with 1-click engine installers.

ENGINEERING SPECIMEN // FIG. 01
MPD: Multi-Protocol Media & Torrent Downloader
ROLE & RESPONSIBILITY

Lead Systems & Desktop Architect

TIMELINE & STATUS

2026 – Present • Open Source v1.0.0

CONTEXT

Media Stream Systems & Distributed P2P Networks

KEY PERFORMANCE METRICS
ENGINERUST + EFRAME/EGUI
PROTOCOLSSTREAM + BITTORRENT
PROVISIONING1-CLICK AUTO INSTALL
LICENSEMIT OPEN SOURCE
ARCHITECTURAL OVERVIEW & PHILOSOPHY

MPD (Multi-Protocol Downloader) unifies multi-source media acquisition and peer-to-peer data ingestion into a lightweight, GPU-accelerated desktop application written in Rust (1.75+) with eframe and egui. It eliminates terminal complexity by embedding automated one-click engine installers for standalone yt-dlp and static FFmpeg binaries on Windows, macOS, and Linux, while incorporating an embedded pure-Rust BitTorrent/DHT engine for acquiring datasets, ISOs, and magnet links. Includes live format inspection, speed and ETA telemetry, instant playback triggers, and a headless CLI runner for terminal scripts.

A high-performance native desktop application and CLI tool built in Rust & egui for rapid multimedia stream acquisition across 1,000+ websites and BitTorrent/magnet networks, featuring 1-click automated installers for yt-dlp and FFmpeg.

TECHNOLOGY STACK & RUNTIMES
Rust 1.75+egui / eframeyt-dlp CoreFFmpeg StaticBitTorrent / DHTTokio Asyncrfd (Native Dialogs)open (System Dispatch)
ENGINEERING RATIONALE

CHALLENGE & ARCHITECTURAL SOLUTION

// PROBLEM & BOTTLENECKS

Traditional media downloaders require complicated terminal setups, manual FFmpeg PATH configuration, or are bundled with ad-injected Electron wrappers that consume 500MB+ RAM. Meanwhile, downloading peer-to-peer torrents requires an entirely separate, heavy client.

// ENGINEERED SOLUTION

Architected MPD as a single lightweight native Rust application combining a pure-Rust BitTorrent/DHT engine with automated background 1-click installation of yt-dlp and FFmpeg, delivering sub-30MB memory footprint, zero web views, and GPU-accelerated 60fps rendering.

SYSTEM DESIGN DEEP DIVE

ARCHITECTURAL BLUEPRINTS

SYSTEM SPEC // 01

Dual Protocol Ingestion Architecture

Unifies HTTP, HLS, DASH, RTMP, and BitTorrent/magnet streams under a unified asynchronous Tokio task supervisor.

SYSTEM SPEC // 02

Automated 1-Click Engine Provisioning

Background installer module verifies, downloads, and unpacks static FFmpeg and yt-dlp binaries directly into local application data with zero PATH alteration.

SYSTEM SPEC // 03

Pure-Rust BitTorrent & DHT Swarm Engine

Embedded P2P client handles distributed hash table (DHT) node lookups, peer handshakes, piece verification, and uTP transport natively.

SYSTEM SPEC // 04

GPU-Accelerated Immediate-Mode UI

Rendered via eframe / egui directly on OpenGL with custom Lucide vector primitives, collapsible navigation sidebars, and instant theme switching.

NATIVE RUST 1.75+ MULTI-PROTOCOL INGESTION ENGINE // EFRAME + EGUI

DUAL PROTOCOL INGESTION & 1-CLICK ENGINE ARCHITECTURE

Unified media stream acquisition across 1,000+ extractors alongside native pure-Rust BitTorrent/DHT peer networking. Zero Electron, zero WebKit, and sub-30MB RAM footprint.

GPU ACCELERATED OPENGL CLIENT
Dual Protocol Ingestion Engine UI preview
01 // DUAL INGESTION
RUST ENGINE
WEB & TORRENT
MODULE 01TOKIO ASYNC

Dual Protocol Ingestion Engine

Seamlessly handles direct media URLs across 1,000+ streaming sites alongside 40-character hex BitTorrent info-hashes and magnet URIs.

yt-dlp & FFmpeg 1-Click Installer UI preview
02 // 1-CLICK PROVISIONING
RUST ENGINE
AUTO-INSTALLER
MODULE 02TOKIO ASYNC

yt-dlp & FFmpeg 1-Click Installer

Zero manual PATH setup. Automatically discovers, downloads, decompresses, and activates static FFmpeg and yt-dlp binaries on Windows, macOS, and Linux.

Dynamic Stream Format Explorer UI preview
03 // FORMAT EXPLORER
RUST ENGINE
STREAM RESOLVER
MODULE 03TOKIO ASYNC

Dynamic Stream Format Explorer

Asynchronously inspects video metadata, previews thumbnails, and lets users pick exact resolution (4K, 1080p, 720p, 480p) or extract pure MP3 audio.

Live Throughput & Swarm Telemetry UI preview
04 // REAL-TIME METRICS
RUST ENGINE
SWARM TELEMETRY
MODULE 04TOKIO ASYNC

Live Throughput & Swarm Telemetry

Real-time download velocity meters (MB/s or KB/s), estimated time of arrival, active peer counts for torrent swarms, and instantaneous cancellation.

Headless Command-Line Interface UI preview
05 // HEADLESS CLI
RUST ENGINE
TERMINAL RUNNER
MODULE 05TOKIO ASYNC

Headless Command-Line Interface

Detects command-line arguments to execute high-throughput media and torrent downloads directly from terminal environments and automated scripts.

Native File Chooser & Playback Dispatch UI preview
06 // OS INTEGRATION
RUST ENGINE
SYSTEM DISPATCH
MODULE 06TOKIO ASYNC

Native File Chooser & Playback Dispatch

Integrated native OS folder selectors via rfd, 1-click clipboard paste, and direct opening of completed media in default operating system players.

DUAL PROTOCOL INGESTION SPECIFICATION MATRIX
UNIFIED ASYNCHRONOUS ENGINE // STREAM & P2P
Subsystem FeatureWeb Media Streaming (yt-dlp Core)BitTorrent / Magnet Swarm (Rust P2P)
Protocol HandlersHTTP/HTTPS, HLS (.m3u8), DASH (.mpd), RTMPMagnet URIs, 40-char InfoHash, DHT, uTP, TCP
Engine ExecutionNon-blocking subprocess with live stdout stream parserEmbedded pure-Rust DHT crawler & piece supervisor
Format FilteringBest merged, 1080p, 720p, 480p, pure MP3 conversionMulti-file torrent inspection and piece verification
Live TelemetryTransfer speed (MB/s), downloaded bytes, ETA, %Active swarm peer count, verified pieces, speed
Binary Dependency1-click automated installer provisions yt-dlp & FFmpeg100% native Rust, zero external daemon binaries
1-CLICK AUTOMATED ENGINE PROVISIONING PIPELINE
ZERO MANUAL PATH CONFIGURATION
01 // DISCOVERY

Binary Inspection

Checks application local data storage and system PATH for compatible yt-dlp and static FFmpeg executables.

02 // ARCHITECTURE

Platform Match

Resolves OS kernel target (Windows x64, macOS Universal, or Linux x86_64) to select official release builds.

03 // DOWNLOAD

Direct Stream

Streams standalone binaries directly with progress feedback, unpacking archives with zero external extraction tools.

04 // ACTIVATION

Sandbox Linking

Grants executable permissions and establishes direct application runtime pointers with instant version verification.

HEADLESS COMMAND-LINE INTERFACE (CLI)
SCRIPTABLE ENGINE RUNNER // RUST 1.75+

MPD automatically detects command-line flags, bypassing the graphical window for automated terminal scripts:

# Download highest quality video + audio stream

$ cargo run --release -- "https://www.youtube.com/watch?v=dQw4w9WgXcQ"

# Download with 1080p preset or direct MP3 audio extraction

$ cargo run --release -- "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --preset 1080p

$ cargo run --release -- "https://soundcloud.com/artist/track" --preset audio

# Ingest torrent swarm via magnet link

$ cargo run --release -- "magnet:?xt=urn:btih:40_CHAR_HEX_INFOHASH"

FUNCTIONAL SPECIFICATIONS

CORE SYSTEM CAPABILITIES

CAPABILITY // 01

Dual-protocol ingestion engine: extracts media from 1,000+ web extractors (YouTube, Vimeo, SoundCloud, TikTok, Reddit, Twitch) alongside native BitTorrent/magnet links

CAPABILITY // 02

Pure-Rust GPU-accelerated desktop UI (eframe / egui) with 0% Electron, 0% WebKit, and 0% Node.js runtime bloat

CAPABILITY // 03

1-click automated engine provisioning: downloads, verifies, and activates standalone yt-dlp and static FFmpeg binaries with zero manual PATH configuration

CAPABILITY // 04

Embedded pure-Rust BitTorrent engine: peer-to-peer DHT network crawling, uTP transport, and live peer count telemetry

CAPABILITY // 05

Stream format explorer: filter streams by combined video+audio, audio-only (MP3), or raw video, inspecting codec, bitrate, resolution, container, and file size

CAPABILITY // 06

Real-time download telemetry: live progress bars, transfer speeds (MB/s), estimated time of arrival (ETA), and instant cancellation

CAPABILITY // 07

Native OS desktop integration: native file dialogs via rfd, 1-click system player launching via open, and native clipboard paste

CAPABILITY // 08

Headless command-line interface (CLI) mode for terminal execution, shell scripting, and automated workflow pipelines

SCREENSHOT & INTERFACE ARCHIVE // DARK MODE3 PLATES ARCHIVED
MPD: Multi-Protocol Media & Torrent Downloader preview plate 01
PLATE // 01
MPD: Multi-Protocol Media & Torrent Downloader preview plate 02
PLATE // 02
MPD: Multi-Protocol Media & Torrent Downloader preview plate 03
PLATE // 03
EXPLORE ADJACENT ARCHITECTURE
CONTRACT WORK • HIGH-IMPACT ROLES • SYSTEMS COLLABORATIONBENGALURU • GLOBAL REMOTE

NEED SCALABLE ARCHITECTURE CRAFTED WITH RESTRAINT?

Whether you need to architect a high-concurrency web platform, build a native desktop application in Rust, or deploy production Android apps — let's build together.