Coder Social home page Coder Social logo

Runkit Support about badgen.net HOT 9 CLOSED

badgen avatar badgen commented on July 17, 2024 3
Runkit Support

from badgen.net.

Comments (9)

styfle avatar styfle commented on July 17, 2024 3

That /https endpoint is amazing 🔥

from badgen.net.

styfle avatar styfle commented on July 17, 2024 2

How about something like this:

https://badgen.net/https/peoples-x9okc2jt0paw.runkit.sh

Which would call this endpoint:

https://peoples-x9okc2jt0paw.runkit.sh

Then you can support any arbitrary https calls by looking for this pattern:

https://badgen.net/https/:url

from badgen.net.

tunnckoCore avatar tunnckoCore commented on July 17, 2024 1

btw, out of scope of this issue, but why you are not using micro and micro-dev here? I was thinking this last days..

from badgen.net.

styfle avatar styfle commented on July 17, 2024 1

This is a great idea! 🎉

I have a list of many Online IDE's that are similar to Runkit that you might want to implement (assuming they have APIs available).

Check out the list here: https://github.com/styfle/awesome-online-ide

from badgen.net.

amio avatar amio commented on July 17, 2024 1

I thought about exactly the same thing too 😄

Will /https/something.now.sh looks a bit tricky? Looks like imitating https url but not really a https schema 🤔

from badgen.net.

styfle avatar styfle commented on July 17, 2024 1

I have seen this syntax used somewhere else but I can't remember.
I don't think it's confusing, heres how it will look:

image

Just add the "i" info icon to explain how it works.

from badgen.net.

amio avatar amio commented on July 17, 2024

Another example, a calendar badge 📅

RunKit Notebook: https://runkit.com/amio/cal-badge


 * USAGE
 *    https://badgen.net/runkit/cal-badge-icd0onfvrxx6
 *    https://badgen.net/runkit/cal-badge-icd0onfvrxx6/Asia/Shanghai

from badgen.net.

amio avatar amio commented on July 17, 2024

Seems only RunKit has an endpoint feature, which is required for this idea.

now.sh could be the next to support, or even better we can support any endpoint, as long as they:

  1. expose an https endpoint, like https://some-endpoint.example.com
  2. the whole endpoint is only hostname, without path. like htps://some-endpoint.example.com/nope, path is reserve for Badgen sending args to endpoint.

I'm thinking what keyword to use for this "universal" 3rd party endpoint support, or step further, use this feature to cover RunKit/now.sh support, just this universal endpoint support 🎉

But for now, I think RunKit is best choice for this usage. Maybe it's good enough so we don't need any other similar support (now.sh, universal endpoint)?

from badgen.net.

amio avatar amio commented on July 17, 2024

Made a /runkit doc page
https://badgen.net/docs/runkit

And /https too
https://badgen.net/docs/https

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.