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

dify-dsl-pipe

v0.3.0

Published

Dify DSL 一站式管道工具 — 导出、导入、跨实例迁移

Readme

Dify 应用 DSL 的一站式管道工具,涵盖导出、导入、备份、迁移、定时服务与 MCP Server 集成。

无需安装,通过 npx 命令即可直接使用。


功能特性


快速上手

方式一:命令行直接使用

无需安装,通过 npx 即可直接运行:

# 将所有应用导出到 ./dify-backup
npx dify-dsl-pipe export --url https://your-dify.com/console/api --token YOUR_TOKEN

# 也可以使用邮箱和密码认证
npx dify-dsl-pipe export --url https://your-dify.com/console/api \
  --email [email protected] --password your-password

# 导入到目标实例(建议先以预览模式确认)
npx dify-dsl-pipe import --url https://target-dify.com/console/api --token TOKEN \
  --source ./dify-backup --dry-run

# 交互式初始化配置文件
npx dify-dsl-pipe init

--url 需指向 Console API,地址以 /console/api 结尾。

方式二:通过 Agent Skill 使用

在支持 Skill 协议的 AI 工具(Claude Code、Cursor、OpenCode 等)中安装 Skill,通过显式调用驱动操作:

# 安装 Skill
npx skills add linhai0872/dify-dsl-pipe

安装后,在 AI 对话中用 /dify-dsl-pipe 显式唤起,然后描述你的需求:

/dify-dsl-pipe 帮我把生产环境的所有 workflow 应用备份到本地,地址是 https://dify.example.com/console/api

Skill 会识别意图、补充缺失信息,并自动组装命令执行,全程无需手动输入参数。


文档

| 文档 | 内容 | |------|------| | CLI 参数参考 | export / import / serve 所有参数详表 | | 存储后端配置 | local / git / MinIO / AWS S3 / Cloudflare R2 / 阿里云 OSS / 腾讯云 COS / 火山云 TOS | | 配置文件参考 | dify-pipe.yaml 完整字段说明 | | 定时备份服务 | serve 模式、HTTP API 端点、cron 任务管理 | | MCP Server 集成 | 配置 AI 工具直连 Dify |


多实例管理

运行 npx dify-dsl-pipe init 交互式创建,或手动建立 dify-pipe.yaml

instances:
  - name: prod
    url: "https://dify.prod.com/console/api"
    token: "prod-token"
  - name: staging
    url: "https://dify-staging.com/console/api"
    token: "staging-token"

profiles:
  prod:
    instance: prod
    storage:
      type: local
      path: "./backup/prod"
  staging:
    instance: staging
    storage:
      type: local
      path: "./backup/staging"
npx dify-dsl-pipe export --profile prod
npx dify-dsl-pipe import --profile staging --source ./backup/prod

从旧版迁移

原 Python 版(dify-dsl-exporter)用户:配置文件格式已完全变更,请运行 npx dify-dsl-pipe init 重新生成 dify-pipe.yaml。认证方式向下兼容,仍支持 email+password;存储后端统一为 --storage s3 + --s3-endpoint,各云厂商 endpoint 配置详见存储后端文档


License

MIT