Badgen Service
 
 
 
Go to file
Amio 1401a1bc0e docs: cleanup words in readme 2018-07-21 23:43:38 +08:00
libs
.gitignore
README.md docs: cleanup words in readme 2018-07-21 23:43:38 +08:00
now.json
package-lock.json
package.json
service.js

README.md

Badgen Service

dependencies service status uptime last week response time

Home of Badgen, fast badge generating service.

The Badgen Story

That's a service, that's a library, hooorey! -- @olstenlarck

TLDR: Badgen use badgen to generate svg badges on the fly, running on Zeit's now.sh, serving behind Now CDN.

The badgen library was born as an exploration of "is it possible to generate badge svg markup directly with JavaScript(without using pdfkit/canvas/puppeteer to measure text length)?". Result is better than I expected, Verdana(the de-facto font for badges) text width can be calculated precisely with a prebuilt char-width-table, even no need to worried about kerning 🤯

Then cames Badgen. I had a good time with shields.io(and earlier badge.fury.io), but as time goes by Shields gets slower, leaves more and more broken badges in READMEs. Badgen is trying to be a fast alternative with simplicity and flexibility.

At beginning I was considering between now.sh and Google Cloud Functions. Then Zeit released Now CDN on the same day as badgen.now.sh's reveal, what a fate! Born to fall in love 😘. With Now CDN, Badgen removed all builtin cache while serving faster than ever. Now Badgen has settled it's home on Zeit's Now.

Thanks to awesome people's help, Badgen are getting better and better. Welcome to join us, let's build the best badge service in the universe 🔥

Developing

  • npm start or better if you have nodemon: nodemon service.js

About

Made with ❤️ by Amio, built with from badgen.