Skip to content

tuananh/webadge.dev

Repository files navigation

🚥 WeBadge.dev

It's just badge - built with Cloudflare Workers

I'm a huge fan of badgen.net. However, I find the images fail to load quite often. I want to use Cloudflare Workers (+ KV and maybe Unique durable object where feasible) to rebuild it.

Most of the code here is originally from badgen repo. Credits to them for building a very nice service.

The goal of this project is

  • Eventually support all badges that supported by badgen.net
  • Extremely fast but try to refresh data as quickly as possible.
  • Exclusively use Cloudflare tech stack only for learning purpose.

Contribute

  • Install @cloudflare/wrangler.
  • Make the changes.
  • Test with wrangler dev or wrangler preview.

Currently supported badges

Live badges

Preview URL
npm version /npm/v/camaro
npm license /npm/license/camaro
npm types /npm/types/camaro
npm downloads per week /npm/dw/lodash
npm downloads per month /npm/dm/lodash
npm downloads per year /npm/dy/lodash
npm downloads total /npm/dt/lodash
Travis CI (build) /travis/tuananh/camaro
Travis CI (build - branch) /travis/tuananh/camaro
Appveyor (build) /appveyor/tuananh/camaro
Appveyor (build - branch) /appveyor/tuananh/camaro/master
bundlephobia min /bundlephobia/min/camaro
bundlephobia minzip /bundlephobia/minzip/camaro
bundlephobia tree-shaking /bundlephobia/tree-shaking/camaro
bundlephobia tree-shaking /bundlephobia/tree-shaking/date-fns
packagephobia publish size /packagephobia/publish/camaro
packagephobia install size /packagephobia/install/camaro
packagephobia scoped pkg /packagephobia/publish/@tusbar/cache-control
GitHub releases count /github/releases/tuananh/camaro
GitHub tags count /github/tags/tuananh/camaro
GitHub latest release /github/release/tuananh/camaro
GitHub stars /github/stars/tuananh/camaro
GitHub watchers /github/watchers/tuananh/camaro
GitHub forks /github/forks/tuananh/camaro
GitHub issues /github/issues/tuananh/camaro
GitHub open issues /github/open-issues/tuananh/camaro
GitHub closed issues /github/closed-issues/tuananh/camaro
GitHub pull requests /github/prs/tuananh/camaro
GitHub open pull requests /github/open-prs/tuananh/camaro
GitHub closed pull requests /github/closed-prs/tuananh/camaro
GitHub merged pull requests /github/merged-prs/tuananh/camaro
VS Marketplace version /vs-marketplace/v/buianhthang.xml2json
VS Marketplace installs /vs-marketplace/i/buianhthang.xml2json
VS Marketplace downloads /vs-marketplace/d/buianhthang.xml2json
VS Marketplace rating /vs-marketplace/rating/buianhthang.xml2json
Docker pulls /docker/pulls/library/ubuntu
Docker size /docker/size/library/ubuntu
Docker star /docker/stars/library/ubuntu
Docker stars (icon & label) /docker/stars/library/mongo?icon=docker&label=stars
Docker size (scoped/tag/architecture) /docker/size/lukechilds/bitcoind/latest/amd64
Docker size (scoped/tag/architecture/variant) /docker/size/lucashalbert/curl/latest/arm/v6

Static badges

Preview URL
Swift version /badge/Swift/4.2/orange
License MIT /badge/license/MIT/blue
Chat on Gitter /badge/chat/on%20gitter/cyan
star rating /badge/stars/★★★★☆
patron /badge/become/a%20patron/F96854
code style: standard /badge/code%20style/standard/f2a

Other styling options

Preview URL
flat style /badge/Swift/4.2/orange?style=flat
color /npm/v/camaro?color=yellow
label /npm/v/camaro?label=npm%20registry
labelColor /npm/v/camaro?labelColor=red
list /badge/registry/npm,github/green?list=
icon /npm/v/camaro?icon=
icon (custom) /npm/v/camaro?icon=github

Releases

No releases published

Packages

No packages published