Tangled Trust Hat (browser overlay, PRD 7.4)#
A minimal MV3 content script that injects a calibrated trust hat next to
contributor DIDs on tangled.org, reading the same /score API as the dashboard.
UI only — the brain stays in the scoring service.
Load it#
- Run the scoring service:
python -m trust.api(serveshttp://127.0.0.1:8000). - Chrome →
chrome://extensions→ enable Developer mode → Load unpacked → pick thisextension/folder. - Open a tangled.org PR or contributor page. DIDs get a colored pill (green fast-lane / amber normal / red needs-review); hover for the reason.
Two things to confirm against the real site#
- The DID selector.
content.jsscans text nodes fordid:plc:/did:web:patterns — a best guess. If tangled.org renders DIDs in attributes or a different shape, adjust the scan (this is the UI analog of confirming the NSIDs). - CORS / host. The API ships permissive CORS for local use; the manifest grants
http://127.0.0.1:8000/*. Point both at your host for a hosted demo.
Not built#
The upstream vision — Tangled's own appview rendering third-party trust records
natively (the 6.11 sh.tangled.trust.score records) — is a platform change, not this
extension. Ask Lewis whether the appview can render trust records authored by other DIDs.