This is largely inspired by the work done on golang playground and takes advantage of the go-jsonnet program to give you similar features. In memory and persistance via mysql are supported.
docker run -p 8080:8080 michaeljs1990/jsonnet-playground:1.0.0
See all available tags at https://hub.docker.com/repository/docker/michaeljs1990/jsonnet-playground
For quick mysql seting you can spin up a docker container with the following command.
$ docker run --net=host --name jsonnet --rm -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=jsonnet -d mysql:5.7
$ JSONNET_MYSQL_CONN="root:secret@tcp(127.0.0.1:3306)/jsonnet" ./jsonnet-playground -sql
Build and run
./jsonnet-playground -in-memory