Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom JSON Query Builder

Web-based visual query schema builder with real-time validation and Kibana/CLS operator parity. Built in Rust/WASM with Dioxus.


Prerequisites — Run Once

Tool Install
Rust rustup.rs
WASM target rustup target add wasm32-unknown-unknown
Dioxus CLI cargo install dioxus-cli --version "=0.7.9" --locked

Local Dev

dx serve

Open http://localhost:8080


Container (Podman / Docker)

Build

podman build -t json-query-builder .

Run

podman run -d --name query-builder -p 8080:8080 --read-only json-query-builder

Open http://localhost:8080

Stop

podman stop query-builder && podman rm query-builder

Clean Intermediate Build Cache / Dangling Images

podman image prune -f

Replace podman with docker if needed.


How It Works

  • Type a field name → controls appear
  • Clear a field name → row auto-removes
  • Array / Dictionary → nested child rows appear indented
  • Duplicate fields at same level → validation error
  • Generate Query → downloads clean JSON (no empty rows)
  • Import Query → loads and validates .json file

Field Types

String · Keyword · Number · Boolean · Date · IP · GeoPoint · Null · Array · Dictionary

Operators

equals · not equals · contains · does not contain · starts with · ends with · exists · does not exist · greater than · less than · >= · <= · in · not in · regex · wildcard · range

TODO

  • Fix when running as container electron doesn't load CSS file
  • Switch first step to slim image
  • Add validation per picked type so no value type number equals string value
  • Rewrite with BUN

About

Learning attempt of Dioxus in Rust with WASM, simple website to generate schemas that can define a search in Kibana/CLS engines

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages