FavvyVision is a web application built with Express.js that fetches the favicon (shortcut icon) from different websites. It provides a simple API endpoint to retrieve favicons based on the URL of the website.
To fetch the favicon of a website, make a GET request to the following endpoint:
https://favvyvision.onrender.com/favicon?url=<website_url>
Replace <website_url>
with the URL of the website you want to fetch the favicon for.
To fetch the favicon for "https://www.chess.com/", make a GET request to:
https://favvyvision.onrender.com/favicon?url=https://www.chess.com/
- Express.js
- Node.js
To set up and run the application locally, follow these steps:
- Clone this repository.
- Navigate to the project directory.
- Install dependencies with
npm install
. - Start the server with
npm start
. - The server will start running on
http://localhost:3000
.
- GET /favicon
- Query Parameters:
url
: The URL of the website to fetch the favicon for.
- Response:
- Returns the favicon of the specified website.
- Query Parameters:
- Only the
/favicon
endpoint is supported. Any other paths will result in a 404 error.