npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

v3-jsoneditor

v0.1.0

Published

Vue 3 JSON editor component — a modern, themeable wrapper around jsoneditor with v-model, dark mode, fullscreen and TypeScript types.

Readme

v3-jsoneditor

A modern, themeable JSON editor component for Vue 3: a wrapper around jsoneditor with v-model, five editing modes, light/dark themes, accessible full screen, JSON Schema validation, SSR safety and TypeScript types.

npm license

Docs and live playground: https://v3-jsoneditor.netlify.app/ For AI tools: /llms.txt · /llms-full.txt

Installation

npm install v3-jsoneditor

Usage

<script setup>
import { ref } from 'vue'
import Vue3Jsoneditor from 'v3-jsoneditor'

const json = ref({ hello: 'vue' })
</script>

<template>
  <Vue3Jsoneditor v-model="json" height="400px" theme="auto" />
</template>

Styles are injected automatically. For CDN or strict-CSP setups, v3-jsoneditor/style.css is also published.

Register globally (with defaults)

import { createApp } from 'vue'
import Vue3Jsoneditor from 'v3-jsoneditor'
import App from './App.vue'

createApp(App)
  .use(Vue3Jsoneditor, { theme: 'auto', height: 500 }) // optional global defaults
  .mount('#app')

CDN

<link rel="stylesheet" href="https://unpkg.com/v3-jsoneditor/dist/style.css" />
<script src="https://unpkg.com/vue@3"></script>
<script src="https://unpkg.com/jsoneditor@10/dist/jsoneditor.min.js"></script>
<script src="https://unpkg.com/v3-jsoneditor"></script>
<script>
  Vue.createApp({ data: () => ({ json: { hello: 'vue' } }) })
    .use(Vue3Jsoneditor.default)
    .mount('#app')
</script>

Props

| Name | Type | Default | Description | | --- | --- | --- | --- | | v-model / modelValue | any JSON | – | Bound JSON value. Clearing the editor emits null. | | v-model:text / text | string | – | Raw editor text (may be invalid JSON while typing). | | options | object | {} | Any jsoneditor option. Your callbacks run in addition to the component's. | | v-model:currentMode / currentMode | 'tree' \| 'code' \| 'form' \| 'text' \| 'view' | 'code' | Active mode. | | modeList | string[] | all five | Modes offered in the switcher. | | theme | 'light' \| 'dark' \| 'auto' \| 'classic' | 'light' | auto follows <html class="dark"> or the OS. classic is the original look. | | height | string \| number | '400px' | Numbers are pixels. | | plus | boolean | true | Show the full screen button. | | v-model:fullscreen / fullscreen | boolean | false | Full screen state. Esc exits. | | readOnly | boolean | false | Read-only in every mode. | | debounce | number | 0 | Debounce (ms) for model updates. | | language | string | 'en' | en, zh-CN, pt-BR, tr, ja, fr-FR, de, ru, es. | | indentation | number | 2 | Spaces per indent level. | | mainMenuBar / navigationBar / statusBar | boolean | true | Toggle editor chrome. |

Events

update:modelValue, update:text, update:currentMode, update:fullscreen, change, error (invalid JSON), validation-error, mode-change, fullscreen-change, focus, blur, textSelectionChange, selectionChange, colorPicker.

Methods (template ref)

getEditor(), get(), getText(), validate(), focus(), setEditorContent(json), expandAll(), collapseAll(), toggleFullScreen().

Slots

  • #toolbar="{ editor, mode }": extra buttons inside the menu bar.
  • default: placeholder shown until the editor has mounted.

Theming

.my-editor.v3-jsoneditor {
  --vje-accent: #10b981;
  --vje-radius: 14px;
}

See the theming guide for every variable.

Development

npm install
npm run build          # library -> dist/
npm run docs:dev       # docs site (run `npm install` in docs/ first)

Support

If this helped you, consider sponsoring the project on GitHub. Thank you!

License

MIT © Pratik Patel. Toolbar icons from the Solar icon set (CC BY 4.0).