Giter Club home page Giter Club logo

gicon's Introduction

Gicon

Grab favicons of sites using Google's favicon api.

Why?

Google's favicon api contains redirects which means that not all application will be able to follow the redirects and acquire the favicons of the desired sites. This is a proxy that grabs the favicon of a site by following the redirects and responds with a single HTTP response.

Usage

Api endpoints

  • https://gicon.vercel.app/?{param}={value}
  • https://gicon.netlify.app/.netlify/functions/api?{param}={value}
Param Value Description
url string The site url or domain
sz number The size of the favicon e.g. 16, 32, 64, 128, 256.
Default is 256.
Note that it may not reach the exact size.

Examples

https://gicon.vercel.app/?url=google.com
https://gicon.vercel.app/?url=https://www.github.com
https://gicon.vercel.app/?sz=64&url=netlify.com
https://gicon.netlify.app/.netlify/functions/api?sz=128&url=youtube.com
https://gicon.netlify.app/.netlify/functions/api?url=google.com

Libraries

  • Express
  • Serverless-http
  • Axios

gicon's People

Contributors

shaklain125 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

eallion love2wind

gicon's Issues

请教下,怎么部署到netlify,还有能不能增加缓存功能

我试了几次部署都是出现以下错误。还有,能不能增加个缓存功能。
This function has crashed
An unhandled error in the function code triggered the following message:

Runtime.HandlerNotFound - api.handler is undefined or not exported

Stack trace
Runtime.HandlerNotFound: api.handler is undefined or not exported
at UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1122:15)
at async start (file:///var/runtime/index.mjs:1282:23)
at async file:///var/runtime/index.mjs:1288:1
Connection details
Netlify internal ID: 01HJ96G3AKVP3MDETJYT4PETCP

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.