Find favicons and fetch them fast.
| Path | Returns | Description |
|---|---|---|
/text/:url | Text | Favicon URL as plain text |
/blob/:url | Image | Favicon image binary |
/list/:url | JSON | All favicon URLs found |
/debug/:url | JSON | Debug data from the fetch process |
GET /text/https://github.com
→ https://github.githubassets.com/favicons/favicon.svg
GET /blob/https://github.com
→ (image binary)
GET /list/https://github.com
→ ["https://...", "https://...", ...]
GET /debug/https://github.com
→ { ... }
Try it: /text/https://wikipedia.org
import favicon from "@victr/favicon-fetcher"
const url = await favicon.text("https://github.com")
const img = await favicon.blob("https://github.com")
const all = await favicon.list("https://github.com")