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

@pubinfo-pr/devtools

v0.244.1

Published

Pubinfo 的开发期调试工具包,本质上是一个 Vite 插件加一组本地调试接口。

Downloads

1,028

Readme

@pubinfo/devtools

Pubinfo 的开发期调试工具包,本质上是一个 Vite 插件加一组本地调试接口。

它在做什么

  • 启动一个开发期面板静态资源入口
  • 在 Vite dev server 上挂载 __pubinfo_devtools__pubinfo_devtools_api
  • 扫描项目源码,统计组件、导入函数和 createPubinfo() 模块使用情况
  • 分析 API 定义、OpenAPI 配置、环境信息、依赖版本等调试数据
  • @pubinfo/core 提供宿主页面和 devtools iframe 的通信桥接能力

暴露的能力

默认入口导出服务端插件能力:

import { pubinfoDevtools } from '@pubinfo/devtools';

子路径导出:

  • @pubinfo/devtools/panel
  • @pubinfo/devtools/constants

典型接入

通常不需要手动接入。@pubinfo/vite 在开发模式下会自动把它注册进插件链。

如果需要单独使用:

import { defineConfig } from 'vite';
import { pubinfoDevtools } from '@pubinfo/devtools';

export default defineConfig({
  plugins: [pubinfoDevtools()],
});

提供的数据类型

从代码看,这个包主要围绕这些信息源工作:

  • 组件 / import 使用统计
  • API 扫描结果
  • 环境信息与 Git 信息
  • 依赖版本查询
  • issue 提交辅助数据

仓库关系

  • @pubinfo/vite 会在开发模式自动注册它。
  • @pubinfo/core 的内置 Devtools() 模块会与这里的 panel/constants 协作。