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 🙏

© 2025 – Pkg Stats / Ryan Hefner

collaborative-editor-sd

v1.0.0

Published

rich text editor by canvas/svg

Downloads

2

Readme

基于 Canvas-editor 实现类 Word 协同编辑

项目介绍

本项目基于 Canvas-editor 实现类 Word 协同编辑,支持多人在线协同编辑,计划修改 Canvas-editor 源码,对原应用的所有功能赋予协同能力。例如撤销、重做,历史回退、前进,标题设置、字体字号、颜色高亮等。备注 :一定是存在BUG的,提出来一起解决哈,个人精力也有限,如果大家感兴趣,欢迎 Fork ,一起完善。

相关链接

canvas-editor 文档

Canvas-Editor Demo示例

Cavnas-Editor GitHub

Canvas-Editor 实现类似 Word 协同编辑

B站演示视频

项目下载及打包

git clone https://gitee.com/wfeng0/canvas-editor
yarn install or npm install
yarn dev or npm run dev
yarn build or npm run build ## 打包成 dist 文件夹
yarn lib  ## 打包命令 ==> 输出的是 lib 第三方库文件,推荐使用该方式

基本使用

import { Editor } from '打包后的lib地址'

type typeEditor={
    container: HTMLDivElement
    data: IEditorData | IElement[]
    options: IEditorOption
    socketinfo?: IYdocInfo
}

// 原来是使用的 形参,现在使用对象形式,方便后续扩展
new Editor({
    container: document.getElementById('editor') as HTMLDivElement,
    data: data,
    options: {},
    socketinfo: {}
})

支持协同操作

  1. 用户登录、登出
  2. 协同编辑
  3. 字体颜色、高亮
  4. 设置字号、增加、减少字号
  5. 加粗、斜体、下划线、删除线
  6. 标题

待实现的功能

  1. 撤销、重做
  2. 设置字体
  3. 插入图片
  4. 插入表格
  5. 插入链接
  6. 插入代码块
  7. 插入列表
  8. 插入引用
  9. 插入公式
  10. 文字对齐方式
  11. 行间距
  12. 插入分割线
  13. 水印
  14. 分页符
  15. 控件
  16. LaTeX
  17. 日期时间
  18. 内容快
  19. 目录
  20. 批注、签名