Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

asyncapi-archived-repos/playground

Folders and files

NameName
Last commit message
Last commit date
Mar 2, 2022
May 6, 2019
May 18, 2021
Oct 14, 2021
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
May 5, 2019
Oct 30, 2020
Dec 16, 2020
Mar 3, 2022
May 6, 2019
Feb 18, 2022
Feb 18, 2022
May 6, 2019

Repository files navigation

NOTE: This package has been deprecated in favor of the AsyncAPI Studio. To check Studio changes against Playground check this list.

AsyncAPI Playground

Using it locally

Run:

npm install

and

npm start

and go to http://localhost:5000.

Build docker image

docker build -t asyncapi-playground .

Run docker image

docker run -d --name asyncapi-playground -p 83:5000 asyncapi-playground:latest

Then browse to http://localhost:83/

URL query parameters:

  • load - load the external AsyncAPI spec:
https://playground.asyncapi.io/?load=https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka.yml
  • url - this same purpose as load:
https://playground.asyncapi.io/?url=https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka.yml
  • template - show given template. Allowed values are markdown and html:
https://playground.asyncapi.io/?template=markdown
  • readOnly - show only rendered template. Allowed values are true and empty string:
https://playground.asyncapi.io/?readOnly

Environment variables:

  • DISABLE_DEBUG - set it to 1 or true to disable logs:
DISABLE_DEBUG=1 npm start