中文 | English
A JSON visualization tool
Tech Stack: Vue 3 + Vite + TS + Antv/G6 + Pinia + CodeMirror
- Added language switching (Chinese/English) with full site adaptation
- Added 15 theme colors with full site compatibility
- Added light/dark theme switching with editor theme following
- Added rendering mode selection (automatic/manual rendering)
- Upgraded code editor for better editing experience and performance (VueJsonEditor ---> VueCodeMirror)
- Full mobile adaptation with canvas node support for mobile click and zoom events, added zoom ratio display
- Support URL storage of editor code information for easy sharing
- Layout upgraded to active columns for more flexible and user-friendly layout
- Added PWA functionality for offline use after installation
- JSON syntax errors prevent rendering and indicate error location
- Using atomic framework UnoCSS to reduce style file size
- Using
@antfu/esling-config
andlint-staged
to improve syntax checking speed
Build Resources | Before Refactor | After Refactor | Improvement |
---|---|---|---|
dist/assets/iconfont-xxxxxx.ttf | 4.68 kB | None | 4.68 kB |
dist/assets/index-xxxxxx.css | 107.92 kB | 81.94 kB | 25.98 kB |
dist/assets/index-xxxxxx.js | 3,325.04 kB | 2,324.82 kB | 1,000.22 kB (Total: -1,030.88 kB) |
- JSON editing generates corresponding views
- Layout configuration adjustment updates view
- Node collapse and expansion
- Import and export JSON
- Specify additional parsing fields
- Light/dark theme switching
- 15 themes to choose from
- View node focus search
- Export view as image
- Click node to view node details
- Share JSON code via link
- Rendering mode control
- Canvas operations (zoom in/out/center/fullscreen/exit fullscreen)
Bilibili Demo: Bilibili Demo Video
JSON Crack: A smooth and elegant React + TypeScript JSON visualization project.