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

@mqn00/file-manager-plugin-system-info

v0.1.0

Published

File Manager 系统信息插件:将内置系统信息页面抽取为独立插件,展示 OS/CPU/内存/磁盘分区/Node 信息,入口注册到文件浏览器顶栏导航

Readme

file-manager-plugin-system-info

File Manager 系统信息插件:将内置「系统信息」页面抽取为独立插件,展示服务器的 OS / CPU / 内存 / 磁盘分区 / Node.js 信息。

功能

  • 系统信息展示:操作系统(类型/平台/架构/版本/主机名/运行时间)、CPU(型号/核心数/频率)、内存(总量/已用/可用)、硬盘(设备/制造商/型号/挂载点/文件系统/使用率进度条 + 分区明细)、Node.js(版本/进程 ID)
  • 多磁盘切换:检测到多块物理磁盘时,页面顶部下拉切换查看
  • 顶栏导航入口:启用插件后,文件浏览器顶栏出现「系统信息」图标按钮(主应用 __fm_nav_actions 挂载点),点击进入 /plugin/system-info(需登录)
  • 主题适配:样式使用主应用主题令牌(--app-*),明暗主题自动切换

使用

安装/启用插件(config.yml 的 plugins.system-info.enabled: true)后,顶栏出现系统信息按钮 → 点击进入页面;页面内可手动刷新,加载失败显示错误态 + 重试。

接口

需登录,挂在 /api/plugin/system-info 下(详见主项目 API.md「系统信息(system-info 插件)」):

| 接口 | 说明 | |------|------| | GET /api/plugin/system-info/info | 返回系统信息:{ os, cpu, memory, disk, disks, node }(结构与迁移前 GET /api/system 一致) |

构建与测试

npm install --registry=https://registry.npmmirror.com   # 安装依赖(systeminformation 等)
npm run build                                            # tsc 编译后端 + esbuild 打包前端

实现说明

  • 图标:图标组件来自 @element-plus/icons-vue(devDependency,仅打包 import 到的图标,tree-shake);图标组件对 vue 的引用经构建期别名 vue → src/vue-shim.ts 转发到主应用暴露的 window.Vue,bundle 不含 vue runtime(避免双实例)
  • 类型门面:icons 2.3.2 的类型入口在插件 tsconfig(NodeNext)下无法解析出具名导出,tsconfig paths@element-plus/icons-vue 映射到 src/icons-types.ts(类型经主项目 frontend-types 导入);esbuild 打包时显式 alias 到真实包入口
  • 页面:render 函数实现(插件不走 SFC),Element Plus 组件取自 ctx.ElementPlus

依赖

  • 运行时:systeminformation
  • 主项目:file-manager(peerDependencies,类型与平台能力:ctx.router.addRoutectx.api.instancewindow.__fm_nav_actions 挂载点等)