Current collected state Current
Observed since 20 Oct, 19:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Ultra-light zero-config helper that turns your 404s into an interactive treasure map for real routes, recent misses, and smart suggestions.
一个零配置、超轻量的 404 调试助手。只需在 Express / Koa / Fastify 应用的末尾加上一行,就能把普通 404 页面变成“寻宝地图”,展示真实路由、最近踩空记录以及智能猜测。
?json 切换 JSON 模式,方便自动化EXPLORER_404_COLOR 设置主题色npm i 404-explorer
// Express、Koa、Fastify 等入口文件
require('404-explorer')(app)
访问不存在的地址(例如 http://localhost:3000/helo)即可看到极简 404 面板;追加 ?json 可查看同样信息的 JSON 版。
项目自带 example/ 目录,可快速体验:
cd example
npm init -y
npm i express
node server.js
浏览器访问 http://localhost:3000/ 或任何不存在的路径,观察 404 Explorer 的交互。
require('404-explorer')(app, {
routes: ['/custom/list'], // 提供自定义路由列表,跳过自动发现
router: appRouterInstance, // 传入自定义 router 以扫描路由
})
/~routes 接口,方便 CI 做死链扫描需要发布到 npm?请参考 PUBLISH.zh-CN.md。也欢迎 PR,一起保持它的“小而美” ✨
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0Registry latest | 28 Nov 2025 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1d973af0ab290376bb8ef2c7c91dabdfb1257b82a28ec5a952741eb2482f9e8c