{"id":17381755,"url":"https://github.com/seadfeng/favicons-proxy","last_synced_at":"2026-01-12T14:50:52.510Z","repository":{"id":253358760,"uuid":"843264703","full_name":"seadfeng/favicons-proxy","owner":"seadfeng","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-20T10:33:16.000Z","size":5,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-21T12:42:15.323Z","etag":null,"topics":["cloudfare-workers","favicon-site","favicons","faviconsite","faviconsite-proxy","getfavicon"],"latest_commit_sha":null,"homepage":"https://favicons.seadfeng.workers.dev/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seadfeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-16T06:13:02.000Z","updated_at":"2024-08-21T04:31:18.000Z","dependencies_parsed_at":"2024-08-16T07:54:48.318Z","dependency_job_id":null,"html_url":"https://github.com/seadfeng/favicons-proxy","commit_stats":null,"previous_names":["seadfeng/favicons-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seadfeng%2Ffavicons-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seadfeng%2Ffavicons-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seadfeng%2Ffavicons-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seadfeng%2Ffavicons-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seadfeng","download_url":"https://codeload.github.com/seadfeng/favicons-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219842817,"owners_count":16556563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudfare-workers","favicon-site","favicons","faviconsite","faviconsite-proxy","getfavicon"],"created_at":"2024-10-16T07:01:37.025Z","updated_at":"2026-01-12T14:50:52.491Z","avatar_url":"https://github.com/seadfeng.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Favicons Proxy\n\nFavicons Proxy is a Cloudflare Worker that serves as a middleman for fetching website favicons. It attempts to retrieve favicons from multiple sources in a specified order, ensuring that you get the best available icon for any given domain.\n\n## Features\n\n- Fetches favicons from multiple sources:\n  1. Google Favicons\n  2. DuckDuckGo Icons\n  3. Icon Horse\n- Handles failed requests gracefully by trying the next source\n- Validates domain format before making requests\n- Caches successful responses for improved performance\n- Simple to use with a clean URL structure\n\n## Usage\n\nTo use the Favicons Proxy, simply make a GET request to the worker URL with the desired domain:\n\n```\nhttps://favicons.seadfeng.workers.dev/example.com.ico\n```\n\nReplace `example.com` with the domain you want to fetch the favicon for.\n\n## How It Works\n\n1. The worker receives a request for a domain's favicon.\n2. It validates the domain format to ensure it's potentially valid.\n3. If the domain is valid, it attempts to fetch the favicon from the following sources in order:\n   - `https://www.google.com/s2/favicons?domain=${domain}\u0026sz=50`\n   - `https://icons.duckduckgo.com/ip3/${domain}.ico`\n   - `https://icon.horse/icon/${domain}`\n4. If a favicon is successfully retrieved from any source, it is returned to the user.\n5. If all sources fail, a 404 error is returned.\n\n## Deployment\n\nTo deploy this worker:\n\n1. Log in to your Cloudflare dashboard.\n2. Navigate to the Workers section.\n3. Create a new Worker.\n4. Copy the provided Worker script into the editor.\n5. Save and deploy the Worker.\n6. (Optional) Set up a custom subdomain for your Worker, e.g., `favicons.yourdomain.workers.dev`.\n\n## Configuration\n\nThe Worker doesn't require any additional configuration. However, you can modify the `sources` array in the script if you want to add, remove, or reorder the favicon sources.\n\n## Limitations\n\n- The proxy doesn't verify if the returned image is actually a favicon; it trusts the source.\n- It always returns the Content-Type as `image/x-icon`, which may not be accurate for all responses.\n- There's no built-in rate limiting, so consider implementing this if you expect high traffic.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n---\n\nCreated by Sead Feng","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseadfeng%2Ffavicons-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseadfeng%2Ffavicons-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseadfeng%2Ffavicons-proxy/lists"}