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

@speed-tiptap-editor/extension-mind

v2.0.0-alpha.0

Published

思维导图扩展包(**占位 / 接入示例**,尚未绑定具体第三方库)。

Readme

@speed-tiptap-editor/extension-mind

思维导图扩展包(占位 / 接入示例,尚未绑定具体第三方库)。

现状

  • createMindPlugin() 默认返回空壳 plugin(无扩展、无菜单)
  • extension-kitgetKnowledgeKit默认排除 legacy mind 节点,避免半成品进编辑器
  • 启用方式:<KnowledgeEditor :mind="true" /> 目前仅合并空壳 plugin,不会出现插入入口

接入步骤(选型后)

1. 调研库 → 2. 实现 MindEditorAdapter → 3. 传入 adapter → 4. NodeView 挂载

1. 候选库(自行评估)

| 库 | 特点 | |---|---| | simple-mind-map | 功能全、Vue/React 示例多,体积较大 | | jsMind | 轻量、纯 JS,样式偏传统 | | markmap | Markdown 大纲转脑图,场景不同 |

2. 实现适配器

src/example.adapter.ts

import type { MindEditorAdapter } from '@speed-tiptap-editor/extension-mind'

export const myMindAdapter: MindEditorAdapter = {
  id: 'simple-mind-map',
  createExtensions(ctx) {
    return [MindNode.configure({ /* 库实例、上传配置等 */ })]
  },
  insertMind(editor) {
    editor.chain().focus().setMind({ data: defaultData }).run()
  },
}

3. 在 KnowledgeEditor 启用

// createKnowledgeEditorPlugins.ts(未来)
createMindPlugin({ adapter: myMindAdapter })
<KnowledgeEditor :mind="true" />

4. NodeView 职责

  • Wrapper.vueonMountednew MindMap(container, options)
  • update / destroy 时同步 attrs.data 与销毁实例
  • 协同场景:attrs.data 走 Yjs JSON,需定义可序列化 schema

与 extension-flow 的关系

流程图包 @speed-tiptap-editor/extension-flow 采用相同模式,可复用 MindEditorAdapter 思路定义 FlowEditorAdapter