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

whistle.mockbubu

v2.1.5

Published

mock response data

Readme

whistle.mockbubu

whistle.mockbubu is an extension script plugin for whistle that provides the following features:

  • Real-time generation of mock files from captured API responses
  • Mock file management

Installation

$ w2 install whistle.mockbubu

Usage

Configure whistle rules

Default mode uses pathname

pattern mockbubu://[mode]

Generate Mock Files


Pathname Mode: Uses the interface's origin + pathname as the filename

pattern mockbubu://   or pattern mockbubu://pathname

After configuring the rules and enabling the plugin, mockbubu will capture matching request data in real-time

step1.png


Start Mocking

Step 1: Enable the mock switch for the file. When mockbubu intercepts the corresponding request, it will directly return the matched request data. After enabling the mock switch, you can manage file content in the Response panel.

Step 2: Manage file content in the Response panel

Edit Files

  • Supports file editing
  • Supports keyboard shortcuts for saving: Mac: Command + S / Windows: Ctrl + S

Multiple Versions

  • Supports creating different versions of file content. Click to switch between different versions for instant effect and return that version's data
  • The "source" version is the default generated version containing the original API response data and supports modification

Switch Mock Files

  • Mock return content uses the currently selected version

step2.png

whistle.mockbubu

whistle.mockbubu 是whistle的一个扩展脚本插件,包括以下功能

  • 实时生成捕获接口的 mock 文件
  • 管理 mock 文件

安装

$ w2 install whistle.mockbubu

用法

配置 whistle 规则

mode默认使用 pathname

pattern mockbubu://[mode]

生成 mock 文件


pathname 模式:使用接口的 origin + pathname 作为文件名

pattern mockbubu://  或者 pattern mockbubu://pathname

配置规则并开启插件后,mockbubu将实时获取匹配到的请求数据

step1.png


开始 mock

第一步:开启文件的 mock 开关,拦截到对应请求mockbubu将直接返回对应匹配请求的数据,开启mock开关后可在Response面板管理文件内容

第二步:在 Response 面板管理文件内容

编辑文件

  • 支持文件编辑
  • 支持快捷键保存 Mac: Command + s / Windows: Ctrl + s

多版本

  • 支持新增不同版本的文件内容,点击切换不同版本即刻生效返回该版本数据
  • 其中 source 版本是默认生成的,是原始接口响应数据,支持修改

切换 mock 文件

  • mock 返回内容使用当前选中的版本

step2.png


开发者文档

如果你需要参与 whistle.mockbubu 的开发、维护或迭代,请阅读以下文档:

📖 开发者指南 (DEVELOPER-GUIDE.md)

包含以下内容:

  • 项目架构设计
  • 完整业务流程
  • 关键业务逻辑和判断
  • 数据存储设计
  • API 接口清单
  • 重要注意事项
  • 迭代开发指南(影响范围和可行性分析)
  • 故障排查指南
  • 编码规范

📋 编码规范 (CODE-STANDARDS.md)

代码质量标准和最佳实践


贡献

欢迎提交 Issue 和 Pull Request。在提交 PR 前,请确保:

  1. 阅读了开发者指南
  2. 遵循编码规范
  3. 测试了所有相关功能
  4. 更新了相关文档

License

MIT