Comments (5)
Hmmm, more use case are coming 😋
I think there's more than one way to achieve the goal: serve badge image base on any json/api source:
-
The
uri
/query
/suffix
way, which is used on shields.io -
Support reading result from RunKit endpoint, let RunKit scripts (example) do the dirty works, leave the url clean & readable as:
https://badgen.net/runkit/hello-badgen/:arg1/:arg2
-
Use RunKit endpoint to response a 302 redirection to static badge address, like https://packagephobia.now.sh does right now.
Both (2) and (3) have these benefits:
- Clean & readable url
- Read from more complex api source
- Leverage the power of whole npm (thanks to RunKit) 🤯
from badgen.net.
A roughly support for RunKit is online now:
Examples
RunKit Notebook: https://runkit.com/amio/peoples
RunKit Notebook: https://runkit.com/amio/satisfaction
from badgen.net.
Yup. Make sense. Let's be a bit different. :)
Absolutely awesome! 🎉 With a bit of documentation would be great.
edit: just thought to respond to reddit and seen you did it already! ;d
from badgen.net.
It's a rough implementation, I'm still thinking if we can make it better before releasing as a "stable" feature 😄 In case I miss something.
from badgen.net.
Since RunKit endpoint support could cover this requirement, no plan to support this recently.
from badgen.net.
Related Issues (20)
- Some hackage badges just display "badgen error" HOT 6
- Enhancement: Ad support for github workflows.
- Some flat badges are not flat HOT 2
- Flat GitLab badges are no longer flat
- Enhancement: Create ARM64 image and push to dockerhub HOT 1
- [REQ] sourceforge - and not only - support
- badgen.net don't respect `cache` option HOT 1
- Including icon parameter provide incorrect response image HOT 4
- [Bug] Bundlephobia badges unreliable, returning 429 HOT 3
- [REQ] codeberg.org support HOT 5
- Cannot find module './public/.meta/badges.json'
- [Enhancement] distinguish between error message and correct value HOT 1
- [idea] range for pypi python versions HOT 2
- Wrong number of chrome web store users HOT 3
- [Feature Request] Github Language
- badgesize badge is broken
- 404 error on all Codecov badges HOT 4
- `api-` folder typo? HOT 2
- Twitter errors out - remove? HOT 1
- Update README directions on where to put new badge HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badgen.net.