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

@fastgpt-plugin/cli

v0.1.0-beta.7

Published

FastGPT 插件开发的命令行工具,用于创建、构建和测试 FastGPT 工具 / 工具集。

Downloads

272

Readme

@fastgpt-plugin/cli

FastGPT 插件开发的命令行工具,用于创建、构建和测试 FastGPT 工具 / 工具集。

Features

  • 统一构建流程
    • 基于 tsdown,一键将 TypeScript 源码构建为 Node 22 兼容的 dist 产物
    • 自动生成 d.ts 类型声明,方便在其他包中引用
  • 工具/工具集专用构建
    • 支持以工具目录为入口(包含 config.tsindex.ts 等)
    • 在临时目录中对 config.ts 做 AST 转换,自动注入必要的 toolId、版本等元信息
    • 递归复制源码目录,自动跳过 node_modulesdist.build-* 等目录
  • 安全的构建行为
    • 不在构建过程中调用 process.exit,错误以异常抛出,方便在上层脚本中统一处理
    • 自动创建临时构建目录并在构建结束后进行清理
  • 测试友好
    • 内置 Vitest 配置,支持对构建逻辑进行单元测试
    • 在测试环境下跳过对部分依赖的打包,构建更快更稳定

待实现 / TODO

  • 发布相关能力(publish)
    • 提供 cli publish 命令,将构建好的工具包一键发布到 npm 或内部制品库
    • 支持从 config.ts / package.json 读取版本号并进行版本校验(防止重复发布)
    • 集成变更日志(changelog)生成和打 tag 流程
    • 可选的 dry-run 模式(仅输出将要执行的操作,不真正发布)
    • 支持自定义 npm registry / token 配置(环境变量或配置文件)
  • 项目脚手架
    • 新建单工具模板(含 config.tssrc/index.ts、测试和示例)
    • 新建工具集模板(含 children 目录、共享配置示例)
  • 更多开发体验优化
    • watch 模式:监听源码变化自动重新构建
    • 输出更友好的构建日志和错误提示