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

fehelper-electron

v2026.4.2920

Published

FeHelper - 前端助手 (Electron Desktop App)

Readme

FeHelper Electron

将 Chrome 扩展 FeHelper (前端助手) 转换为 Electron 桌面应用的实验性项目。

功能特性

  • ✅ 30+ 开发工具 - JSON格式化、编解码、二维码、正则、时间戳等
  • ✅ 原生桌面体验 - 系统托盘、快捷键、全局窗口控制
  • ✅ 独立应用 - 无需浏览器扩展,直接运行

已实现工具

| 工具 | 状态 | 说明 | |------|------|------| | JSON 美化 | ✅ | JSON 格式化、排序、压缩 | | 二维码 | ✅ | 生成和解码二维码 | | 编码转换 | ✅ | Base64/URL/Unicode/MD5/SHA1 | | 时间戳 | ✅ | 时间戳与日期互转 | | 正则测试 | ✅ | 常用正则模板 | | 密码生成 | ✅ | 随机密码生成器 | | 工具市场 | ✅ | 工具安装管理 |

安装运行

前置要求

  • Node.js 18+
  • npm 或 yarn

安装步骤

cd fehelper-electron
npm install
npm start

打包应用

npm run build

打包后的应用将生成在 dist/ 目录。

项目结构

fehelper-electron/
├── package.json          # 项目配置
├── src/
│   ├── main/
│   │   └── index.js     # Electron 主进程
│   ├── preload.js       # 预加载脚本(Chrome API 桥接)
│   └── renderer/
│       ├── popup/       # 工具面板
│       │   └── index.html
│       └── tools/       # 工具页面
│           ├── json-format/
│           ├── qr-code/
│           ├── en-decode/
│           ├── timestamp/
│           ├── regexp/
│           ├── password/
│           └── options/
├── assets/              # 图标资源
└── README.md

API 桥接

本项目通过 preload.js 将 Chrome 扩展 API 桥接到 Electron:

  • chrome.runtime → Electron IPC
  • chrome.storage → electron-store
  • chrome.tabs → BrowserWindow 管理
  • chrome.notifications → Electron Notification
  • chrome.contextMenus → Electron Menu

开发说明

添加新工具

  1. 在 src/renderer/tools/ 下创建工具目录
  2. 创建 index.html 作为工具页面
  3. 在 src/main/index.js 的 openTool 函数中添加标题映射
  4. 在 popup/index.html 的 TOOL_MAP 中添加工具定义

快捷键

  • Alt+Shift+J - 显示/隐藏主窗口

与原版差异

| 功能 | Chrome 扩展 | Electron 版本 | |------|-------------|---------------| | 浏览器注入 | ✅ 支持 | ❌ 不支持 | | 内容脚本 | ✅ 支持 | ⚠️ 部分支持 | | 截图工具 | ✅ | ⚠️ 受限于平台 | | 系统通知 | ✅ | ✅ | | 全局快捷键 | ✅ | ✅ | | 系统托盘 | ❌ | ✅ |

许可证

MIT License - 与 FeHelper 原版 保持一致

致谢