• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
lanly

lanly

huyhieu

Public
Like
huyhieu
Home
Code
12
.git
.vscode
.vt
node_modules
.cursorrules
.gitignore
.vtignore
README.md
deno.json
eslint.config.mjs
H
main.js
package.json
Branches
1
Pull requests
Remixes
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 milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/15/2025
Viewing readonly version of main branch: v42
View latest version
README.md

huyhieu - Minimalistic Badge Service

A simple, flat, and minimalistic badge generator that can embed a website's favicon and custom text. Built with Hono, Deno, and served by ValTown

Features

  • Flat, modern SVG badges
  • Embeds a website's favicon (ICO)
  • Customizable label and value text (optional)
  • Sensible defaults (shows 'huy hieu' if no text provided)
  • Fast and lightweight

Usage

Start the server:

deno run --allow-net main.js

huyhieu API

/huyhieu?url=<website>&label=<label>&value=<value>&color=<color>&text=<textColor>
  • url (optional): Website to fetch favicon from
  • label (optional): Left text (default: 'huy' if both label and value are missing)
  • value (optional): Right text (default: 'hieu' if both label and value are missing)
  • color (optional): Badge color (default: #4c1)
  • text (optional): Value text color (default: #fff)

Examples

  • Only favicon: /huyhieu?url=https://github.comExample badge

  • Favicon + label: /huyhieu?url=https://github.com&label=GitHubExample badge

  • Favicon + value: /huyhieu?url=https://github.com&value=OnlineExample badge

  • Favicon + both: /huyhieu?url=https://github.com&label=GitHub&value=OnlineExample badge

  • Custom color: /huyhieu?url=https://github.com&label=GitHub&value=Online&color=blueExample badge

  • Default (no params): `/huyhieu → shows 'huy hieu' Example badge

Development

  • Requires Deno
  • Uses Hono for routing

Notes

If you use Deno and ValTown for the first time, you may need to add it to your PATH:

# Set deno to path set PATH=%PATH%;%USERPROFILE%\.deno\bin # Install vt deno install -grAf jsr:@valtown/vt # Run in local deno run --allow-net main.js
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.