Letter-It is a lightweight, fast API for generating dynamic favicons on the fly. Built with Cloudflare Pages Functions.
- ⚡ Blazing Fast - Edge generation with Cloudflare Pages Functions
- 🎨 Two Styles - Rounded (faviconV1) and Square (faviconV2)
- 📦 Lightweight - Native SVG output, zero dependencies
- 🔒 Secure - Strict parameter validation
- 🌐 CORS Enabled - Use it from any domain
- 🌍 Multi-language - Auto-detects browser language (EN, ES, FR, DE, JA, ZH)
| Endpoint | Style | Description |
|---|---|---|
| /faviconV1 | Rounded | Generates favicon with rounded corners (rx="8") |
| /faviconV2 | Square | Generates favicon with square corners (rx="0") |
| Parameter | Description | Example |
|---|---|---|
| url | Domain to generate the favicon (required) | google.com |
| size | Output size in pixels (default: 256) | 128 |
| color | Custom HEX color (default: random) | 4285f4 |
Rounded (faviconV1): https://letter-it.b4.cc.cd/faviconV1?url=google.com&size=128&color=4285f4
Square (faviconV2): https://letter-it.b4.cc.cd/faviconV2?url=github.com&size=64&color=24292e
Without color (random): https://letter-it.b4.cc.cd/faviconV1?url=twitter.com&size=256
git clone https://github.com/quasvx/Letter-It.git cd Letter-It
/ ├── functions/ │ ├── faviconV1.js # Rounded corners │ └── faviconV2.js # Square corners ├── images/ │ ├── favicon.png # Rounded favicon image │ └── faviconv2.png # Square favicon image ├── public/ │ └── index.html # Documentation page └── README.md
Option A: CLI npx wrangler pages deploy .
Option B: Git git push origin main
Option C: Dashboard
- Go to Cloudflare Dashboard -> Pages
- Connect your repository
- Set output directory: public
- Deploy
| Code | Description |
|---|---|
| 400 | url is required or invalid format |
| 400 | size must be a positive number |
| 400 | color must be a valid 6-digit HEX |
| 400 | Invalid parameters |
?url=google.com&color=4285f4
?url=github.com&color=24292e
?url=twitter.com&color=1da1f2
?url=youtube.com&color=ff0000
?url=spotify.com&color=1db954
The documentation page automatically detects your browser language and displays content in:
- English (default)
- Spanish
- French
- German
- Japanese
- Chinese
If you find this project useful, consider supporting its development:
Support the project: https://go.link-it.cc.cd/donate
MIT © 2026 Letter-It
Contributions are welcome! Please open an issue first to discuss any changes.
Made with ❤️ and Cloudflare Pages Functions