poka.sh

Docs

MAGNET

Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.

magnet: URI Preview.

At a glance

Purpose A file holding magnet links: URIs naming content by hash (BitTorrent and others) with trackers and sources.
Extensions .magnet
Poka parser poka-magnet
Viewer poka-tree-viewer
Depth tier Parser with a shared viewer (see Depth tiers)
Breadth tier B2 Broad (see Breadth tiers)

How much Poka reads

B2 Broad. The common content of the current and the common older versions is decoded. Some named features or versions are not, and are listed.

Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-magnet/src/main.rs (497 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has transmission_archlinux-2025.05.01-x86_64.iso.magnet, read by no test. Covers .magnet and .magnet-link. The tree decodes every magnet link: the content hashes (xt, with hash type for BitTorrent v1 and v2 and other namespaces), display name, exact size, keywords, other parameters, and every tracker and source as a leaf. Judgement: B2: every parameter of every link is decoded; the gaps are limits.

What Poka does not read

  • Only the first 256 links and 100 trackers per link are listed (judgement from the code)
  • Hashes are shown, not checked against any content
  • Only the first 256 KiB is read without a flag

Libraries

Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.

  • magnet-url (candidate; MIT; Rust; https://docs.rs/crate/magnet-url/latest) — Small magnet URL parser with builder, no dependencies; v3.0.0 (May 2025). Repository: github.com/billyb2/magnet-url-rs.

Sources

  • parsers/poka-magnet/src/main.rs
  • parsers/poka-magnet/plugin.json