Render this badge:
Use the middleware: https://www.val.town/v/substrate/substrateBadgeMiddleware
Or:
Create valimport substrateBadge from "https://esm.town/v/substrate/substrateBadge"; export default async function(req: Request): Promise<Response> { const badge = substrateBadge(import.meta.url); const html = ` <h1>Hello, world</h1> ${badge} `; return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8", }, }); }
https://substrate-substratebadge.web.val.run
https://esm.town/v/substrate/substrateBadge
<script type="module" src="https://esm.town/v/substrate/substrateBadge" />