Motrix
Motrix is a full-featured download manager that supports downloading HTTP, FTP, BitTorrent, Magnet, etc. Protocol Launcher allows you to generate deep links to create download tasks and control Motrix.
Usage
There are two ways to use this library:
- On-Demand import from subpaths enables tree-shaking and keeps bundles small.
- Full Import from the root package is convenient but includes all app modules.
Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.
Select Installation Method
On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.
Open Motrix
ts
import { open } from 'protocol-launcher/motrix'
const url = open()New Task
ts
import { newTask } from 'protocol-launcher/motrix'
const url = newTask({
uri: 'https://example.com/file.dmg',
out: 'myfile.dmg',
})New BitTorrent Task
ts
import { newBtTask } from 'protocol-launcher/motrix'
const url = newBtTask()Open Task List
ts
import { openTaskList } from 'protocol-launcher/motrix'
const url = openTaskList()Pause All Tasks
ts
import { pauseAllTask } from 'protocol-launcher/motrix'
const url = pauseAllTask()Resume All Tasks
ts
import { resumeAllTask } from 'protocol-launcher/motrix'
const url = resumeAllTask()Open Preferences
ts
import { preferences } from 'protocol-launcher/motrix'
const url = preferences()Open About
ts
import { about } from 'protocol-launcher/motrix'
const url = about()