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

makeccx

v1.1.3

Published

<!-- https://github.com/bddjr/makeccx -->

Readme

makeccx

🚀 更好的 ClipCC 扩展开发框架,基于 esbuild + TypeScript

开始

  1. 确保电脑已安装以下软件

    Node.js
    VSCode

  2. 新建项目。
    在文件夹里打开终端,运行下方命令

npm create makeccx@latest
  1. 安装依赖。
    使用 VSCode 打开文件夹,然后新建终端,运行下方命令
npm i 
  1. 构建 ccx 文件。
    运行下方命令,然后在 dist 文件夹查看构建结果。
npm run build
  1. 扩展的源代码在 src 文件夹。

配置

构建器配置参数在 makeccx.config.tsmakeccx.config.js 文件。

有关配置参数,请参考 makeccx/export.ts


有何不同

  • 代码和语言文件无需完整 id 。

  • 自带多个 category 的友好支持,开箱即用。

  • 使用 defineBlock 创建积木,TypeScript 会自动识别 functionargs 里面有哪些参数,并在 VSCode 里给予相关提示。

defineBlock({
    id: 'abc',
    type: type.BlockType.REPORTER,
    param: {
        a: {
            type: type.ParameterType.STRING,
            defaultValue: '1',
        },
    },
    function(args, util): any {
        return args.a
    }
}),
  • 语言文件支持多层写法,结构更清晰。
{
    "name": "ClipCC Extension",
    "description": "description",
    "hello": {
        "": "Hello",
        "hello": "Say hello",
        "abc": {
            "": "abc[a]",
            "a": {
                "item1": "a",
                "item2": "b"
            }
        }
    }
}
  • 语法略有更改,参考类型文件 src/global.d.ts

  • 使用 esbuild 构建代码,使用 JSZip 创建 ccx 文件,构建过程不经过 build 文件夹。

  • 结果不包含整个 assets 文件夹,只根据 src/info.jsonicon 属性和 inset_icon 属性,添加对应的文件。

  • 结果自动包含 LICENSE 文件(如果有)。

  • 自带 .github/workflows/main.yml 文件,构建结果可以直接在 Actions 里下载。

如果想了解更多不同的地方,请看代码。


从旧版迁移

1.0.*

  1. 安装依赖
pnpm i makeccx --save-dev
  1. 修改 package.jsonscripts 字段
  "scripts": {
    "build": "tsc && makeccx build"
  },
  1. 删除 makeccx.config.ts 文件,或重写为以下格式
import { defineConfig } from 'makeccx'

export default defineConfig({

})
  1. (可选)删除 makeccx 文件夹。

下载源码,然后构建

源代码在 makeccx 文件夹,而不是 src 文件夹。

git clone https://github.com/makeccx/makeccx
cd makeccx
npm i
npm run build

git clone https://github.com/makeccx/create-makeccx
cd create-makeccx
npm i
npm run build

结尾

本项目的 src 文件夹内容略有更改,ClipCC 官方文档仅供参考,请以实际情况为准。

本项目并非 ClipCC 官方项目,作者不属于 Clip Team 。