This repository has been archived by the owner. It is now read-only.
🎉 Generate colourful favicons!
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
lib
.buildpacks
.gitignore
CODE_OF_CONDUCT.md
LICENSE.txt
Procfile
README.md
app.js
package.json
yarn.lock

README.md

Libraries.io Favicons

Generate favicons that follow the GitHub language colour code.

Usage

Available query parameters are:

  • size: 16, 32, 96, 128 or 196
  • hex: hex colour code, eg: #252525
  • lang: a valid language, check lib/colours.json

Example:

  • http://localhost:5000/favicon.ico?size=128&lang=Ruby

Dependencies

  • brew install cairo
  • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
  • npm install

Running it

npm start

Deployment to Heroku

Deployment to Heroku requires using heroku-buildpack-multi and the buildpacks specified in .buildpack and it only works with node-canvas 1.1.6 (on 1.2.1 there's an issue with pangocairo): https://github.com/Automattic/node-canvas/wiki/Installation-on-Heroku#using-a-custom-build-pack