Skip to content

Entrivax/gojq-web

Repository files navigation

GOJQ-web

It is a simple wrapper around itchyny/gojq, compiled to WASM, with a simple web UI for live edits. Its main goal is to test your queries before using them with gojq or jq (be warned of the differences).

Screenshot

Web UI screenshot

How to use

  • Select a JSON file with the file input
  • Compose your query
  • You have the result on the right editor.

How to build

Requirements

  • Go 1.23
  • Make
  • go-licenses go install github.com/google/go-licenses@latest

or

  • Docker

Build natively

Run

make build

Now you can either:

  • serve the front directory with a web server,
  • or you can run the standalone server at bin/file-server by running
    bin/file-server
    and you can change the port with the environment variable PORT
    PORT=7777 bin/file-server

Build with Docker

Run

make docker

Now you can run the image with

docker run -p 8080:8080 -d ghcr.io/entrivax/gojq-web

About

A gojq playground in a web UI for writing and testing jq queries live

Topics

Resources

License

Stars

Watchers

Forks

Packages