badgen.net/README.md

32 wiersze
2.2 KiB
Markdown
Czysty Zwykły widok Historia

2018-07-15 14:49:46 +00:00
# Badgen Service
2018-06-26 10:09:22 +00:00
2018-07-21 13:56:29 +00:00
![dependencies](https://badgen.now.sh/david/dep/amio/badgen-service)
![service status](https://badgen.now.sh/uptime-robot/status/m780731617-a9e038618dc1aee36a44c4af)
![uptime last week](https://badgen.now.sh/uptime-robot/week/m780731617-a9e038618dc1aee36a44c4af)
![response time](https://badgen.now.sh/uptime-robot/response/m780731617-a9e038618dc1aee36a44c4af)
2018-07-21 15:42:04 +00:00
Home of [Badgen](https://badgen.now.sh), fast badge generating service.
2018-07-21 13:56:29 +00:00
## The Badgen Story
> That's a service, that's a library, hooorey! -- @olstenlarck
2018-07-21 14:43:02 +00:00
TLDR: Badgen use [badgen](https://github.com/amio/badgen) to generate svg badges on the fly, running on Zeit's [now.sh](https://zeit.co/now), serving behind Now CDN.
2018-07-21 13:56:29 +00:00
The [badgen](https://github.com/amio/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](https://github.com/amio/badgen/blob/master/lib/widths-verdana-11.json), even no need to worried about kerning 🤯
2018-07-21 15:42:04 +00:00
Then cames Badgen. I had a good time with [shields.io](https://shields.io)(and earlier [badge.fury.io](https://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.
2018-07-21 13:56:29 +00:00
2018-07-21 14:43:02 +00:00
At beginning I was considering between [now.sh](https://zeit.co/now) and [Google Cloud Functions](https://cloud.google.com/functions/). Then Zeit released [Now CDN](https://zeit.co/blog/now-cdn) on the same day as [badgen.now.sh](https://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.
2018-07-21 13:56:29 +00:00
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 🔥
2018-07-15 14:49:46 +00:00
## Developing
2018-07-16 08:19:43 +00:00
- `npm start` or better if you have nodemon: `nodemon service.js`
2018-07-10 08:17:58 +00:00
2018-07-10 13:04:33 +00:00
## About
2018-06-26 05:39:49 +00:00
2018-07-15 14:49:46 +00:00
Made with ❤️ by [Amio](https://github.com/amio),
2018-07-16 08:19:43 +00:00
built with ⚡️ from [badgen](https://github.com/amio/badgen).