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

@kungal/editor-vue

v0.31.0

Published

KunEditor Vue 3 layer — the headless <KunEditor> component (dual WYSIWYG / markdown-source), toolbar and plugin views. Ships zero CSS and no UI-kit dependency; consumes @kungal/editor-core, and pairs with @kungal/editor-nuxt for optional KunUI chrome.

Readme

@kungal/editor-vue

The Vue 3 render layer of KunEditor: the <KunEditor> component (dual WYSIWYG preview + markdown-source), its toolbar and the Vue plugin views (mention dropdown, sticker/emoji picker). Consumes @kungal/editor-core for the plugin brain.

Headless — ships zero CSS. The component only renders stable class hooks (.kun-editor__*, .kun-mention-dropdown*) + data-* state; you own the look. Copy the reference stylesheet apps/docs/app/assets/css/kun-editor.css (themed with KunUI tokens), or write your own. It works in any Vue 3 app; @kungal/editor-nuxt adds Nuxt auto-import sugar.

Usage

<script setup lang="ts">
import { KunEditor, type KunEditorAdapters } from '@kungal/editor-vue'
// Headless: bring your own styles. See apps/docs for the KunUI-themed reference.
import '~/assets/kun-editor.css'

const markdown = ref('')

const adapters: KunEditorAdapters = {
  uploadImage: (file) => api.uploadTopicImage(file),
  searchMentionUsers: (q) => oauth.searchUsers(q),
  notify: (msg, level) => toast(msg, level)
}
</script>

<template>
  <KunEditor v-model="markdown" :adapters="adapters" locale="zh-cn" />
</template>

For an image-free editor (e.g. a short intro field), just omit uploadImage — the upload button, paste/drop and sticker paths disappear with no other config.

Peer dependencies

Install the Milkdown stack once in the host (single ProseMirror instance):

pnpm add @kungal/editor-vue @kungal/editor-core vue \
  @milkdown/kit @milkdown/prose @milkdown/vue

Enable optional plugins by also installing their peers: katex (LaTeX, also import katex/dist/katex.min.css), the @codemirror/* packages + codemirror (code blocks and the markdown-source view).

Status

P3 complete. <KunEditor> is a real Milkdown dual-view editor: a WYSIWYG view built from @kungal/editor-core/preset (createKunEditorPlugins — spoiler / katex / code-block / mention / upload / …) and a CodeMirror markdown-source view, over one v-model. The prop/emit surface (v-model, adapters, features, locale, readonly) is stable.

A formatting toolbar is wired: bold / italic / strikethrough / inline code, H1–H3, bullet & ordered lists, blockquote, code block, divider, spoiler, LaTeX — plus an image-upload button when uploadImage is supplied. It's self-contained (inline SVG, no @kungal/ui-vue dependency), themed through CSS variables so a KunUI host still gets matching colours.

The @mention autocomplete dropdown is wired: type @, and — when the host supplies searchMentionUsers — a debounced, keyboard-navigable dropdown offers users and inserts a mention chip ([@name](kungal-user:id)). Without the adapter the mention schema still round-trips; there's just no autocomplete.

The sticker / emoji picker is a toolbar popover: a built-in emoji tab (unicode, inserted as text — no adapter) plus a sticker tab that appears when the host supplies stickerSource, inserting each sticker as an image node. Turn the whole picker off with features.sticker: false.

The markdown-source view (the "Markdown" tab) is a CodeMirror editor with markdown highlighting, sharing the code block's kunCM theme. Edits sync back through v-model to the WYSIWYG view.

Next: P4 — adopt in the forum, replacing its in-repo components/kun/milkdown with real adapters. See ../../docs/architecture.md § migration.

Build

pnpm --filter @kungal/editor-vue build      # vite lib build + vue-tsc d.ts → dist
pnpm --filter @kungal/editor-vue typecheck