Skip to content

Repository files navigation

Firelink Companion app icon

Firelink Companion

Browser integration for the Firelink desktop download manager.

Latest release Firefox Chromium Manifest V3 License

What it does

Firelink Companion sends browser downloads, selected links, media pages, magnet links, and torrent metadata to the native Firelink app.

Captured links open Firelink's Add window first. You can review them before starting or queuing a download.

Status

Firelink Companion 2.2.5 is the latest release and pairs with Firelink 1.5.2.

Use the latest Companion release with the latest Firelink release.

Remote Torrent and magnet handoff uses protocol version 5. Browser-local Torrent attachments use the binary handoff contract and require a compatible Firelink build.

Installation

Install from Microsoft Edge Add-ons   Install from Firefox Add-ons   Manual install for Chromium browsers

After installation:

  1. Open Firelink.
  2. Go to Settings -> Integrations.
  3. Copy the pairing token.
  4. Open the Firelink Companion popup.
  5. Paste the token and save.

Features

  • Automatic capture for ordinary browser downloads.
  • Magnet links through the existing link and selection context menus.
  • Automatic .torrent handoff to Firelink's Add window, including authenticated browser sessions, opaque download URLs, and browser-local attachments.
  • Paused Torrent captures that wait for Firelink confirmation before the browser download continues.
  • Batch selected links from page context menus.
  • Optional Firelink folders named from page titles.
  • Explicit Fetch media actions from the popup and context menu. On normal pages, the popup and page-based context-menu actions briefly observe the active tab for one HLS, DASH, or Smooth Streaming manifest; a clicked-link context-menu action sends that selected link directly as the media source.
  • Localized popup UI in Firelink's six supported languages, including RTL layout for Hebrew and Persian.
  • Localized browser context menus that follow the selected language.
  • System, light, dark, Dracula, and Nord popup themes.
  • Firefox and Chromium Manifest V3 support.
  • Signed local requests with HMAC-SHA256.
  • Desktop identity checks before trusting localhost responses.
  • Safe fallback when Firelink is closed or rejects a handoff.
  • Recovery for interrupted or ambiguous captures without silent duplicates.
  • Recovery for interrupted and paused Firefox captures across service-worker restarts.
  • Safer popup state and automatic-capture handling when settings change during a handoff.
  • Dynamic local port discovery across 127.0.0.1:6412-6422.

Media fetching stays in the popup and context menu rather than injecting an in-page player button:

  • Page actions (popup button or page context menu) send the active tab URL to Firelink immediately, then briefly observe the tab (up to eight seconds) for an .m3u8, .mpd, .ism, or .ism/manifest stream. If one is found, a signed update is sent for the same handoff.
  • Direct link and media element actions send the selected link or HTTP(S) srcUrl directly with the active page as referer; blob: sources fall back to page discovery.
  • No page reload or continuous tracking: Discovery never reloads the page, fetches manifest bodies or keys, or monitors requests outside that brief window. Direct manifest tabs are handed off immediately.

On browsers that do not expose a request/document identity to extensions, manifest discovery is deliberately disabled for page-based Fetch actions and they use the canonical page URL. Clicked-link actions and direct manifest URLs still go through Firelink's Add window.

Handoff and privacy

  • Ordinary captures may use browser cookies when the browser session requires them.
  • Page-based explicit media requests send the canonical page URL immediately and may send one discovered manifest update tied to the same handoff. Clicked-link Fetch actions send the selected link as the media source. Neither path sends a raw browser Cookie header.
  • Discovery may include only Accept, Accept-Language, Origin, and User-Agent, plus a validated Referer field. Credentials, custom token headers, cookies, ranges, host headers, and hop-by-hop headers are removed.
  • Firelink handles media authentication through its configured media cookie source.
  • The bundled yt-dlp path can handle clear or non-DRM encrypted HLS such as AES-128 when the manifest and key are legitimately accessible. DRM/CDM, license-server, and other key workflows are unsupported; Firelink does not bypass them.
  • The original browser download is kept unless Firelink confirms the handoff.
  • Torrent downloads remain paused until Firelink confirms receipt; ambiguous handoffs stay paused to avoid duplicate delivery.
  • Requests stay on the local machine. The extension does not send download data to a remote service.

Two-phase media handoffs use Firelink desktop protocol version 7 or newer. If the desktop clearly rejects the initial request as a version mismatch before it could have been delivered, Companion retries once with the legacy protocol version 4 media payload. That older-desktop path sends the media page without the discovery update and stops observing the tab. If delivery of the first request is ambiguous, Companion does not retry, avoiding a duplicate handoff. Ordinary captures keep their existing protocol compatibility.

Newer Companion and Firelink builds additionally bind signed handoffs to the current desktop-server session. Older paired desktop builds continue through the established HMAC compatibility path until both sides are upgraded.

Browser permissions

The extension requests access to all web pages because automatic capture runs at document start and browser cookies may be needed for authenticated ordinary downloads. It also uses the browser downloads, context-menu, storage, alarm, script-injection, notification, cookie, and non-blocking webRequest APIs listed in manifest.json. The webRequest listener records nothing unless you invoke a page-based Fetch media action that starts discovery, and then only for the active tab for at most eight seconds. A clicked-link Fetch action does not start request discovery. Those permissions support the features above; the extension sends handoff data only to the paired Firelink app on localhost.

Media capability boundary

Firelink's existing bundled yt-dlp, FFmpeg, and Deno engines remain the only media backend. Clear media and non-DRM encrypted HLS (for example, AES-128) may work when yt-dlp can legitimately access the manifest and key. DRM/CDM, license-server, and other protected-key workflows are intentionally unsupported and are not bypassed. This phase does not add subtitle or multiple-audio-track selection UI.

For the Edge store listing, see the privacy policy and the submission kit.

Manual Chromium installation

Chrome and other Chromium browsers use the load-unpacked package described below. Microsoft Edge users should install the extension from the Edge Add-ons listing instead.

  1. Download firelink-chromium.zip from the latest release.

  2. Extract the ZIP to a stable folder.

  3. Open your browser's extension manager:

    Browser Extension manager
    Chrome / Chromium chrome://extensions
    Edge edge://extensions
    Brave brave://extensions
    Vivaldi vivaldi://extensions
    Opera opera:extensions
  4. Enable Developer mode.

  5. Select Load unpacked.

  6. Choose the extracted folder containing manifest.json.

  7. Pair the extension from Firelink Settings -> Integrations.

Manual Chromium installs do not auto-update. Extract the new ZIP and click Reload after an update. Managed browsers may disable Developer mode.

Temporary Firefox installation

Use this flow for local testing or add-on review:

  1. Clone this repository.
  2. Open about:debugging#/runtime/this-firefox in Firefox.
  3. Select Load Temporary Add-on... and choose manifest.json.
  4. Pair the extension from Firelink Settings -> Integrations.

Temporary Firefox add-ons are removed when Firefox restarts.

Development

npm test
npm run check
npm run build

The build writes load-unpacked packages to dist/firefox/ and dist/chromium/.

Release packages are firelink-firefox.zip and firelink-chromium.zip. firelink.zip remains a Firefox-package compatibility alias.

Credits

The extension uses standard WebExtensions APIs. It integrates with Firelink.

Thanks to users who report browser compatibility issues, test releases, and review the integration.

License

Firelink Companion is available under the MIT License.

Releases

Packages

Contributors

Languages