From 1a28d27d0b6b5ba7f6dcb344acfc738de09c98e6 Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Wed, 25 Nov 2026 15:33:29 +0100 Subject: [PATCH 1/7] fix(codeql): clear 8 scanning alerts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit High: replace fragile 'github.com in url' substring check with a proper host parse (_is_github) — rejects spoofs like github.com.evil.com / evil.com/github.com. Notes: remove unused imports (sys in classify/taxonomy, os in entries) and an unused dict/var; give the two bare 'except: pass' a 'continue' + comment so a skipped item is intentional, not silent. Verified: all scripts parse+run, and _is_github passes its spoof tests. --- scripts/check_urls.py | 2 +- scripts/classify.py | 1 - scripts/generate_entries.py | 9 --------- scripts/generate_entry_pages.py | 15 +++++++++++++-- scripts/generate_taxonomy.py | 2 -- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/scripts/check_urls.py b/scripts/check_urls.py index a87f9b8..7898ec2 100644 --- a/scripts/check_urls.py +++ b/scripts/check_urls.py @@ -109,7 +109,7 @@ def walk(obj, filepath): with open(filepath, encoding="utf-8") as f: walk(json.load(f), filepath) except Exception: - pass + continue # unreadable/invalid entry file — skip, don't abort the scan return url_map diff --git a/scripts/classify.py b/scripts/classify.py index c1d0d1c..9711261 100644 --- a/scripts/classify.py +++ b/scripts/classify.py @@ -19,7 +19,6 @@ import argparse import json -import sys from pathlib import Path import yaml diff --git a/scripts/generate_entries.py b/scripts/generate_entries.py index dbc167e..8a94322 100644 --- a/scripts/generate_entries.py +++ b/scripts/generate_entries.py @@ -7,7 +7,6 @@ import html import json -import os import re import sys from pathlib import Path @@ -174,14 +173,6 @@ def license_bucket(e): return "opendata" return "custom" -_LICENSE_BUCKET_LABELS = { - "permissive": "Permissive", - "copyleft": "Copyleft", - "opendata": "Open data", - "noncommercial": "Non-commercial", - "custom": "Custom / restricted", - "none": "No clear licence", -} def get_jsonld_url(e): entry_id = e.get("@id", "") diff --git a/scripts/generate_entry_pages.py b/scripts/generate_entry_pages.py index 0964bdc..a6886ba 100644 --- a/scripts/generate_entry_pages.py +++ b/scripts/generate_entry_pages.py @@ -13,6 +13,17 @@ import html import json from pathlib import Path +from urllib.parse import urlparse + + +def _is_github(url: str) -> bool: + """True if url's HOST is github.com (or a subdomain), parsed properly — + not a substring match, which 'https://evil.com/github.com' would fool.""" + try: + host = (urlparse(url).hostname or "").lower() + except ValueError: + return False + return host == "github.com" or host.endswith(".github.com") ENTRIES_DIR = Path("entries") OUT_DIR = Path("entry") @@ -146,7 +157,7 @@ def _repo_section(signals: dict, entry: dict) -> str: try: pairs.append((lang, int(pct))) except ValueError: - pass + continue # skip a malformed "lang:pct" pair, keep the rest if pairs: bar = "".join( f'' @@ -463,7 +474,7 @@ def _notfound_phrase(field_name: str) -> str: links = [] if url: - links.append(f'↗ {"Repository" if "github.com" in url else "Website"}') + links.append(f'↗ {"Repository" if _is_github(url) else "Website"}') if repo and repo != url: links.append(f'↗ Repository') if jsonld_url: diff --git a/scripts/generate_taxonomy.py b/scripts/generate_taxonomy.py index 007b0f9..2f76b21 100644 --- a/scripts/generate_taxonomy.py +++ b/scripts/generate_taxonomy.py @@ -10,7 +10,6 @@ import html import json -import sys from collections import Counter, defaultdict from datetime import date from pathlib import Path @@ -38,7 +37,6 @@ def load(): def build(tax, entries) -> str: - cat_label = {c["id"]: c["name"] for c in tax["categories"]} func_label = {} for c in tax["categories"]: for fn in c.get("functions", []): From e6680838c114a965f2bbfe982799d5906fe19c35 Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Wed, 25 Nov 2026 15:33:47 +0100 Subject: [PATCH 2/7] chore(site): regenerate cards with verified licences (physionet varies, ilastik GPL, corrected licence URLs) --- index.html | 24 ++++++++++++------------ taxonomy.html | 28 +++++++++++++++------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index abf163e..0278754 100644 --- a/index.html +++ b/index.html @@ -1640,7 +1640,7 @@

Live entries,
growing with every commit

Data Sources★ 151Caution

OpenAlex

-
Data SourceCC0-1.0Jupyter Notebook●
+
Data SourceCC0-1.0Jupyter Notebook●

Free, fully open academic knowledge graph covering 250M+ scholarly works, 250M+ authors, 100K+ institutions (with ROR IDs), and 30K+ journal…

ℹ details↗ site↗ repo{} JSON-LD
@@ -1671,12 +1671,12 @@

Live entries,
growing with every commit

Open data portal of the Pan American Health Organization (PAHO), the WHO regional office for the Americas. Provides 140+ core health indicat…

ℹ details↗ site{} JSON-LD
-
+
Data Sources★ 92Adopt

PhysioNet

- +

Open repository of freely available physiological signals and related clinical data, maintained by the MIT Laboratory for Computational Phys…

