Skip to content
A jq playground, written in WebAssembly
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jq @ 9fa2e51
.gitmodules
README.md
compile.sh
index.html
loading.gif

README.md

jq kungfu

A jq playground, written in WebAssembly.

How?

jqkungfu was built by compiling jq into WebAssembly, so that it can run in the browser.

The advantages of this approach are:

  • Speed: After the initial load time, jq queries are very fast because there are no round trips to a server
  • Security: This approach runs jq within the browser; otherwise, we would need to carefully secure the app so that users can't run arbitrary commands on the server!
  • Convenience: The app is purely front-end and is hosted as static files on a cloud storage provider

Setup

To compile jq to WebAssembly, run the compile.sh code within an environment that includes Emscripten.

Learn More

This app is part of an example built for my book Level up with WebAssembly. Check it out if you're interested in more details, or to learn how to create similar applications.

You can’t perform that action at this time.