Portal parser fixtures #

Raw UTF-8 HTTP 200 response bodies, saved 2026-10-19 without cookies or credentials. The parser/service tests inject these responses offline. Search fixtures use https://mods.factorio.com/search; counts are captured sample values, not live totals.

Server whitespace is preserved, including trailing spaces that Git's whitespace check reports. The bodies have not been prettified or normalized.

File Request query string Observed result
search-query.html query=rate%20calculator&version=2.0&sort_attribute=relevancy&page=1 64 found, 20 cards, four pages
search-page2.html query=rate%20calculator&version=2.0&sort_attribute=relevancy&page=2&exclude_category=internal 64 found, second 20 cards
search-default.html version=2.0&sort_attribute=relevancy&exclude_category=internal Introduction, no result list or Found line
search-empty-explicit.html query=&factorio_version=2.0&sort_attribute=relevancy&page=1&exclude_category=internal Same bytes as search-default.html
search-filters.html version=2.0&category=utilities&exclude_category=internal&exclude_category=content&tag=trains Introduction despite active filters
search-query-filters.html query=rate%20calculator&version=2.0&category=utilities&exclude_category=internal&exclude_category=content&tag=trains&page=2 Valid zero-result page; empty result list, Found 0 line, checked filters

The introduction fixtures are intentional rejection specimens, distinct from a valid zero-result list. See docs/portal.md for the current parser contract.

Browse fixtures #

These bodies preserve server whitespace and filter normalization, including routes that introduce defaults absent from the request.

File Request path and query Observed result
browse-updated.html /browse/updated?version=2.0 9681 found, 20 cards, 485 pages; Internal excluded by the site without an explicit parameter
browse-downloaded-page2.html /browse/downloaded?version=2.0&page=2 10004 found, 20 cards, 501 pages
browse-trending.html /browse/trending?factorio_version=2.0&category=utilities&exclude_category=internal&exclude_category=content&tag=trains 79 found, 20 cards, four pages; Utilities/Trains included, Internal/Content excluded
highlights.html /highlights?factorio_version=2.0&category=utilities&exclude_category=internal&tag=trains&page=2 Editorial "This week's highlighted mods", dated weekly links; no result list, Found count or filter controls

/highlights is an editorial rejection specimen without the paginated search contract. Blank Relevance uses Downloaded.

Full-release and default-page specimens #

  • browse-downloaded.html: Rust fmm_core::net GET /browse/downloaded?factorio_version=2.0&sort_attribute=relevancy&page=1&exclude_category=internal. Found 9,681, 20 cards, 485 pages. Blank Relevance uses this route and is ordered by downloads.
  • namelist.json: /api/mods?page_size=max&namelist=RateCalculator&namelist=flib&namelist=skins-factored response. Full release lists include both 2.0 and 2.1 releases.
  • full-rate-calculator.json: /api/mods/RateCalculator/full response. Includes nested Markdown image links, description and game-format changelog.
  • full-tagged.json: Rust GET /api/mods/factorio-rate-calculator-tooltip/full, with the Manufacturing tag, description, thumbnail path and changelog.

The service tests inject these response bytes through net::Fetch. Tests never run the opt-in m1_capture_data example or perform live requests. The introduction/editorial fixtures are rejection specimens. Filter checkbox state and pagination are validated as well as cards/counts; a server-normalized filter state causes the documented local fallback.