huyhieu
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.
Viewing readonly version of main branch: v39View latest version
A simple, flat, and minimalistic badge generator that can embed a website's favicon and custom text. Built with Hono and Deno.
- 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
Start the server:
deno run --allow-net main.js
/badge?url=<website>&label=<label>&value=<value>&color=<color>&text=<textColor>
url
(optional): Website to fetch favicon fromlabel
(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)
- Only favicon:
/badge?url=https://github.com
- Favicon + label:
/badge?url=https://github.com&label=GitHub
- Favicon + value:
/badge?url=https://github.com&value=Online
- Favicon + both:
/badge?url=https://github.com&label=GitHub&value=Online
- Custom color:
/badge?url=https://github.com&label=GitHub&value=Online&color=%234c1
- Default (no params):
/badge
→ shows 'huy hieu'
If you use Deno and ValTown for the first time, you may need to add it to your PATH:
set PATH=%PATH%;%USERPROFILE%\.deno\bin
MIT License