ℹ details↗ site↗ reposwh{} JSON-LD
@@ -1919,7 +1919,7 @@

Live entries,
growing with every commit

Datasets★ 31Assess

NCI Imaging Data Commons

-
DatasetCC-BY-4.0Python●
+
DatasetCC-BY-4.0Python●

Cloud-native NCI cancer imaging platform providing programmatic access to 176 collections, 85,682 cases, 1,032,911 image series, and 99+ TB …

ℹ details↗ site↗ repo{} JSON-LD
@@ -1964,7 +1964,7 @@

Live entries,
growing with every commit

Datasets★ 533Caution

PatchCamelyon

-
DatasetCC0-1.0Python●
+
DatasetCC0-1.0Python●

Binary image classification benchmark derived from CAMELYON16, consisting of 327,680 colour patches (96×96 px) extracted from H&E-stained ly…

ℹ details↗ reposwh{} JSON-LD
@@ -2000,7 +2000,7 @@

Live entries,
growing with every commit

Datasets★ 160Assess

The Cancer Genome Atlas

-
DatasetcustomPython●
+
DatasetcustomPython●

Landmark cancer genomics program that comprehensively characterised the molecular landscape of 33 cancer types across 20,000+ primary tumour…

ℹ details↗ site↗ reposwh{} JSON-LD
@@ -2036,7 +2036,7 @@

Live entries,
growing with every commit

Medical Hardware★ 81Assess

HealthyPi 5

-
HardwareCERN-OHL-P-2.0Java●
+
HardwareCERN-OHL-P-2.0Java●

Open-source vital-signs monitoring HAT/board measuring ECG, respiration, pulse oximetry (SpO2), and temperature, designed to work with a Ras…

ℹ details↗ site↗ repo{} JSON-LD
@@ -2603,7 +2603,7 @@

Live entries,
growing with every commit

Software★ 919Adopt

DCMTK

-
SoftwareBSD-3-ClauseC++●
+
SoftwareBSD-3-ClauseC++●

Reference C/C++ implementation of the DICOM standard — a comprehensive collection of libraries and command-line tools covering DICOM data en…

ℹ details↗ site↗ repo{} JSON-LD
@@ -2832,12 +2832,12 @@

Live entries,
growing with every commit

Python toolkit for digital pathology image analysis providing colour normalisation, nuclei detection and segmentation, feature extraction, a…

ℹ details↗ site↗ reposwh{} JSON-LD
-
+
Software★ 419Assess

ilastik

- +

Interactive machine learning toolkit for image segmentation, classification, object detection, counting, and tracking. Users interactively l…

ℹ details↗ site↗ reposwh{} JSON-LD
@@ -2945,7 +2945,7 @@

Live entries,
growing with every commit

Software★ 1.2kAdopt

Mirth Connect

-
SoftwareMPL-2.0Java●
+
SoftwareMPL-2.0Java●

The most widely used open-source healthcare integration engine — routes, transforms, and filters health messages between clinical systems ac…

ℹ details↗ site↗ reposwh{} JSON-LD
@@ -3494,7 +3494,7 @@

Live entries,
growing with every commit

Specs★ 75Assess

FAIR Data Point (FDP) Specification

-
StandardW3CJava●
+
StandardW3CJava●

