Skip to content

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

On-Demand
ts
import { open } from 'protocol-launcher/motrix'

const url = open()

New Task

On-Demand
ts
import { newTask } from 'protocol-launcher/motrix'

const url = newTask({
  uri: 'https://example.com/file.dmg',
  out: 'myfile.dmg',
})

New BitTorrent Task

On-Demand
ts
import { newBtTask } from 'protocol-launcher/motrix'

const url = newBtTask()

Open Task List

On-Demand
ts
import { openTaskList } from 'protocol-launcher/motrix'

const url = openTaskList()

Pause All Tasks

On-Demand
ts
import { pauseAllTask } from 'protocol-launcher/motrix'

const url = pauseAllTask()

Resume All Tasks

On-Demand
ts
import { resumeAllTask } from 'protocol-launcher/motrix'

const url = resumeAllTask()

Open Preferences

On-Demand
ts
import { preferences } from 'protocol-launcher/motrix'

const url = preferences()

Open About

On-Demand
ts
import { about } from 'protocol-launcher/motrix'

const url = about()