A powerful multi-platform JSON toolbox built with Rust + Tauri 2.0 + React. One Rust core, every platform โ desktop, web, mobile, browser extension, and mini program.
Live Demo: https://junhey.github.io/json-toolkit/
10 core JSON tools, all powered by a shared Rust core:
| Tool | Description | Web | Desktop | Extension | Mini Program |
|---|---|---|---|---|---|
| Formatter | Beautify JSON with configurable indent | โ | โ | โ | โ |
| Minifier | Compress JSON, remove all whitespace | โ | โ | โ | โ |
| Sorter | Sort by key or value, ascending/descending | โ | โ | โ | โ |
| Codec Toolkit | 24 encode/decode transforms (Unicode/URL/UTF16/Base64/MD5/Hex/SHA1/HTML/Gzip/JWT/Cookie/Proto Hexโฆ) | โ | โ | โ | โ |
| JSONPath | Query JSON with JSONPath expressions | โ | โ | โ | โ |
| Tree View | Collapsible interactive JSON tree browser | โ | โ | โ | โ |
| Table View | Flatten JSON arrays/objects to tables | โ | โ | โ | โ |
| Diff | Compare two JSON objects, highlight changes | โ | โ | โ | โ |
| Schema Validator | Validate JSON against JSON Schema | โ | โ | โ | โ |
| CSV Converter | Convert between JSON and CSV/TSV | โ | โ | โ | โ |
| Platform | Status | Tech | How to Get |
|---|---|---|---|
| Web | โ Deployed | Vite + React + WASM | Open in browser |
| macOS | โ Ready | Tauri 2.0 | pnpm build:tauri โ .dmg / .app |
| Windows | โ Ready | Tauri 2.0 | CI builds .msi / .exe on tag push |
| Linux | โ Ready | Tauri 2.0 | CI builds .deb / .AppImage on tag push |
| Android | โ Configured | Tauri Mobile | CI builds .apk (see setup) |
| iOS | โ Configured | Tauri Mobile | CI builds .ipa (see setup) |
| Chrome Extension | โ Ready | WXT + React + WASM | Load unpacked (see setup) |
| WeChat Mini Program | โ Ready | Taro 4 + React | Import to WeChat DevTools (see setup) |
โโโโโโโโโโโโโโโ
โ json-core โ (Rust library)
โ 10 tools โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโผโโโโโโโ โโโโโโโโโผโโโโโโโโ โโโโโโโโผโโโโโโโ
โ WASM โ โ Tauri โ โ Pure JS โ
โ (wasm-pack) โ โ (native) โ โ (fallback) โ
โโโโโโโโฌโโโโโโโ โโโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโ
โ โ โ
โโโโโโโโโดโโโโโโโโ โโโโโโโดโโโโโโโ โโโโโโโโดโโโโโโโ
โ โ โ โ โ โ
โโโโโโผโโโโโ โโโโโโโโโผโโโ โ โโโโโโโโโโผโโโ โ โโโโโโโโโโโโผโโโ
โ Web SPA โ โ Chrome โ โ โ macOS App โ โ โ Mini Programโ
โ (Vite) โ โ Extensionโ โ โ Win/Linux โ โ โ (Taro) โ
โโโโโโโโโโโ โโโโโโโโโโโโ โ โ Android โ โ โโโโโโโโโโโโโโโ
โ โ iOS โ โ
โโโโโโโโโโโโโโ โโโโโโโโโโโโโ โ
โโ Mobile uses Tauri native โโ
Key design: The Rust json-core crate compiles to both WASM (for web/extension) and native (for Tauri desktop/mobile). A platform adapter auto-detects the environment and routes calls accordingly. The mini program uses a pure JS fallback since WASM support is limited in that environment.
json-toolkit/
โโโ crates/json-core/ # Shared Rust core (10 JSON tools + WASM bindings)
โโโ src-tauri/ # Tauri desktop + mobile app
โ โโโ src/
โ โ โโโ main.rs # Entry point
โ โ โโโ lib.rs # Tauri app setup
โ โ โโโ commands.rs # 12 Tauri commands wrapping json-core
โ โโโ Cargo.toml # Tauri dependencies
โ โโโ tauri.conf.json # Tauri config (desktop + mobile)
โ โโโ capabilities/ # Tauri 2.0 capability configs
โโโ web/ # Web app (Vite + React + TailwindCSS)
โ โโโ src/
โ โ โโโ App.tsx # Main app with sidebar + tool routing
โ โ โโโ tools/ # 10 tool components
โ โ โโโ lib/
โ โ โ โโโ adapter.ts # Platform adapter (WASM vs Tauri)
โ โ โ โโโ types.ts # Shared TypeScript types
โ โ โ โโโ tools.ts # Tool metadata + categories
โ โ โ โโโ i18n.ts # Chinese/English translations
โ โ โโโ components/ # Shared UI components
โ โ โโโ store.ts # Zustand state (theme, lang, history)
โ โ โโโ wasm/ # Generated WASM output (gitignored)
โ โโโ vite.config.ts
โ โโโ package.json
โโโ extension/ # Chrome Extension (WXT + React + WASM)
โ โโโ entrypoints/
โ โ โโโ popup/ # 400ร500 popup with 4 quick tools
โ โ โโโ sidepanel/ # Full side panel with all 9 tools
โ โ โโโ background.ts # Service worker
โ โ โโโ content.ts # Auto-detect JSON on pages
โ โโโ utils/wasm.ts # WASM loader via chrome.runtime
โ โโโ wasm/ # Copied WASM files (gitignored)
โ โโโ wxt.config.ts # WXT config with manifest
โ โโโ package.json
โโโ miniprogram/ # WeChat Mini Program (Taro 4 + React)
โ โโโ src/
โ โ โโโ pages/
โ โ โ โโโ index/ # Main page (tool grid + input/output)
โ โ โ โโโ result/ # Result display page
โ โ โ โโโ about/ # About page
โ โ โโโ utils/
โ โ โ โโโ jsonTools.ts # Pure JS implementation (7 tools)
โ โ โโโ app.ts # App entry
โ โ โโโ app.config.ts # Pages + tabBar config
โ โ โโโ app.css # Global styles
โ โโโ config/index.ts # Taro build config
โ โโโ project.config.json # WeChat DevTools config
โ โโโ package.json
โโโ .github/workflows/
โ โโโ ci.yml # Rust tests + web build (on push/PR)
โ โโโ deploy-web.yml # Deploy to GitHub Pages (on push to main)
โ โโโ build-desktop.yml # Build macOS/Win/Linux (on tag push)
โ โโโ build-mobile.yml # Build Android/iOS (on tag push)
โ โโโ build-extension.yml # Build Chrome Extension (on tag push)
โโโ Cargo.toml # Rust workspace root
โโโ package.json # pnpm workspace root (all scripts)
โโโ pnpm-workspace.yaml # Workspace: web + extension + miniprogram
โโโ rust-toolchain.toml # Rust toolchain config
- Rust 1.75+ (
rustup) - Node.js 20+ and pnpm 10+
- wasm-pack (
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh) - Android Studio (for Android builds only)
- Xcode (for iOS builds only, macOS only)
- WeChat DevTools (for mini program only)
# Clone
git clone https://github.com/junhey/json-toolkit.git
cd json-toolkit
# Install dependencies
pnpm install
# Build WASM core (required before first run)
pnpm wasm:build
# Run web dev server
pnpm dev:web # โ http://localhost:5173
# Run Tauri desktop dev (macOS)
pnpm dev:tauri # โ opens desktop window
# Run tests
pnpm test:rust # โ 37 Rust unit testsAlready deployed to GitHub Pages: https://junhey.github.io/json-toolkit/
# Dev
pnpm dev:web
# Build for production
pnpm build:web
# Build for GitHub Pages (uses /json-toolkit/ base path)
GITHUB_PAGES=true pnpm --filter web buildDeployment is automatic โ pushing to main triggers the deploy-web.yml workflow.
# Dev (macOS)
pnpm dev:tauri
# Build for current platform
pnpm build:tauri
# Output: src-tauri/target/release/bundle/
# Cross-compile (macOS only)
pnpm build:tauri -- --target aarch64-apple-darwin # Apple Silicon
pnpm build:tauri -- --target x86_64-apple-darwin # IntelCI builds: Push a v* tag to trigger automatic builds for all desktop platforms:
git tag v0.2.0
git push origin v0.2.0
# โ GitHub Actions builds .dmg (macOS), .msi (Windows), .deb (Linux)Linux prerequisites:
sudo apt install libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelfTauri Mobile uses the same React frontend and Rust core, packaged as a native mobile app.
One-time setup:
# Android: Install Android Studio + NDK + set ANDROID_HOME
# https://tauri.app/start/prerequisites/#android
# iOS: Install Xcode (macOS only)
# https://tauri.app/start/prerequisites/#ios
# Initialize mobile projects (generates src-tauri/gen/)
pnpm tauri android init
pnpm tauri ios initDevelopment:
# Android dev (requires Android emulator or device)
pnpm dev:android
# iOS dev (requires iOS Simulator or device)
pnpm dev:iosBuild:
# Build Android APK
pnpm build:android
# Output: src-tauri/gen/android/app/build/outputs/apk/
# Build iOS (requires Apple Developer account for device builds)
pnpm build:ios
# Output: src-tauri/gen/apple/build/Release-iphoneos/CI builds: The build-mobile.yml workflow runs on tag push. Android builds on Ubuntu, iOS builds on macOS. Both use continue-on-error: true since mobile builds may fail without proper signing keys.
Built with WXT framework โ modern WebExtension development with Vite.
Features:
- Popup (400ร500): Quick access to Format, Minify, Sort, JSONPath
- Side Panel: Full workspace with all 9 tools
- Content Script: Auto-detects JSON on web pages, shows badge
- Powered by WASM: Uses the same Rust core compiled to WASM
Build:
# Build WASM + copy to extension
pnpm wasm:build
pnpm wasm:copy-ext
# Build extension
pnpm build:extension
# Output: extension/.output/chrome-mv3/Load in Chrome:
- Run
pnpm build:extension - Open
chrome://extensions/ - Enable Developer mode (top right)
- Click Load unpacked
- Select the
extension/.output/chrome-mv3/directory - The JSON Toolkit icon appears in your toolbar
Dev mode:
pnpm dev:extension # โ WXT dev mode with hot reloadCI builds: Push a v* tag to build and package the extension as a .zip for Chrome Web Store submission.
Built with Taro 4 โ cross-platform mini program framework.
Features:
- 7 tools: Format, Minify, Sort, Decode, JSONPath, Validate, CSV
- Pure JS implementation (WASM not directly available in MP runtime)
- TabBar navigation: Tools + About
- Chinese UI optimized for mobile
Note: WeChat Mini Programs have limited WASM support. This implementation uses a pure JavaScript fallback that handles all core operations. To integrate WASM, see WeChat WASM docs.
Build:
# Install miniprogram dependencies
pnpm --filter miniprogram install
# Build for WeChat
pnpm build:miniprogram
# Output: miniprogram/dist/Import to WeChat DevTools:
- Run
pnpm build:miniprogram - Open WeChat DevTools (ๅพฎไฟกๅผๅ่ ๅทฅๅ ท)
- Select Import project (ๅฏผๅ ฅ้กน็ฎ)
- Choose the
miniprogram/directory - Set your AppID (or use test AppID)
- The project loads with the built files in
miniprogram/dist/
Dev mode:
pnpm dev:miniprogram # โ Watch mode, rebuilds on file change| Workflow | Trigger | What it does |
|---|---|---|
ci.yml |
Push to main/PR | Rust tests + WASM build + Web build verification |
deploy-web.yml |
Push to main | Build web โ Deploy to GitHub Pages |
build-desktop.yml |
Tag v* push |
Build macOS (.dmg), Windows (.msi), Linux (.deb) |
build-mobile.yml |
Tag v* push |
Build Android (.apk) + iOS (.ipa) |
build-extension.yml |
Tag v* push |
Build Chrome Extension (.zip) |
Release flow:
# 1. Update version in package.json and src-tauri/tauri.conf.json
# 2. Commit and push
git commit -am "release: v0.2.0"
git push
# 3. Create tag
git tag v0.2.0
git push origin v0.2.0
# 4. GitHub Actions builds all platforms automatically
# โ Draft release with all artifacts attached| Layer | Technology |
|---|---|
| Core | Rust, serde_json, jsonpath_lib, jsonschema, csv, base64 |
| Desktop/Mobile | Tauri 2.0 (macOS, Windows, Linux, Android, iOS) |
| Web | Vite, React 18, TypeScript, TailwindCSS |
| Extension | WXT, React, Chrome Manifest V3 |
| Mini Program | Taro 4, React |
| Bridge | wasm-pack, wasm-bindgen (Web + Extension) |
| State | Zustand with localStorage persistence |
| CI/CD | GitHub Actions (5 workflows) |
| Command | Description |
|---|---|
pnpm wasm:build |
Build Rust core to WASM |
pnpm wasm:copy-ext |
Copy WASM files to extension dir |
pnpm dev:web |
Web dev server (port 5173) |
pnpm dev:tauri |
Tauri desktop dev |
pnpm dev:android |
Android dev (needs SDK) |
pnpm dev:ios |
iOS dev (needs Xcode) |
pnpm dev:extension |
Chrome extension dev with HMR |
pnpm dev:miniprogram |
Mini program dev with watch |
pnpm build:web |
Build web for production |
pnpm build:tauri |
Build desktop app |
pnpm build:android |
Build Android APK |
pnpm build:ios |
Build iOS app |
pnpm build:extension |
Build Chrome extension |
pnpm build:miniprogram |
Build WeChat mini program |
pnpm test:rust |
Run 37 Rust unit tests |
MIT