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

gp-component-library

v0.0.1

Published

gp业务组件库

Readme

gp-component-library

NPM version NPM downloads

gp 业务组件库

Usage

TODO

Options

TODO

Development

# install dependencies
$ pnpm install

# develop library by docs demo
$ pnpm start

# build library source code
$ pnpm run build

# build library source code in watch mode
$ pnpm run build:watch

# build docs
$ pnpm run docs:build

# Locally preview the production build.
$ pnpm run docs:preview

# check your project for potential problems
$ pnpm run doctor

LICENSE

MIT

推荐工程目录

当前仓库已有基础目录,后续建议按以下结构演进:

gp-component-library
├── docs/                         # Dumi 文档、接入说明、设计说明
│   ├── index.md                  # 文档首页
│   ├── guide.md                  # 使用指南
│   ├── api.md                    # API 约定,后续补充
│   └── scenarios.md              # 业务场景说明,后续补充
├── config/                       # Dumi 配置、开发代理和站点配置
│   ├── config.ts                 # 主配置入口
│   └── utils.ts                  # 配置工具方法
├── src/
│   ├── index.ts                  # 组件库统一出口
│   ├── constants/                # 运行时常量和接口前缀
│   ├── components/               # 对外业务组件
│   │   ├── ManagementPlan/       # 管理方案组件
│   │   │   ├── index.tsx         # 组件入口
│   │   │   ├── types.ts          # 组件 Props 和事件类型
│   │   │   ├── constants.ts      # 组件内部常量
│   │   │   ├── services.ts       # 组件级服务编排
│   │   │   ├── hooks/            # 组件私有 hooks,后续补充
│   │   │   ├── components/       # 组件内部子组件,后续补充
│   │   │   └── style.ts          # 组件样式,后续补充
│   │   └── TaskCalendar/         # 任务日历组件
│   │       ├── index.tsx
│   │       ├── types.ts
│   │       ├── constants.ts
│   │       ├── services.ts
│   │       ├── hooks/
│   │       ├── components/
│   │       │   ├── TaskSelector/      # 任务组件选择
│   │       │   ├── PathSetting/       # 路径设置
│   │       │   ├── CalendarGrid/      # 日历展示
│   │       │   ├── BatchSetting/      # 批量设置
│   │       │   ├── AutomationRule/    # 自动化规则
│   │       │   └── ConfirmDrawer/     # 暂存 / 确认发送
│   │       └── style.ts
│   ├── core/                     # 跨组件共享的核心能力,后续补充
│   │   ├── request/              # 统一请求层
│   │   ├── permission/           # 权限控制
│   │   ├── theme/                # 主题能力
│   │   ├── plugin/               # 插件扩展机制
│   │   └── context/              # 全局配置 Provider
│   ├── domain/                   # 业务领域模型
│   │   ├── plan/                 # 管理方案领域
│   │   │   ├── types.ts
│   │   │   ├── constants.ts
│   │   │   └── mapper.ts
│   │   ├── task/                 # 任务领域
│   │   │   ├── types.ts
│   │   │   ├── rules.ts
│   │   │   └── mapper.ts
│   │   └── patient/              # 患者领域
│   │       └── types.ts
│   ├── adapters/                 # 项目接入适配层,后续补充
│   │   ├── bmo-business-pc/
│   │   ├── diabetes/
│   │   ├── copd/
│   │   └── ecology-b/
│   ├── shared/                   # 通用工具,后续补充
│   │   ├── hooks/
│   │   ├── utils/
│   │   └── constants/
│   └── mocks/                    # 文档示例和本地调试 mock 数据,后续补充
├── package.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── tsconfig.json
├── .dumirc.ts                   # Dumi 配置发现入口,实际配置转发到 config/config.ts
└── .fatherrc.ts