Public
HTTP (deprecated)
version 74
Readme

Render this badge:

Substrate demo on Val Town

Use the middleware: https://www.val.town/v/substrate/substrateBadgeMiddleware

Or:

import 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", }, }); }
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
substrate-substratebadge.web.val.run
July 10, 2024