ogarcia/rucio
소개
Rucio P2P file sharing
생산성 및 자동화What you can do
- Fully decentralized — peers discover each other via mDNS (local network) and Kademlia DHT (internet)
- Web control panel — manage shares, searches and downloads from the browser; served by the daemon itself, no separate process
- Command-line client — scriptable rucio CLI for shares, searches, downloads and node status, locally or against a remote daemon
- eMule / Kad2 compatibility (opt-in) — search the Kad network and download ed2k:// links alongside native Rucio transfers
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalRucio
A decentralized peer-to-peer file sharing application built in Rust, inspired by eMule and MLDonkey and adapted to modern infrastructure.
No trackers. No central servers. No relay nodes for data transfer.
Files are discovered via a distributed hash table (Kademlia DHT) and keyword
search (Gossipsub), and transferred directly between peers. A web control panel
and a full command-line client ship in the box, and Rucio can optionally bridge
to the eMule / Kad2 network to download ed2k:// files.
Features
- Fully decentralized — peers discover each other via mDNS (local network) and Kademlia DHT (internet)
- Web control panel — manage shares, searches and downloads from the browser; served by the daemon itself, no separate process
- Command-line client — scriptable
rucioCLI for shares, searches, downloads and node status, locally or against a remote daemon - eMule / Kad2 compatibility (opt-in) — search the Kad network and
download
ed2k://links alongside native Rucio transfers - Magnet links — share any file with a single
rucio:<hash>link, entirely offline if desired - Resumable downloads — interrupted transfers pick up where they left off after a restart
- Directory sharing — add a directory and every file inside is indexed, hashed, and announced automatically
- HighID / LowID — nodes behind NAT can still download; publicly reachable nodes serve chunks to everyone
- Single binary —
rucioacts as both daemon (ruciod) and CLI depending on how it is invoked
How it works
Rucio is an evolution of eMule/ed2k: serverless, hash-identified files found through a distributed hash table, rebuilt on libp2p. It runs its own peer-to-peer network — a protocol only Rucio nodes speak:
- Discovery — a Kademlia DHT. Files are identified by the BLAKE3 hash of their contents; nodes announce the hashes they have and look up who has a hash they want. Rucio's own DHT, separate from eMule's Kad.
- Search — Gossipsub. Keyword queries are gossiped to connected peers, which answer with the files they share.
- Transfer — direct peer-to-peer, in chunks, each verified against the file's BLAKE3 hash as it arrives. No tracker, no relay for the data itself.
Port 4321/TCP is this network, and only other Rucio nodes talk on it. The
web panel + API live on 3003/TCP (a local control surface, not part of the
P2P network). The optional eMule / Kad2 bridge is a separate thing on the
classic eMule ports (4662/TCP + 4672/UDP): it lets Rucio also reach the
existing eMule/Kad user base and download ed2k:// files, and it's off unless
you enable it. Rucio does not interoperate with BitTorrent or eD2K servers by
design (see Scope).
New to Rucio? The How it works guide is a
one-page mental model of all of the above. Building a client? The whole wire
protocol is specified in PROTOCOL.md — Rucio is meant to have
many interoperable implementations.
Scope
Rucio is an evolution of eMule/ed2k, not a universal multi-protocol client. It
keeps what made that network good and rebuilds it on a modern, libp2p-native,
fully decentralized core — which is why it speaks ed2k/Kad2 natively and can
download ed2k:// links alongside native transfers.
BitTorrent and other protocols are out of scope. They share none of that lineage — a different content-identity model, a different DHT, a different exchange model — and supporting them would mean building and maintaining a whole parallel stack, a permanent cost for something mature dedicated clients already do well. Rucio stays focused instead.
Quick install
Container (recommended)
Pre-built images are published to ghcr.io/ogarcia/rucio. The default latest
tag is the complete client — daemon, CLI, embedded web panel and eMule support:
docker run -d --name rucio \
-e RUCIOD_API_LISTEN=0.0.0.0:3003 \
-v rucio-data:/var/lib/rucio \
-p 3003:3003/tcp \
-p 4321:4321/tcp \
-p 4662:4662/tcp \
-p 4672:4672/udp \
ghcr.io/ogarcia/rucio:latest
Ports: 3003 web panel + API, 4321/tcp the Rucio libp2p network, and
4662/tcp + 4672/udp eMule/Kad2. Map the eMule ports so the node is reachable
(High-ID) — without them eMule still works but downloads are much slower
(Low-ID), and you can drop them entirely if you don't use eMule.
Then open http://localhost:3003/ for the panel. Other flavors are available —
latest-headless (daemon only), latest-cli (standalone client) and
latest-bootstrap (DHT bootstrap node). See the
installation guide for the full matrix.
From a release binary
Download the archive for your platform from the Releases page, unpack it and place the binary on your PATH:
tar -xzf rucio-*-x86_64-unknown-linux-musl.tar.gz
install -m755 rucio /usr/local/bin/rucio
ln -s /usr/local/bin/rucio /usr/local/bin/ruciod
The release binary is the complete client with the web panel and eMule support built in.
Windows (portable app)
Windows ships as a portable desktop app instead of a daemon + CLI. Download
rucio-<version>-windows-x86_64-portable.zip from the Releases
page, extract it into a writable folder (Desktop or Documents, not Program
Files) and run Rucio.exe. It bundles the daemon, web panel and eMule support in
a single window, and all of its state lives next to the .exe. See the
installation guide.
Linux (desktop app)
Prefer a windowed app over the daemon + CLI? Linux also ships an optional
desktop build as a Flatpak. Download rucio-<version>-linux-x86_64.flatpak from
the Releases page and install it:
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user rucio-*-linux-x86_64.flatpak
flatpak run me.ogarcia.rucio
It bundles the daemon, web panel and eMule support in one window, and keeps all of its state inside the Flatpak sandbox. See the installation guide.
From source
Requires Rust 1.85 or later (uses the 2024 edition).
git clone https://github.com/ogarcia/rucio
cd rucio
cargo build --release
install -m755 target/release/rucio /usr/local/bin/rucio
ln -s /usr/local/bin/rucio /usr/local/bin/ruciod
A plain build gives the daemon and CLI. Add --features emule-compat for eMule
support and --features web-ui for the embedded panel — see the
installation guide
for the details (the panel also needs the Leptos frontend built with trunk).
Five-minute walkthrough
This walkthrough is for Linux and macOS. On Windows there is nothing to set up — just launch
Rucio.exeand the panel opens in its own window.
Start the daemon (keeps running in the foreground; use a service manager or
tmux/screen for persistent operation):
ruciod
Open the web panel. If your build includes it (the release binary and
container do), the daemon now serves the full control panel at
http://127.0.0.1:3003/ — share, search, download and watch progress from
the browser. Everything below can be done from there too; the CLI steps that
follow are the equivalent for scripting or headless setups.
Share a directory:
rucio share add ~/Movies
Check what you are sharing:
rucio share list
Search the network (--wait blocks until results come in):
rucio search add --wait "big buck bunny"
Download a result (by index from the last search, or by magnet / ed2k link):
rucio download add 1
rucio download add "rucio:abc123...?name=big_buck_bunny.mkv&size=734003200"
Watch progress:
rucio download list --watch
Get a magnet link to share with someone:
rucio share magnet 1 # by row number from `rucio share list`
rucio share magnet --file /path/to/file.mkv # offline, no daemon needed
Documentation
| Guide | Description |
|---|---|
| User guide | Installation, configuration and everyday usage |
| Admin guide | Running bootstrap nodes, the DHT indexer and resource statistics |
| Design docs | Architecture, protocols and implementation decisions |
Support the network
Rucio is decentralized, but it still relies on a handful of stable, always-on bootstrap nodes so new clients can always find their way into the network. That infrastructure — not the developer — is what keeps the network reachable, and it is remarkably cheap to provide: a bootstrap node is tiny, using on the order of ~50 GB of traffic per month, ~35 MB of RAM and negligible CPU — well within the smallest VPS, or a provider's free tier.
There are two ways to help:
- Run a bootstrap node. The most direct contribution: one more stable entry point makes the network faster to join and more resilient. It is a single small binary — see the admin guide to set one up.
- Sponsor the infrastructure. If you or your company runs hosting, donating a small always-on instance for a bootstrap node costs next to nothing and directly strengthens the network. You can also chip in through GitHub Sponsors to help cover it.
Sponsorship goes to keeping the network's infrastructure running, not to the author.
관련 프로젝트 살펴보기
불러오는 중…