Skip to content

feat: WASM-based web playground for jsongrep #26

@micahkepe

Description

@micahkepe

Is your feature request related to a problem? Please describe.

There's no way to try jg queries without installing the tool first. Users discovering jsongrep from the README or blog post have to install before they can experiment, which raises the barrier to adoption.

Describe the solution you'd like

A browser-based playground (similar to jaq's playground) where users can paste JSON (or YAML/TOML) and run jg queries interactively.

This would involve:

  1. Small WASM wrapper around the lib.
  2. Minimal web UI
  3. GitHub Pages deployment workflow with wasm-pack (Criterion reports already hosted)

Describe alternatives you've considered

  • Just linking to the install instructions → current approach, but higher friction

Additional context

  • Reference implementation: jaq-play (~200 lines of HTML/JS + a small Rust WASM crate)
  • The gh-pages branch currently hosts Criterion HTML reports; the playground would need a subdirectory layout or separate deployment path

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions