FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
jxnblk
jxnblkvalTownBadge02
Unlisted
Like
valTownBadge02
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://jxnblk--6abf25e8251511f094ab569c3dd06744.web.val.run
README.md

DEPRECATED Use https://www.val.town/x/jxnblk/val-town-badge instead

Render a Val Town badge

Fork it on Val Town

Create val
import valTownBadge from "https://esm.town/v/jxnblk/valTownBadge02"; export default async function(req: Request): Promise<Response> { const badge = valTownBadge(import.meta.url); const html = ` <h1>Hello, world</h1> ${badge} `; return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8", }, }); }

Migrated from folder: _LEAVE_AS_IS/badge_LEAVE_AS_IS/valTownBadge02

HTTP
  • main.tsx
    jxnblk--6a…44.web.val.run
Code
README.md
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.