Coder Social home page Coder Social logo

Comments (5)

amio avatar amio commented on July 17, 2024

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:

  1. The uri/query/suffix way, which is used on shields.io

  2. 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
    
  3. 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.

amio avatar amio commented on July 17, 2024

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.

tunnckoCore avatar tunnckoCore commented on July 17, 2024

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.

amio avatar amio commented on July 17, 2024

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.

amio avatar amio commented on July 17, 2024

Since RunKit endpoint support could cover this requirement, no plan to support this recently.

from badgen.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.