kernl API
    Preparing search index...

    Function createHandoffBackends

    • Creates backends that resolve a locator by handing it to an app on the user's device: each rebuilds the canonical URI from the parsed fields and opens it once. kernl moves no data itself, so the bridges report { available: true, handoff: true } (D-010). An NZB opens through its https address so the device's NZB client or browser takes it.

      Parameters

      • open: HandoffOpener

        Opens a URI on the device; the shell passes its confirm-before-leaving opener.

      Returns HandoffBackends

      A torrent, sharing, mail and NZB backend sharing one handoff:<n> id counter.

      invalid:nzb-not-https from the NZB backend when the document is not served over https.

      const backends = createHandoffBackends((uri) => window.open(uri, '_blank', 'noopener'));
      const bridge = createTorrentBridge(backends.torrent);
      await bridge.resolve(parseLocator('magnet:?xt=urn:btih:' + 'ab'.repeat(20) + '&dn=Film'), { requester: 'shell' });
      // opens magnet:?xt=urn:btih:abab…&dn=Film and yields { kind: 'job', id: 'handoff:1', label: 'Film' }