mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2026-06-03 03:24:42 +02:00
JSON Crack's Official Visual Studio Code Extension that visualizes JSON data as an interactive diagram. The extension parses the open JSON file and displays its structure as a connected graph where nodes represent objects, arrays, and values.
How to use?
- Install the JSON Crack extension from the VS Code marketplace.
- Open a JSON file.
- Click on the JSON Crack icon in the menubar at top right.
Privacy
The extension works fully offline. No data is sent to any server. All JSON parsing and visualization happens locally in your editor.
Development
This extension lives in apps/vscode inside the jsoncrack.com monorepo.
Prerequisites: Node.js >=20, pnpm >=10
Stack: Vite (webview) + esbuild (extension host) + React 19
# Install dependencies from repo root
pnpm install
# Build the extension
cd apps/vscode
pnpm run build
Debugging
- Open the monorepo root in VS Code.
- Press F5 to launch the "Run VSCode Extension" config — it builds and opens the Extension Development Host.
- After making changes, press
Cmd+R(macOS) /Ctrl+R(Windows/Linux) in the host window to reload.
Scripts
| Script | Description |
|---|---|
build |
Production build (minified, no sourcemaps) |
build:dev |
Dev build (sourcemaps, no minification) |
watch |
Watch extension host (ext-src/) for changes |
watch:webview |
Watch webview (src/) for changes |
dev |
Start Vite dev server (standalone webview in browser) |
lint |
Run ESLint + Prettier check |
clean |
Remove build/ directory |