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

@systembug/pangu

v0.0.12

Published

盘古 - 交互式开发服务器启动工具,从配置文件读取 demo 列表

Readme

@systembug/pangu

盘古 - 交互式开发服务器启动工具

盘古是中国神话中的开天辟地之神,此工具用于"启动"开发服务器,寓意开启开发之旅。

登鹳雀楼 唐·王之涣

白日依山尽,黄河入海流。 欲穷千里目,更上一层楼。

功能特性

  • 📋 从配置文件读取 demo 列表(支持 JSON 和 YAML)
  • 🎯 交互式菜单选择 demo
  • 🚀 快速启动开发服务器
  • 🔧 支持自定义包管理器(pnpm/npm/yarn)

安装

pnpm add -D @systembug/pangu
# 或
npm install -D @systembug/pangu
# 或
yarn add -D @systembug/pangu

使用方法

1. 创建配置文件

在项目根目录创建 dev.config.jsondev.config.yaml

dev.config.json:

{
    "projectName": "quizerjs",
    "packageManager": "pnpm",
    "demos": [
        {
            "name": "Vue",
            "value": "vue",
            "description": "Vue 3 演示项目",
            "package": "@quizerjs/demo-vue"
        },
        {
            "name": "React",
            "value": "react",
            "description": "React 18 演示项目",
            "package": "@quizerjs/demo-react"
        }
    ]
}

dev.config.yaml:

projectName: quizerjs
packageManager: pnpm
demos:
    - name: Vue
      value: vue
      description: Vue 3 演示项目
      package: "@quizerjs/demo-vue"
    - name: React
      value: react
      description: React 18 演示项目
      package: "@quizerjs/demo-react"

2. 使用 CLI

# 显示交互式菜单
npx pangu

# 直接启动指定的 demo
npx pangu vue

# 显示帮助
npx pangu --help

3. 在 package.json 中添加脚本

{
    "scripts": {
        "dev": "pangu"
    }
}

然后运行:

pnpm dev

配置说明

DevConfig

interface DevConfig {
    /**
     * 项目名称(用于欢迎信息)
     * 默认: "项目"
     */
    projectName?: string;

    /**
     * 包管理器命令
     * 默认: "pnpm"
     * 可选: "pnpm" | "npm" | "yarn"
     */
    packageManager?: string;

    /**
     * Demo 选项列表(必需)
     */
    demos: DemoOption[];
}

DemoOption

interface DemoOption {
    /**
     * Demo 显示名称
     */
    name: string;

    /**
     * Demo 值(用于命令行参数)
     */
    value: string;

    /**
     * Demo 描述
     */
    description: string;

    /**
     * 包名(用于 pnpm --filter)
     */
    package: string;
}

工作原理

  1. 查找配置文件:按优先级查找 dev.config.yaml > dev.config.yml > dev.config.json
  2. 解析配置:支持 JSON 和 YAML 格式
  3. 显示菜单:如果没有提供参数,显示交互式菜单
  4. 启动服务器:使用配置的包管理器启动对应的 demo

License

MIT