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

eruda-plus

v0.3.0

Published

Enhanced mobile web console: eruda with Chrome DevTools experience (bilingual UI, DevTools-style Network panel, block/rewrite/mock/throttle, HAR, Live Expressions and more)

Readme

eruda-plus

为移动端网页打造的 Chrome DevTools 级调试控制台

在 eruda 之上全面增强:DevTools 风格 UI、全工具中英双语、 网络请求阻断 / 重写 / Mock / 节流、HAR 导入导出、Live Expressions、DOM 搜索……

Release License: MIT GitHub Stars Site Upstream

简体中文 | English

🌐 官网:https://eruda.cc.cd

✨ 特性

🎨 全工具 DevTools 化

  • 视觉全面对齐 Chrome DevTools:亮 / 暗双主题设计令牌、13px 紧凑排版、等宽数据字体、扁平弹窗、细滚动条、导航选中指示条
  • 覆盖 Console / Elements / Network / Resources / Sources / Info / Snippets / Settings 全部内置工具,兼容上游 17 套第三方主题

🌍 全工具国际化(i18n)

  • 默认跟随系统语言(navigator.language),支持设置中手动切换 中文 / English
  • 切换即时生效、无需刷新,选择持久化保存

🛜 网络面板(对标 DevTools,借鉴 ProxyPin)

  • 九类筛选 Chip、Overview 时间轴、七列可排序表格、迷你瀑布列、状态栏、自动分屏
  • 六页签详情:Headers / Payload / Preview(JSON 树)/ Response / Initiator(调用链)/ Timing(七段时序瀑布)
  • 请求阻断:URL 黑名单(字面量 + /regex/),fetch 与 XHR 双通道拦截、模拟 403
  • Rewrite 重写 / Mock 响应 / 节流(Slow 3G / Fast 3G / Offline)
  • HAR 1.2 导入导出、Copy as fetch / cURL、正则搜索、失败请求红色高亮、Preserve Log 保留请求

🧰 DevTools 功能补齐

| 工具 | 新增能力 | | --- | --- | | Console | Live Expressions 实时表达式、内联筛选框(正则)、Preserve Log 保留日志 | | Elements | DOM 搜索(选择器 + 全文降级)、Copy selector / Copy XPath | | Network | Preserve Log 保留请求(含详情与 Initiator) |

📦 安装

CDN(推荐)

<script src="https://cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>

使用增强版(本仓库构建产物,含全部增强功能):

<script src="https://cdn.jsdelivr.net/gh/masgzy/[email protected]/dist/eruda.js"></script>
<script>eruda.init();</script>

也可以锁定 @main 分支获取最新构建:https://cdn.jsdelivr.net/gh/masgzy/eruda-plus@main/dist/eruda.js

仅增强网络面板(独立插件)

不想替换整个 eruda?挂上独立插件即可(基于官方 eruda 运行):

<script src="https://cdn.jsdelivr.net/npm/eruda"></script>
<script src="https://cdn.jsdelivr.net/gh/masgzy/[email protected]/dist/eruda-network-plus.js"></script>
<script>
  eruda.init();
  eruda.remove('network');
  eruda.add(new window.erudaNetworkPlus());
</script>

npm

npm 包将于近期发布,当前请优先使用上方 CDN 方式。

npm install eruda-plus   # 暂未发布,敬请期待
import erudaPlus from 'eruda-plus';

erudaPlus.init();

源码补丁

直接把增强应用到任意基于 eruda v3.4.3 的源码树:

git clone https://github.com/liriliri/eruda.git eruda && cd eruda
git checkout v3.4.3
git apply /path/to/eruda-devtools-edition.patch
npx webpack --config build/webpack.prod.js

🚀 快速上手

<script src="./dist/eruda.js"></script>
<script>
  eruda.init();

  // 网络:阻断 / 重写 / Mock / 节流(工具栏「规则」面板内同样可配置)
  eruda.get('network').block('/api\\/tracker/');
  eruda.get('network').rewrite('http://old.api.com', 'http://new.api.com');
  eruda.get('network').mock('/api/user', { status: 200, body: '{"mock":true}' });
  eruda.get('network').throttle('slow3g');

  // Console:实时表达式
  eruda.get('console').watch('performance.now()');

  // Elements:DOM 搜索
  eruda.get('elements').search('.item');

  // 中英切换(跟随系统默认,可手动固定)
  eruda.setConfig('settings:lang', 'zh'); // 'en' | 'zh'
</script>

🖼️ 截图

| 中文 · Network | 英文 · 桌面分屏 | | :---: | :---: | | 中文 Network | 英文分屏 |

| 移动端 · 紧凑列 | 暗色主题 · Network 保留日志 | | :---: | :---: | | 移动端 | 暗色 |

| 规则面板(阻断/重写/Mock) | Console · Watch + 保留日志 | | :---: | :---: | | 规则面板 | Console |

| Elements · DOM 搜索 | 官网 · 内嵌在线实测 | | :---: | :---: | | DOM 搜索 | 官网 |

更多截图见 docs/screenshots。

🧪 本地运行演示

git clone https://github.com/masgzy/eruda-plus.git
cd eruda-plus
node demo/server.js   # 无需安装依赖
# 打开 http://localhost:3456           → 增强完整版演示
# 打开 http://localhost:3456/plugin    → 官方 eruda + 独立插件演示

在线体验:https://eruda.cc.cd

📖 文档

🗺️ 路线图

  • [ ] 发布到 npm registry(当前可通过 GitHub + jsdelivr 使用)
  • [ ] WebSocket / SSE 请求捕获增强
  • [ ] 更多语言包(日本語 / Español …)
  • [ ] 请求对比 Diff 视图
  • [ ] 规则云端同步与导入导出

欢迎通过 Issue / PR 提出建议!

🤝 贡献

欢迎一切形式的贡献:

  1. Fork 本仓库并创建特性分支(git checkout -b feat/amazing-feature)
  2. 提交变更(请遵循 Conventional Commits 规范,如 feat: ...、fix: ...)
  3. 推送分支并发起 Pull Request

开发调试:

npm install
npx webpack --config build/webpack.dev.js   # 开发服务器
npx eslint .                                # 代码检查

🙏 致谢

⚠️ 本项目与 Google Chrome / Chrome DevTools 官方无任何隶属关系,"DevTools" 仅用于描述 UI 风格与功能对齐目标。

📄 许可证

MIT © liriliri(原版 eruda)& masgzy 及 eruda-plus 贡献者(增强部分)