DEV Community

Jean Eudes Nallatamby
Jean Eudes Nallatamby

Posted on

Open-Source Favicon Provider

Image description

Hi Dev Community,

We've been searching for a stable favicon service for our CRM but didn't have much luck. Many existing options, such as FaviconKit and Google faviconV2, proved problematic due to rate limits, inconsistent performance, and varying icon sizes.

We needed a solution with four main qualities:

  1. Reliability to prevent downtime.
  2. Precision in delivering specific icon sizes, optimizing user bandwidth.
  3. High-quality resolution, offering the finest available icon for any requested size.
  4. Open-source availability, as it's a universal requirement and should be accessible for contributions and hosting.

Here's a simple breakdown of how our solution works:

We've crafted some strategies to acquire favicons, such as extracting them from HTML meta/link tags and utilizing Google's Favicon API. The images are then saved to S3. Generally, when the image is requested next time, it's served directly from our CDN cache. If not, it's pulled from S3.

Our code can be found at: https://github.com/twentyhq/favicon

As for hosting:

We have our server up and running at favicon.twenty.com. As we're using it for our CRM, Twenty, it will be well-maintained and always on. You're welcome to use it as well, just embed the images like this: https://favicon.twenty.com/google.com or https://favicon.twenty.com/google.com/64

To get a deeper look into our project, check out: https://github.com/twentyhq/twenty.

Top comments (1)

Collapse
 
bonapara profile image
Bonapara

Nicely done!