Repository navigation
v1.0.0
The first release of KnightLoader itself. The Android app and the browser extension have been shipping for a while; this is the server, web interface and desktop build they talk to.
A self-hosted download manager: paste links, see what they are before anything downloads, and let the right backend take each one.
✨ What it does
- A collector that stages links before anything downloads. Name, size, availability and the backend that will take each one, shown first. A link no backend handles is still listed, with the reason attached, and can be rechecked without re-pasting.
- Crawling: a pasted page becomes the files it links to. Only a link no real backend recognised is opened, so a plain download costs no extra request.
- Resolvers for direct links, TorBox, AllDebrid, Real-Debrid, yt-dlp, and a headless JDownloader as the catch-all. When one says a link is not its business, the next gets a turn.
- A scheduler with global and per-host concurrency, priorities, manual queue order, and retries with a growing delay.
- A speed limit that applies to everything and takes effect on downloads already running. The embedded engine has no rate-limit hook, so its traffic goes through a loopback proxy where the bytes are metered.
- Download folders: a global folder, an optional per-package subfolder, a per-task override, and path templates such as
/downloads/<jd:date>/<jd:hoster>/<jd:packagename>. - Extraction of zip, rar including multi-volume, 7z including split volumes, tar, gz, bz2, xz and zst. A multi-part set waits for every part. Encrypted rar and 7z take passwords, per task first and then from a configured list.
- Checksum verification against an
.sfv,.md5or.sha*that arrived with the batch, or a CRC in the file name. - Click'n'Load from a site's own button, including the preflight modern browsers require before a page may reach a loopback address. The same binary runs as a bridge for instances that are not on the browser's own machine.
- A watched folder for
.txtand JDownloader.crawljobdrop files, carrying package name, destination and archive password.
🔗 Connecting instances
- Multi-instance federation. Register other KnightLoaders and drive them all from one dashboard. Instances on the same network announce themselves over multicast and are one click to add. Two that cannot reach each other directly meet through a relay you host yourself.
- A twelve-word connection phrase. Read it off one instance, type it into the next. No account, no login, no port forward, no domain, no third-party site. The words are BIP39's: no two share their first four letters, none are near-homophones, none carry accents, so a phrase survives being read down a phone line. Its checksum refuses a mistyped or swapped word on the spot, naming the word and its position.
- The relay cannot read what it forwards. Every proxy frame is sealed with AES-256-GCM under a key derived separately from the one the relay holds. A relay sees which instance a frame is for and which request it answers, because it routes on those. Not the path, not the body, not the API token a phone attaches.
- Being in the group is the credential. A request arriving over the relay came off a socket that only admits connections presenting the group key, so the sender has already proved it holds the phrase. What a sibling may reach is an allowlist: tasks, links, the queue, and reading the auth state, peer list and accent. Not the settings, not the accounts, not the phrase.
- One instance can be the relay, from a switch on the Access tab, answering under
/relay/connecton the address it already uses. Off, the route answers 404. SetKL_RELAY_DOMAINand it terminates TLS itself over TLS-ALPN-01: no reverse proxy, no certbot, no renewal cron, and no port 80.
📋 Where things are
- Connecting: Settings › Access, one card, opening with whether the group is up and then the phrase.
- Self-hosting the relay: Settings › Advanced (
relayUrl,relayServe). - App and extension: Browser & App, with store badges and a direct APK download.
🔒 Note on the Android app
The app asks for four fewer permissions than it used to, and those four were why Play Protect blocked the install: SYSTEM_ALERT_WINDOW, the microphone, biometrics and external storage. None came from this code, they were pulled in by expo-camera, React Native and expo-secure-store. What remains is camera, internet, and network and Wi-Fi state.