W3C Unofficial Proposal Draft specification for a metadata service that exposes digital objects following FAIR principles (Findable, Accessi…

ℹ details↗ site↗ reposwh{} JSON-LD
diff --git a/taxonomy.html b/taxonomy.html index c91cabc..eddd83e 100644 --- a/taxonomy.html +++ b/taxonomy.html @@ -53,7 +53,7 @@

MACH Taxonomy

-
A multi-axis, EDAM-inspired classification · 233 entries · November 2026
+
A multi-axis, EDAM-inspired classification · 250 entries · November 2026

Every entry is classified on four orthogonal axes. Type is the top-level category (from the entry's folder). Function is a controlled sub-type, assigned by published deterministic rules or an explicit curator decision. Domain is the clinical area, and Standards are the specifications a tool implements.

@@ -66,18 +66,18 @@

MACH Taxonomy

- Function is assigned deterministically where a signal is clear: 211 by rule + Function is assigned deterministically where a signal is clear: 228 by rule (from harvested keywords / implemented standards), 3 by curator decision, 19 authored (AI tooling). Each entry records how it was classified (mach:subcategoryBy), so the taxonomy is auditable, not opinion.
-

Software 105

+

Software 116

Open-source healthcare software tools, platforms, and applications

- +
Functionnentries
Medical imaging medical-imaging613D Slicer, ANTs (Advanced Normalization Tools), batchgenerators, Bio-Formats, CellProfiler, Cornerstone3D, dcm2niix, dcm4che …
Interoperability interoperability15Android FHIR SDK, Blaze, CARE, Apache cTAKES, DHIS2, EHRbase, HAPI FHIR, Medplum …
Clinical system clinical-system11Discharge Documentation Generator, FEMR, GNU Health, hf_ehr, MedCAT, No-Show Prediction, OpenOnco, OpenScribe …
Bioinformatics pipeline bioinformatics-pipeline6DeepVariant, GATK, NeuroKit2, Open-ECG-Digitizer, RDKit, WFDB Python
Research platform research-platform4BBMRI-ERIC Negotiator, MOLGENIS EMX2, Opal, Tidepool
Federated analytics federated-analytics2DataSHIELD, OHDSI ATLAS
Clinical NLP clinical-nlp1Drug Named Entity Recognition
Pharmacometrics pharmacometrics1nlmixr2
Privacy & de-identification privacy-deid1Veil
mHealth mhealth3AndroidAPS, Nightscout, OpenAPS
Medical imaging medical-imaging623D Slicer, ANTs (Advanced Normalization Tools), batchgenerators, Bio-Formats, CellProfiler, Comp2Comp, Cornerstone3D, dcm2niix …
Interoperability interoperability21Android FHIR SDK, Ballerina Health FHIR R4, Blaze, bWell FHIR Server (Helix), CARE, Apache cTAKES, datastew, DHIS2 …
Clinical system clinical-system12Discharge Documentation Generator, FEMR, GNU Health, hf_ehr, MedCAT, No-Show Prediction, OpenOnco, OpenScribe …
Bioinformatics pipeline bioinformatics-pipeline7DeepVariant, fastVEP, GATK, NeuroKit2, Open-ECG-Digitizer, RDKit, WFDB Python
Research platform research-platform4BBMRI-ERIC Negotiator, MOLGENIS EMX2, Opal, Tidepool
Federated analytics federated-analytics2DataSHIELD, OHDSI ATLAS
Clinical NLP clinical-nlp3clin-summ, Drug Named Entity Recognition, MedVAL
Pharmacometrics pharmacometrics1nlmixr2
Privacy & de-identification privacy-deid1Veil
mHealth mhealth3AndroidAPS, Nightscout, OpenAPS
@@ -90,11 +90,11 @@

Medical Hardware 11

-

AI / ML Models 31

+

AI / ML Models 34

Clinical AI models, medical imaging models, biomedical NLP, foundation models

- +
Functionnentries
Imaging model imaging-model17CellViT, CONCH, H-optimus-0, HookNet, HoVer-Net, MedGemma, Neuro-JEPA, nnDetection …
Foundation model foundation-model8ECG-FM, ECGFounder, EchoJEPA, MedSAM, MedSAM2, OpenTSLM, scGPT, uAI-NEXUS-MedVLM (MedGRPO)
Genomics model genomics-model4BioReason, ESM-2, ESMC, GeneAgent
Clinical NLP model clinical-nlp1OpenMed
Agent model agent-model1TxAgent
Imaging model imaging-model20CellViT, CONCH, H-optimus-0, HookNet, HoVer-Net, MedGemma, MedVAE, Merlin …
Foundation model foundation-model8ECG-FM, ECGFounder, EchoJEPA, MedSAM, MedSAM2, OpenTSLM, scGPT, uAI-NEXUS-MedVLM (MedGRPO)
Genomics model genomics-model4BioReason, ESM-2, ESMC, GeneAgent
Clinical NLP model clinical-nlp1OpenMed
Agent model agent-model1TxAgent
@@ -107,19 +107,19 @@

AI Tooling 19

-

Datasets 28

+

Datasets 30

Healthcare datasets, clinical benchmarks, and evaluation corpora

- +
Functionnentries
Benchmark benchmark23AgentClinic, CAMELYON, Chi-Bench, CliniCARE-Bench, EHRSHOT, eICU Collaborative Research Database, FHIR-AgentBench, HealthBench …
Clinical dataset clinical-dataset3AmsterdamUMCdb, NHS England Synthetic Clinical Notes, TUH EEG Corpus
Imaging dataset imaging-dataset2NCI Imaging Data Commons, The Cancer Genome Atlas
Benchmark benchmark25AgentClinic, CAMELYON, Chi-Bench, clin-bhc-summ, CliniCARE-Bench, EHRSHOT, eICU Collaborative Research Database, FHIR-AgentBench …
Clinical dataset clinical-dataset3AmsterdamUMCdb, NHS England Synthetic Clinical Notes, TUH EEG Corpus
Imaging dataset imaging-dataset2NCI Imaging Data Commons, The Cancer Genome Atlas
-

Data Sources 22

+

Data Sources 23

Continuously updated open registries, databases, and data feeds

- +
Functionnentries
Registry registry3ClinicalTrials.gov, CMS Medicare Coverage Database, Vivli
Research database research-database3ChEMBL, PubMed, Synapse
Knowledge base knowledge-base0
Terminology service terminology4bio.tools, NCBO BioPortal, ICD-11 API, Mondo Disease Ontology
Open data portal open-data-portal6ClinVar, Open Targets Platform, OpenAlex, Scottish Health and Social Care Open Data, PhysioNet, The Cancer Imaging Archive
Surveillance feed surveillance-feed6EMA Medicines Data, HealthMap, openFDA, PAHO Open Data Portal, ProMED, WHO Disease Outbreak News
Registry registry4ClinicalTrials.gov, CMS Medicare Coverage Database, PRO-ACT, Vivli
Research database research-database3ChEMBL, PubMed, Synapse
Knowledge base knowledge-base0
Terminology service terminology4bio.tools, NCBO BioPortal, ICD-11 API, Mondo Disease Ontology
Open data portal open-data-portal6ClinVar, Open Targets Platform, OpenAlex, Scottish Health and Social Care Open Data, PhysioNet, The Cancer Imaging Archive
Surveillance feed surveillance-feed6EMA Medicines Data, HealthMap, openFDA, PAHO Open Data Portal, ProMED, WHO Disease Outbreak News
@@ -140,16 +140,18 @@

Specs 14

-

Domain top 20 of 46

+

Domain top 20 of 49

Clinical and scientific areas (an entry may have several).

-
Domainn
research121
oncology67
primary-care38
radiology38
secondary-care35
pathology28
public-health27
cardiology21
neurology20
rare-disease18
genomics18
medical-imaging12
clinical-research11
global-health10
epidemiology9
surgery8
pharmacology6
critical-care6
drug-discovery5
neuroscience5
+
Domainn
research126
oncology67
primary-care38
radiology38
secondary-care35
pathology28
public-health27
cardiology21
neurology21
rare-disease20
genomics19
medical-imaging12
clinical-research11
global-health10
epidemiology9
surgery8
pharmacology6
critical-care6
drug-discovery5
interoperability5
+ From 90ed4e835bd89f30bf26569345caa0c17aeb0068 Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Wed, 25 Nov 2026 16:04:18 +0100 Subject: [PATCH 3/7] test(search): Playwright E2E suite + CI; fix clear-search not resetting language filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First functional tests for the site. They load index.html in a headless browser and assert search/filter behaviour — the class of bug that broke search repeatedly. The suite already paid off: it caught that clearing the search box left the language filter stuck (couldn't return to the full catalogue), now fixed (a keyword-search-applied language is released on box edit; a manually chosen one is kept). 4 tests pass locally. Wired into CI (e2e.yml) on any change to index.html/tests. node_modules gitignored. --- .github/workflows/e2e.yml | 65 ++++++++++++++++++++++++ .gitignore | 7 +++ index.html | 10 ++++ package.json | 13 +++++ playwright.config.js | 31 ++++++++++++ tests/search.spec.js | 103 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 229 insertions(+) create mode 100644 .github/workflows/e2e.yml create mode 100644 package.json create mode 100644 playwright.config.js create mode 100644 tests/search.spec.js diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..68846a9 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,65 @@ +name: E2E tests + +# Playwright end-to-end tests for the static site's search + filters. +# Runs on any change to the page or the tests — catches search/filter +# regressions (e.g. "python" must match all Python entries, filters must +# reset after a search) that unit tests can't see because they're browser +# behaviour. + +on: + pull_request: + paths: + - 'index.html' + - 'tests/**' + - 'playwright.config.js' + - 'package.json' + push: + branches: [main] + paths: + - 'index.html' + - 'tests/**' + - 'playwright.config.js' + - 'package.json' + +jobs: + e2e: + name: Playwright (search + filters) + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Harden runner + uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2 + with: + egress-policy: audit + + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Set up Node.js + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 + with: + node-version: '20' + + - name: Set up Python (serves the static site in the webServer step) + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: npm install + + - name: Install Playwright browser + run: npx playwright install --with-deps chromium + + - name: Run E2E tests + run: npx playwright test + + - name: Upload report on failure + if: failure() + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4 + with: + name: playwright-report + path: playwright-report/ + retention-days: 7 diff --git a/.gitignore b/.gitignore index 98256a2..29f17fd 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,10 @@ entry/*.html # Python bytecode __pycache__/ *.pyc + +# Node / Playwright +node_modules/ +/test-results/ +/playwright-report/ +/playwright/.cache/ +package-lock.json diff --git a/index.html b/index.html index 0278754..5e5cbb1 100644 --- a/index.html +++ b/index.html @@ -4060,6 +4060,15 @@

Suggest an entry

if (searchInput) { searchInput.addEventListener('input', () => { active.search = searchInput.value.trim().toLowerCase(); + // If a LANGUAGE filter was applied by a keyword search (e.g. typing + // "python"), editing the box should release it so clearing returns to the + // full catalogue. A language the user picked from the dropdown is left be. + if (active._searchSetLang) { + active.lang = ''; + active._searchSetLang = false; + const langSel = document.getElementById('filter-lang'); + if (langSel) langSel.value = ''; + } currentPage = 1; renderPage(); }); @@ -4165,6 +4174,7 @@

Suggest an entry

const langVal = F.langValue(w); // original casing, e.g. "Python" F.active.search = ''; // name-filter off — filter by language only F.active.lang = langVal; + F.active._searchSetLang = true; // search applied this lang → clear it when box edited const langSel = document.getElementById('filter-lang'); if (langSel) langSel.value = langVal; // reflect in the dropdown F.applyFilters(); // this un-hides cards + renders diff --git a/package.json b/package.json new file mode 100644 index 0000000..6714748 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "mach-site-tests", + "version": "0.1.0", + "private": true, + "description": "End-to-end tests for the MACH static site (search, filters).", + "scripts": { + "test": "playwright test", + "serve": "python -m http.server 8000" + }, + "devDependencies": { + "@playwright/test": "1.49.1" + } +} diff --git a/playwright.config.js b/playwright.config.js new file mode 100644 index 0000000..20c6372 --- /dev/null +++ b/playwright.config.js @@ -0,0 +1,31 @@ +// Playwright config for MACH's static-site end-to-end tests. +// The site is plain files, so we serve the repo root over HTTP (a simple Python +// server) and point the tests at it. Semantic search hits a live API, so those +// tests stub the /search response — the local-filter tests (python, licence, +// filter-reset) need no network and are the ones that guard today's bug class. + +const { defineConfig, devices } = require('@playwright/test'); + +const PORT = 8000; + +module.exports = defineConfig({ + testDir: './tests', + fullyParallel: true, + forbidOnly: !!process.env.CI, // a stray test.only fails CI + retries: process.env.CI ? 1 : 0, + reporter: process.env.CI ? [['github'], ['list']] : 'list', + use: { + baseURL: `http://127.0.0.1:${PORT}`, + trace: 'on-first-retry', + }, + projects: [ + { name: 'chromium', use: { ...devices['Desktop Chrome'] } }, + ], + // Serve the repo root before the tests run. + webServer: { + command: `python -m http.server ${PORT}`, + url: `http://127.0.0.1:${PORT}/index.html`, + reuseExistingServer: !process.env.CI, + timeout: 60 * 1000, + }, +}); diff --git a/tests/search.spec.js b/tests/search.spec.js new file mode 100644 index 0000000..b801b2a --- /dev/null +++ b/tests/search.spec.js @@ -0,0 +1,103 @@ +// End-to-end tests for MACH search + filters. +// +// These guard the exact bug class that broke search repeatedly: single-word +// "keyword" queries (a language) must route to the complete LOCAL filter (not +// the semantic API, which under-returns for generic words), and the local +// filters must keep working after a search. They need no network — the semantic +// API path is covered separately (and stubbed) so these stay fast + deterministic. + +const { test, expect } = require('@playwright/test'); + +const SEARCH = '#entry-search'; +const RUN = '#semantic-btn'; +const STATUS = '#semantic-status'; +const CARD = '.entry-card'; + +// Cards shown on the CURRENT page (the local filter paginates at 16/page). +async function visibleCount(page) { + return await page.$$eval(CARD, (cards) => + cards.filter((c) => getComputedStyle(c).display !== 'none').length + ); +} + +// The number of entries the active filters MATCH (across all pages). This is the +// real result of a filter — visibleCount() only shows the current page of it. +async function matchedCount(page) { + return await page.evaluate(() => + (window.MACHFilters && window.MACHFilters.getVisible) + ? window.MACHFilters.getVisible().length + : -1 + ); +} + +test.beforeEach(async ({ page }) => { + await page.goto('/index.html'); + await page.waitForSelector(CARD); // cards rendered + await page.waitForFunction(() => !!window.MACHFilters); // filter API ready +}); + +test('the search box is visible and usable', async ({ page }) => { + const box = page.locator(SEARCH); + await expect(box).toBeVisible(); + await expect(box).toBeEditable(); +}); + +test('typing a language ("python") shows many entries, not a handful', async ({ page }) => { + // How many Python entries exist in the catalogue (ground truth from the DOM)? + const pythonTotal = await page.$$eval(CARD, (cards) => + cards.filter((c) => c.getAttribute('data-lang') === 'Python').length + ); + expect(pythonTotal).toBeGreaterThan(40); // sanity: the catalogue really has many + + await page.fill(SEARCH, 'python'); + await page.click(RUN); + + // The language route should MATCH essentially all Python entries — this is the + // regression guard (the bug matched 1, then 7, instead of ~all). The list + // paginates, so we check the matched set, not just the visible page. + await expect.poll(() => matchedCount(page)).toBeGreaterThan(pythonTotal - 5); + await expect.poll(() => visibleCount(page)).toBeGreaterThan(0); // a page is shown + + // And the status should say it filtered by language. + await expect(page.locator(STATUS)).toContainText(/Python/i); +}); + +test('clicking a category filter after a search resets the view (not stuck/blank)', async ({ page }) => { + // Run a search first (puts the page into result mode). + await page.fill(SEARCH, 'python'); + await page.click(RUN); + await expect.poll(() => visibleCount(page)).toBeGreaterThan(10); + + // Now click a category filter chip (AI/ML models, say). This must escape + // search mode and show the filtered list — the "filters do nothing after a + // search / no reset" bug. + const chip = page.locator('#filter-cat .filter-btn[data-value]').first(); + await chip.click(); + + // Cards for that category should be visible, and the semantic status gone. + await expect.poll(() => visibleCount(page)).toBeGreaterThan(0); + await expect(page.locator(STATUS)).toBeHidden(); + + // Every visible card matches the chosen category (the filter actually applied). + const chosen = await chip.getAttribute('data-value'); + const offCategory = await page.$$eval( + CARD, + (cards, cat) => + cards.filter( + (c) => getComputedStyle(c).display !== 'none' && c.getAttribute('data-cat') !== cat + ).length, + chosen + ); + expect(offCategory).toBe(0); +}); + +test('clearing the search returns to the full catalogue', async ({ page }) => { + const allMatched = await matchedCount(page); // every entry, unfiltered + await page.fill(SEARCH, 'python'); + await page.click(RUN); + await expect.poll(() => matchedCount(page)).toBeLessThan(allMatched); // narrowed + + // Clear the box → back to the normal (unfiltered) listing. + await page.fill(SEARCH, ''); + await expect.poll(() => matchedCount(page)).toBe(allMatched); +}); From 4adbf854233b31101f539de3f194a7351e5912dc Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Fri, 27 Nov 2026 21:54:15 +0100 Subject: [PATCH 4/7] feat(site): add Why page and nav link New why.html: positive thesis ('Healthcare does do open source'), a scrolling landscape ticker of catalogue-backed resource types, and a 'Why it matters' list (open/checkable, rule-based judgement, OpenSSF+OSV security, machine-readable JSON-LD, reuse graph). FSE 2025 reference under Further reading. Linked from index.html nav. --- index.html | 1 + why.html | 239 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 240 insertions(+) create mode 100644 why.html diff --git a/index.html b/index.html index 5e5cbb1..91f6536 100644 --- a/index.html +++ b/index.html @@ -1167,6 +1167,7 @@
  • Catalog
  • Graph
  • Metadata
  • +
  • Why
  • Contribute
  • GitHub →
  • diff --git a/why.html b/why.html new file mode 100644 index 0000000..4b3478b --- /dev/null +++ b/why.html @@ -0,0 +1,239 @@ + + + + + +Why MACH: Machine-Actionable Catalog for Healthcare + + + + + + + +
    + +
    +
    +

    The open-source healthcare landscape

    +

    Healthcare does do open source, and you can see it here.

    +

    Proven open tools for research and care already exist, scattered across repositories and institutional websites. MACH helps you find them, trust them, and reuse and support them instead of rebuilding from scratch.

    +
    +
    +
    +
    +
    +
    +
    + +
    + +

    Transparency enables scrutiny, reuse and trust

    +

    + In the research and infrastructure layers (the tools, data and standards the field is built + on), open source lets the work be inspected, reused and improved in the open. MACH maps what's + open so it can be found and reused. +

    + +

    + Further reading + Malviya-Thakur et al., "Scientific Open-Source Software Is Less Likely to Become Abandoned + Than One Might Think!", FSE 2025. + arxiv.org/abs/2504.18971 +

    +

    + Browse the catalog → +

    +
    + +
    + + + + + + From b46630aea5e8c50b013d5101f95c5216cf720562 Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Fri, 27 Nov 2026 22:03:15 +0100 Subject: [PATCH 5/7] fix(entry): clickable URL signals + cleaner language display --- scripts/generate_entry_pages.py | 37 ++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/scripts/generate_entry_pages.py b/scripts/generate_entry_pages.py index a6886ba..70fe303 100644 --- a/scripts/generate_entry_pages.py +++ b/scripts/generate_entry_pages.py @@ -12,6 +12,7 @@ import html import json +import re from pathlib import Path from urllib.parse import urlparse @@ -59,6 +60,31 @@ def esc(s) -> str: return html.escape(str(s)) if s is not None else "" +def _linkify_value(val: str) -> str: + """Render a lineage value: a single clean http(s) URL becomes a link, + anything else is escaped as plain text. Comma-lists and values with spaces + stay as text so we don't produce a broken href.""" + s = str(val).strip() + if (s.startswith(("http://", "https://")) + and " " not in s and "," not in s and '"' not in s): + return f'{esc(s)}' + return esc(val) + + +def _fmt_languages(val: str) -> str: + """'Python:100,C++:80' -> 'Python, C++'. The percentages read like version + numbers in the raw table (a user mistook 'Python:100' for Python 100); the + language mix bar already shows the split. Only the ':' suffix is + stripped, so a language name is never altered. The % breakdown stays in the + Repository panel's language bar.""" + names = [] + for tok in str(val).split(","): + name = re.sub(r":\d+$", "", tok.strip()) + if name: + names.append(name) + return ", ".join(names) if names else str(val) + + # Harvest date (top-level generated_at from signals.json), captured at load so # the citation "as of" stamp can be shown without threading it through every call. HARVEST_DATE = "" @@ -418,7 +444,12 @@ def _notfound_phrase(field_name: str) -> str: phrase = _notfound_phrase(f["field_name"]) else: phrase = _STATUS_PHRASE.get(status, status or "—") - val_disp = esc(val) if val not in (None, "") else f'{esc(phrase)}' + if val in (None, ""): + val_disp = f'{esc(phrase)}' + elif f["field_name"] == "repo_languages": + val_disp = esc(_fmt_languages(val)) + else: + val_disp = _linkify_value(val) source_disp = f'{esc(f.get("source_id","—"))}' # Override the harvested licence row when the curated licence differs: # keep the harvested value visible (lineage honesty) but mark it @@ -454,8 +485,8 @@ def _notfound_phrase(field_name: str) -> str: hrows.append( f'{esc(h.get("changed_at",""))}' f'{esc(h.get("field_name",""))}' - f'{esc(h.get("previous_value") or "—")}' - f'{esc(h.get("value") or "—")}' + f'{_linkify_value(h["previous_value"]) if h.get("previous_value") else "—"}' + f'{_linkify_value(h["value"]) if h.get("value") else "—"}' f'{esc(h.get("source_id","—"))}' ) history_block = f"""
    From 0d2c28627401a3e510c69843ea82d77c3952a8d3 Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Fri, 27 Nov 2026 22:21:30 +0100 Subject: [PATCH 6/7] feat(entry): link discovered packages to registries + flag path; date health snapshot Entry pages now: - Link each discovered package/DOI (PyPI, npm, conda, CRAN, HuggingFace, DOI) to its registry page, so a match can be checked and a wrong one flagged. Comma-lists stay plain text (no broken href). - Friendly labels for discovered_* fields ('PyPI package', 'DOI', ...) with an explainer note + 'flag it' link to the bug-report template. - repo_languages shows names only ('Python', not 'Python:100') in the raw table; the % split stays in the Repository language bar. - repo-health label carries the harvest 'as of ' stamp, so a weekly snapshot reads as a snapshot, not stale data vs live GitHub. Surfaces the generic-name false-match problem (e.g. CARE -> unrelated pypi 'care') for community review; the harvester-side verification fix is tracked separately. Entry pages rebuild at deploy, so only the generator is committed. --- scripts/generate_entry_pages.py | 48 ++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/scripts/generate_entry_pages.py b/scripts/generate_entry_pages.py index 70fe303..341b908 100644 --- a/scripts/generate_entry_pages.py +++ b/scripts/generate_entry_pages.py @@ -49,6 +49,15 @@ def _is_github(url: str) -> bool: "has_releases": "has releases", "pypi_downloads": "PyPI downloads (monthly)", "hf_downloads": "HuggingFace downloads (monthly)", + "conda_downloads": "conda downloads (monthly)", + "npm_downloads": "npm downloads (monthly)", + "cran_downloads": "CRAN downloads (monthly)", + "discovered_pypi": "PyPI package", + "discovered_conda": "conda package", + "discovered_npm": "npm package", + "discovered_cran": "CRAN package", + "discovered_hf": "HuggingFace model / dataset", + "discovered_doi": "DOI", "judgement": "judgement", "judgement_reason": "judgement reason", "repo_health": "repo health", @@ -71,6 +80,31 @@ def _linkify_value(val: str) -> str: return esc(val) +# A discovered package name -> its public registry page, so the match can be +# checked (and a wrong one flagged) by anyone. The harvester does not yet verify +# the package's own repo matches the entry's repo, so making the link visible is +# the community-review path until it does. +_REGISTRY_URL = { + "discovered_pypi": "https://pypi.org/project/{}/", + "discovered_npm": "https://www.npmjs.com/package/{}", + "discovered_conda": "https://anaconda.org/conda-forge/{}", + "discovered_cran": "https://cran.r-project.org/package={}", + "discovered_hf": "https://huggingface.co/{}", + "discovered_doi": "https://doi.org/{}", +} + + +def _registry_link(field_name: str, val: str) -> str: + """Link a discovered package / DOI value to its registry page. Only a single + clean token is linked (no commas/spaces), so a comma-list stays plain text.""" + s = str(val).strip() + tmpl = _REGISTRY_URL.get(field_name) + if tmpl and s and " " not in s and "," not in s and '"' not in s: + url = tmpl.format(s) + return f'{esc(s)}' + return esc(val) + + def _fmt_languages(val: str) -> str: """'Python:100,C++:80' -> 'Python, C++'. The percentages read like version numbers in the raw table (a user mistook 'Python:100' for Python 100); the @@ -161,9 +195,14 @@ def _repo_section(signals: dict, entry: dict) -> str: if health: cls = _HEALTH_CLASS.get(health, "warn") + # Harvest "as of" stamp: this is a point-in-time snapshot, so a repo may + # have newer commits than the label reflects. Dating it (like the citation + # stamp) makes it read as a snapshot, not stale data. + asof = (f' ' + f'· as of {esc(HARVEST_DATE)}') if HARVEST_DATE else "" parts.append( f'

    {esc(health)}' - f' — {esc(health_reason)}

    ' + f' — {esc(health_reason)}{asof}

    ' ) # Headline counts @@ -448,6 +487,8 @@ def _notfound_phrase(field_name: str) -> str: val_disp = f'{esc(phrase)}' elif f["field_name"] == "repo_languages": val_disp = esc(_fmt_languages(val)) + elif f["field_name"] in _REGISTRY_URL: + val_disp = _registry_link(f["field_name"], val) else: val_disp = _linkify_value(val) source_disp = f'{esc(f.get("source_id","—"))}' @@ -474,6 +515,11 @@ def _notfound_phrase(field_name: str) -> str: FieldValueSource {''.join(rows)} +

    The package / DOI rows + (PyPI package, conda package, DOI, and so on) are the identifiers MACH matched for this + project, and what it uses to look up download counts and citations. Each links to its + registry page — if a match looks wrong, + flag it.

    """ else: lineage = "" From 8ba6168aa1c18cad4445e0069acc5f7dc0bf7500 Mon Sep 17 00:00:00 2001 From: priyanka <21082240+priya-gitTest@users.noreply.github.com> Date: Sun, 29 Nov 2026 23:56:57 +0100 Subject: [PATCH 7/7] feat: add EchoAlign entry (echocardiography foundation model) --- README.md | 2 +- entries/models/echoalign.jsonld | 85 +++++++++++++++++++++++++++++++++ index.html | 11 ++++- 3 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 entries/models/echoalign.jsonld diff --git a/README.md b/README.md index 7734e2f..0cb5dd7 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ An open, machine-actionable catalog of open-source healthcare software, AI/ML mo Every entry is a structured JSON-LD record. What makes MACH different from a list is its **judgement**: tools with a public repository get a deterministic **Adopt / Assess / Caution** verdict, derived by a transparent rule-based scorer from measured signals (maintenance, adoption, licence quality) — not hand-written opinion, and never a black box. -**Live catalog:** [machcatalog.org](https://machcatalog.org) · **Status:** Active — 250 entries across 8 types, CI pipeline live · A project of [FORSE-H](https://github.com/FORSE-H). +**Live catalog:** [machcatalog.org](https://machcatalog.org) · **Status:** Active — 251 entries across 8 types, CI pipeline live · A project of [FORSE-H](https://github.com/FORSE-H). --- diff --git a/entries/models/echoalign.jsonld b/entries/models/echoalign.jsonld new file mode 100644 index 0000000..7f24acd --- /dev/null +++ b/entries/models/echoalign.jsonld @@ -0,0 +1,85 @@ +{ + "@context": "../../data/context/mach.jsonld", + "@id": "https://github.com/FORSE-H/MACH/tree/main/entries/models/echoalign", + "@type": [ + "mach:MLModel", + "schema:SoftwareApplication" + ], + "identifier": "echoalign", + "name": "EchoAlign", + "description": "Echocardiography vision-language foundation model that aligns each cardiac structure, video, and study with its report text, restricting supervision to the views that depict each structure. From the BioMedIA lab at MBZUAI (with iCardio.ai and DKFZ), it targets detection, grading, measurement, and segmentation tasks across cardiac ultrasound, and is distributed with open weights under a non-commercial licence. Code and weights are CC BY-NC 4.0.", + "url": "https://huggingface.co/EchoAlign/EchoAlign", + "codeRepository": "https://github.com/BioMedIA-MBZUAI/EchoAlign", + "relatedLink": [ + "https://arxiv.org/abs/2611.27517", + "https://biomedia-mbzuai.github.io/EchoAlign/", + "https://huggingface.co/EchoAlign/EchoAlign" + ], + "license": "CC-BY-NC-4.0", + "programmingLanguage": [ + "Python" + ], + "keywords": [ + "echocardiography", + "cardiac-ultrasound", + "vision-language-model", + "foundation-model", + "report-alignment", + "cardiology", + "medical-imaging" + ], + "author": [ + { + "@type": "Organization", + "name": "BioMedIA Lab, MBZUAI", + "url": "https://biomedia-mbzuai.github.io/EchoAlign/" + } + ], + "mach:weightsLicense": "CC-BY-NC-4.0", + "mach:trainingDataSummary": "The project page reports evaluation spanning 68 tasks, 159 centers, and 10 external test datasets, and names external datasets used in the work (MIMIC-IV-Echo, CAMUS, EchoNet-Dynamic, CardioBench) plus a private dataset. No release or access statement is given for EchoAlign's own training/evaluation data, and the manuscript was not yet linked at review time.", + "mach:intendedUse": "Academic echocardiography research — cardiac-ultrasound feature extraction and zero-shot/fine-tuned use for detection, grading, measurement, and segmentation of cardiac structures. Restricted to non-commercial use (CC BY-NC 4.0). Not a cleared medical device and not validated for clinical decision-making.", + "mach:aiActRiskClass": "high-risk-candidate", + "mach:governance": "academic", + "mach:category": "ai-ml-models", + "mach:clinicalDomain": [ + "cardiology", + "radiology", + "research" + ], + "mach:deploymentContext": [ + "self-hosted", + "embedded-library" + ], + "mach:accessModel": "open-weights", + "mach:editorialReviewedAt": "2026-11-29", + "schema:comment": "Weights are open (not gated) on HuggingFace at EchoAlign/EchoAlign. Licence is non-commercial (CC BY-NC 4.0). Paper: arXiv:2611.27517 (DOI 10.48550/arXiv.2611.27517), indexed in OpenAlex as W7238862129, so the citation signal will populate via discovery/OpenAlex. Training/evaluation data access not stated; re-check on next review.", + "mach:evidence": [ + { + "@type": "schema:WebPage", + "url": "https://github.com/BioMedIA-MBZUAI/EchoAlign", + "mach:evidenceType": "primary-repo" + }, + { + "@type": "schema:ScholarlyArticle", + "url": "https://arxiv.org/abs/2611.27517", + "mach:evidenceType": "academic-reference", + "schema:name": "EchoAlign: Echocardiography foundation model with multilevel report alignment. arXiv:2611.27517 (2026)." + }, + { + "@type": "schema:WebPage", + "url": "https://huggingface.co/EchoAlign/EchoAlign", + "mach:evidenceType": "documentation" + }, + { + "@type": "schema:WebPage", + "url": "https://biomedia-mbzuai.github.io/EchoAlign/", + "mach:evidenceType": "documentation" + } + ], + "mach:huggingFaceUrl": "https://huggingface.co/EchoAlign/EchoAlign", + "mach:licenseUrl": "https://github.com/BioMedIA-MBZUAI/EchoAlign/blob/main/LICENSE", + "mach:licenseVerified": true, + "mach:licenseNote": "Verified from the repo's LICENSE file ('Attribution-NonCommercial 4.0 International' = CC-BY-NC-4.0) and corroborated by the HuggingFace model card tag (cc-by-nc-4.0) and the project page ('CC BY-NC 4.0 code & weights') — all three consistent. Non-commercial: source-available / open-weights, but not an OSI open-source licence.", + "mach:subcategory": "imaging-model", + "mach:subcategoryBy": "rule:keyword" +} diff --git a/index.html b/index.html index 91f6536..af8fcf5 100644 --- a/index.html +++ b/index.html @@ -1282,7 +1282,7 @@

    Live entries,
    growing with every commit

    Total entries

    -

    250

    +

    251

    Entry types

    @@ -2158,6 +2158,15 @@

    Live entries,
    growing with every commit

    Foundation model for electrocardiogram analysis pretrained on over 10 million ECG recordings. Evaluated across multiple clinical domains inc…

    ℹ details↗ repohf{} JSON-LD
    +
    +
    + AI / ML Modelsnot scored +
    +

    EchoAlign

    + +

    Echocardiography vision-language foundation model that aligns each cardiac structure, video, and study with its report text, restricting sup…

    +
    ℹ details↗ site↗ repohf{} JSON-LD
    +
    AI / ML Models★ 357Assess