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

@quirekit/md-editor

v0.2.1

Published

QuireKit Markdown document editor with shared Prose presentation.

Readme

@quirekit/md-editor

English | 简体中文

带工具栏的 Markdown 编辑器。可以在阅读式编辑和源码编辑之间切换,编辑结果仍是 Markdown 文本,适合文章、笔记和 AI 生成内容。

安装

npm install @quirekit/md-editor @quirekit/ui @quirekit/unocss-preset @ark-ui/vue vue

使用方式

下面是 Vue 的最小界面。markdown 用作初始内容;后续替换文档和保存内容通过组件暴露的 editor 操作。

<script setup lang="ts">
import { createTheme, defaultBaseTokens, quireIconRegistry } from '@quirekit/ui'
import { QuireIconProvider, QuireThemeProvider } from '@quirekit/ui/vue'
import { MdEditor } from '@quirekit/md-editor/vue'
import '@quirekit/unocss-preset/quirekit.css'
import '@quirekit/md-editor/styles.css'

const theme = createTheme({ profile: 'precision', scheme: 'light', sources: { primary: defaultBaseTokens.color.source.cobalt } })
const markdown = '# Hello\n\nStart writing here.'
</script>

<template>
  <QuireIconProvider :registry="quireIconRegistry">
    <QuireThemeProvider :theme="theme">
      <MdEditor :markdown="markdown" label="Document" />
    </QuireThemeProvider>
  </QuireIconProvider>
</template>

性能

| 文档 | 视图 | 更新 P50 | P90 | P95 | P99 | 下一帧 P50 | 下一帧 P95 | | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | | 100 KB | 文档 | 4.3 | 4.6 | 5.0 | 5.6 | 11.1 | 12.6 | | 100 KB | 预览 | 4.5 | 4.9 | 5.0 | 5.7 | 11.5 | 12.8 | | 100 KB | 源码 | 3.4 | 3.8 | 3.9 | 4.5 | 7.5 | 9.6 | | 100 万字符 | 文档 | 5.5 | 6.0 | 6.8 | 7.9 | 12.8 | 15.0 | | 100 万字符 | 预览 | 5.8 | 6.3 | 6.8 | 8.3 | 13.2 | 15.6 | | 100 万字符 | 源码 | 4.4 | 5.0 | 6.1 | 9.4 | 8.4 | 12.0 |

单位为毫秒,每行在文档中部连续输入 200 次,包含冷启动的输入。测试的是带工具栏和图表的完整 MdEditor,文档以长段落为主;测试环境为 Apple M3 Max,Chromium 149。更新是从按键到编辑器接受新文档,下一帧是从按键到带有新文字的一帧生成完毕。按键通过浏览器自动化协议发送,不包含键盘、操作系统、输入法和显示器的耗时;结构越密集开销越高,不同机器结果也会有差异。

在 QuireKit 仓库中可以自己运行:

pnpm --filter @quirekit/msfe-docs performance:latency

使用时注意

  • 两个 Provider 和两份样式都必须接入,否则图标显示为空白,深色主题也不生效。已经使用 UnoCSS 的应用可以用 presetQuireKit() 代替 quirekit.css。
  • markdown 不是双向绑定属性。保存时读取 editor.getMarkdown(),不要以为改 prop 就会重置当前文档。
  • 图片上传通过 images 接入应用存储;文档搜索也需要应用提供相应服务。评论与 AI 分别由商业包 @quirekit/md-editor-comments、@quirekit/md-editor-ai 提供。
  • 打包成单个脚本时,要内嵌 @quirekit/text-diagram 的 diagram-frame.iife.js(PlantUML 和 Graphviz 需要),并让白板的动态导入能拿到 react 和 react-dom。
  • 只需要显示 Markdown 时使用 MdProse 或 Incremark;只需要编辑引擎时使用 MSFE。

相关说明

许可

MIT;第三方声明见 THIRD_PARTY_NOTICES.md。