@Public() — no JWT, no SDK, no IP
allowlist. Copy the snippet, swap the two placeholder constants for your
shop slug and merchant ID, and the widget renders.
What the widget shows
- Your Schema A brand attestation status —
ACTIVE,PENDING, or not-yet-issued. - Your associated lender(s) sourced from the
LenderRegistryvia the routing recommender. - Your most-recent credit-risk attestation (Schema B), if any — credit line amount + issuing lender.
- Your repayment-history (Schema C) rollup — successful settlements count.
- Your trust-tier (if
/v2/upgrade-previewreturns one —starter,verified,trusted, etc.). - Aggregate trust-fabric scale from
/v2/trust-fabric/statsso you can display a “Powered by Droplinked Trust Fabric” badge with live platform numbers.
Live data sources
| Endpoint | What it surfaces |
|---|---|
GET /v2/attestations/brand/:slug | Schema A brand attestation status |
GET /v2/attestations/credit-risk/:merchantId | Schema B credit-risk attestation (current credit line + issuing lender) |
GET /v2/attestations/repayment-history/:merchantId | Schema C repayment rollup |
GET /v2/upgrade-preview | Trust-tier projection |
GET /v2/lender-routing/recommend?jurisdiction=... | Associated / recommended lenders |
GET /v2/trust-fabric/stats | Aggregate platform badge numbers |
Widget code
- Vanilla HTML + JS
- React
Self-contained — drop into any existing HTML page or merchant admin
template.
Privacy + auth
Every endpoint this widget calls is decorated with@Public() in the API —
no JWT, no API key, no IP allowlist. That means you can embed the snippet
directly in client-side code on a shop builder template or a custom
storefront without proxying through a backend.
The fields surfaced are public-safe by design:
- Statuses, tier labels, credit line amount, settlement counts.
- No operator-side actor IDs.
- No signing wallet addresses.
- No regulator references or audit reasons.
- No counterparty PII.
Customization
- Brand chrome — swap the
#2bcfa1/#06c295/#11221cpalette for your own; replace the<h2>heading with your own copy or logo. - Hide cards — remove the credit-line card on a storefront where you only want to show brand attestation, or remove the “Powered by” footer on an internal admin portal.
- Per-tier badges — render a different SVG / color for each
upgrade.currentTiervalue (starter/verified/trusted). - Lender association list — call
/v2/lender-routing/recommend?jurisdiction=YOUR_GEOand render the top-N recommended lenders alongside the credit line for a “who’d underwrite you today” view. - Link to forensic chain — if you also want to expose attestation hashes,
link
brand.attestationUidthrough to the public block explorer rather than rendering the hex on the card itself.
Polling cadence
Recommend a client-side refresh of 5 minutes or greater for this widget. The endpoints used here are aggregate / lookup endpoints — they don’t change at high velocity. The reference Trust-Fabric Dashboard Template uses 60-second polling because it’s a platform-aggregate dashboard; a per-merchant posture widget changes more slowly (status flips, periodic credit-line refreshes), so 5 minutes is plenty. If you embed multiple instances of this widget on the same page, cache the fetch responses at module scope or behind SWR / React Query withstaleTime: 300_000 to avoid duplicate requests.
CORS
All endpoints used here are CORS-permissive — they respond withAccess-Control-Allow-Origin: * to browser fetches from any origin. You
can verify locally:
support@droplinked.com with the origin
- the failing request — it usually indicates a WAF rule rather than a CORS policy.
What this widget does NOT show
Operator-only fields stay in the SUPER_ADMIN console and never appear in the public attestation endpoints — so they don’t appear in this widget either:- Signing wallet addresses + key custody references.
- Per-attestation audit-log entries (who issued, when, on what host).
- Operator notes / underwriting reasons.
- Regulator correspondence references.
- Lender-side risk scoring detail.
Related
- Trust-Fabric Dashboard Template — platform-aggregate dashboard (for lenders / partner portals)
- For Merchants — merchant-side narrative for the trust-fabric value prop
- Trust Fabric (EAS Schema v2) — 4-axis architecture overview
- Trust-Fabric Stats — aggregate endpoint reference
- Upgrade Preview — trust-tier projection endpoint
- Lender Routing — jurisdiction-ranked lender recommender