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

@quickbi/qbi-dev-tools

v1.0.7

Published

Command line tool for developing component for Quick BI

Readme

@quickbi/qbi-dev-tools

English | 简体中文

Quick BI 自定义组件的构建工具,基于 Rspack

使用

安装

使用 npm:

npm i -D @quickbi/qbi-dev-tools

使用 pnpm:

pnpm add -D @quickbi/qbi-dev-tools

使用 yarn:

yarn add -D @quickbi/qbi-dev-tools

配置

在项目根目录创建 qbi.config.ts 文件:

// qbi.config.ts
import { defineConfig } from '@quickbi/qbi-dev-tools';

export default defineConfig({
  entry: {
    BIComponentMeta: './src/meta.ts',
    BIComponent: './src/index.ts',
  },
  devServer: {
    port: 3000,
    host: '127.0.0.1',
    server: {
      type: 'https',
    },
  },
});

配置支持传入完整的 Rspack Configuration(如 externalsresolve 等),也支持传入一个函数,接收内置配置并返回合并后的配置:

export default defineConfig(config => {
  config.externals = { react: 'React' };
  return config;
});

默认构建两个 UMD 入口:BIComponentMeta 来自 ./src/meta.ts(组件元信息),BIComponent 来自 ./src/index.ts(组件实现),产物输出到 dist/。只需声明要覆盖的入口即可。

内置能力:

  • 通过 SWC 编译 TypeScript / JavaScript(X)
  • CSS / Less / Sass,支持 CSS Modules(*.module.css|less|scss
  • 静态资源(图片、字体、图标)小于 100KB 时内联为 data URL
  • 开发服务器默认运行在 https://127.0.0.1:8001,托管 ./public 目录并开启 CORS

命令

所有命令均支持 --config [path] 指定配置文件(默认为 ./qbi.config.ts)。

启动开发服务器:

qdt start

生产环境构建:

qdt build

将构建产物打包为 zip,用于上传到 Quick BI(在项目根目录生成 <name>-<version>.zip):

qdt bundle

调试

安装依赖:

pnpm i

构建:

pnpm build

以监听模式构建:

pnpm dev