export default function App() { return ( <>
通过 HTTP API 代理获取任意网站的 favicon,使用 Google、 DuckDuckGo 与直连目标站 多路竞速,谁先返回就用谁,适合在国内无法直连的站点。(Bing 无公开 favicon API,故用 DuckDuckGo 作为第二源。)
GET 请求,支持参数:
url 或 domain 或 u
:目标网站地址或域名(必填)
size:图标尺寸,16–256,默认 128(仅对 Google 源有效)
/api/favicon?url=https://twitter.com
/api/favicon?domain=github.com&size=64
GET https://你的 Workers 域名/api/favicon?url=https://example.com
返回为图片二进制(或 400/502 JSON 错误)。
> ); }