A LIGHTWEIGHT VISUAL JSON EDITOR BUILT WITH PURE JAVASCRIPT
A pure JavaScript library with zero-dependency visual tree editing, per-node dynamic type switching, and full lifecycle hooks
npm install @pardnchiu/nanojson· Documentation
- Zero-dependency visual editing — A tree-based JSON editor built with pure JavaScript and native DOM APIs, no frontend framework required.
- Per-node dynamic type switching — Every node can switch live between string / number / boolean / object / array / null and re-render instantly.
- Full lifecycle hooks — Six hooks (beforeRender / rendered / beforeUpdate / updated / beforeDestroy / destroyed) with a 300ms debounce on updates.
- Flexible data import/export — Accepts a JavaScript object, a File object, or a URL string as the data source, plus one-click download of the current JSON.
graph TB
A[JSON Input] --> B[JSONEditor]
B --> C[JSONEditorNode Tree]
C --> D[DOM Renderers]
B --> E[Lifecycle Hooks]
B --> F[Import / Export]
This project is licensed under the MIT LICENSE.
hi@pardn.io
https://www.linkedin.com/in/pardnchiu
©️ 2025 邱敬幃 Pardn Chiu

