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

@ks-dbdev/template-data-connector-plugin

v1.0.3

Published

数据连接器插件开发模板

Readme

@ks-dev/template-data-connector-plugin

多维表格数据连接器插件开发模板

npm version license

🚀 快速开始

使用 CLI 创建项目(推荐)

# 使用 dbdev CLI 工具
npx @ks-dbdev/cli create template

# 或全局安装后使用
npm install -g @ks-dbdev/cli
dbdev create template

选择 "数据连接器插件" 模板

📁 项目结构

template-data-connector-plugin/
├── package.json
├── plugin.json              # 插件配置
├── README.md
├── src/
│   ├── main.py             # Python 主逻辑
│   └── meta.json           # 插件元数据和 UI 配置
├── scripts/
│   └── build.js            # 构建脚本
└── dist/                   # 打包输出目录
    └── plugin.zip          # 生成的插件包

🛠️ 开发流程

1. 安装依赖

npm install

2. 编写插件逻辑

编辑 src/main.py

实现你的数据同步逻辑,支持多种数据源对接:

# 示例:数据库连接和数据同步
def sync_data(config):
    # 1. 连接数据源
    # 2. 获取数据
    # 3. 转换数据格式
    # 4. 返回结果
    pass

编辑 src/meta.json

配置插件的基本信息和 UI 界面:

  • plugin_name: 插件名称
  • plugin_desc: 插件描述
  • plugin_icon: 插件图标
  • plugin_code: 前后端代码配置
    • backend: Python 后端逻辑配置
    • frontend: UI 模板配置(账号管理、数据源配置等)

3. 打包插件

执行以下命令构建插件包:

npm run build

构建完成后,会在 dist/ 目录下生成 plugin.zip 文件,即可上传到 WPS 开放平台。

📝 配置说明

meta.json 配置项

数据连接器插件的 meta.json 主要包含以下部分:

  1. 插件基础信息:名称、描述、图标
  2. 账号管理页面:配置数据源连接参数
  3. 数据源配置页面:选择要同步的数据和字段映射
  4. 同步设置:配置同步频率和规则

示例配置参考 src/meta.json 文件。

📚 相关文档