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

sp_json_editor_secondary

v1.5.1

Published

JSON Schema based editor

Downloads

9

Readme

json editor 自定义

拓展功能

必填

1、ui界面增加字符串、上传控件必填*提示

富文本编辑器

  1. json editor富文本编辑器引用SCEDITOR插件,在此基础上默认增加了上传文件回调;
  2. 配置上传回调后,拓展了插入pdf、视频、音频、本地图片这几个自定义指令,在初始化json editor时候,配置plugins.sceditor.toolbar可生效 eg:
JSONEditor.plugins.sceditor.toolbar = 'localimage,pdf|video,audio'

tips:后续需要从素材库中选择

上传

  1. 自定义上传样式
  2. 拓展可以关联引用配置了的节点上传,该节点的schema如果配置了quoteSelector引用字段,则可以关联数据,然后引用上传 eg: 一个字段的schema为:
"cover": {
  "type": "string",
  "format": "url",
  "title": "封面",
  "options": {
    "upload": true,
    "quoteSelector": {
      "_nodePath": "/content/material/image",
      "schema": "material",
      "coverColumn": "url",
      "valueColumn": "url",
      "labelColumn": "name"
    }
  },
  "propertyOrder": 4
}

_nodePath: 节点路径; schema:元数据名称; coverColumn:封面字段; valueColumn:引用值的字段; labelColumn:显示文字字段;