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 🙏

© 2024 – Pkg Stats / Ryan Hefner

docbone

v0.0.2

Published

Toolkits for web document editing system's frontend

Downloads

5

Readme

Docbone

Toolkits for web document editing system's frontend.

Development

make dev

打开浏览器即可访问 Demo 页面。

目录说明

src

docbone 的核心模块,包含以下几个主要内容:

  • Model(文档模型):渲染器和编辑器都会使用文档模型作为数据来源。
  • Renderer(渲染器):理论上来讲,渲染器会分类型,比如 Web、Pdf、图片等。渲染器可以理解成 Web 类型的渲染器。渲染器根据文档模型的定义进行渲染。
  • Editor(编辑器):编辑器编辑的是文档模型,牵涉到的概念比较多:redo/undo、节点结构编辑、节点选择、节点编辑面板描述、节点的拖动、拖拽改变大小、拖拽改变旋转角度等等。

examples

examples 目录下使用 docbone 构建的可视化编辑器 Demo 页面,应该会按照复杂度的维度来做,目前想到的三个 Demo 如下:

  • 简单:一个简单的图片编辑器,可以选择图片后为图片添加文本、图形,并可以动态修改文本、图形的属性。
  • 中等:一个 H5 页面或者 Keynote 编辑器,可以编辑多页,每一页上有文本、图形、图片等。
  • 复杂:Element Page Builder,之所以比 H5 页面的复杂,是因为牵涉到节点结构编辑(添加、删除、多级移动等)。而且一般情况下,还需要有自定义的交互,比如点击了某个按钮,就提交一个表单等。

License

MIT