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

a-fast-electron

v31.0.5

Published

Quickly create a desktop application

Readme

fast-electron

fast-electron 的本地脚手架 MVP。

本项目及生成出来的所有 package.json 都以 Node.js 24+ 为最低运行版本:

"engines": {
	"node": ">=24.0.0"
}

脚手架可以全局安装,安装后直接在任意目录执行 fast-electron 创建项目。

推荐全局安装:

bun add -g a-fast-electron
npm install -g a-fast-electron
pnpm add -g a-fast-electron
yarn global add a-fast-electron
deno install -g -A -n fast-electron npm:a-fast-electron@latest

安装后使用:

fast-electron
fast-electron my-electron-app

创建过程中会自动完成:

  • 创建 renderer
  • 初始化项目
  • 集成 renderer
  • 安装依赖
  • 生成启动和打包命令

注意:发布包名为 a-fast-electron,全局命令仍然是 fast-electron

本地测试

cd d:\项目文件\fast-electron-CLI
bun .\bin\create-fast-electron.mjs my-electron-app

或者直接用 Node 启动 CLI:

cd d:\项目文件\fast-electron-CLI
node .\bin\create-fast-electron.mjs my-electron-app

发布后使用

发布包 a-fast-electron 后,全局安装:

bun add -g a-fast-electron
npm install -g a-fast-electron
pnpm add -g a-fast-electron
yarn global add a-fast-electron
deno install -g -A -n fast-electron npm:a-fast-electron@latest

然后在要创建项目的目录执行:

fast-electron
fast-electron my-electron-app

脚手架会检测电脑里已经安装的包管理器/运行时,并在安装依赖前让你选择使用哪一个。

创建流程

  1. 询问项目名称。
  2. 复制 Electron 模板。
  3. 执行对应包管理器的 create vite 交互,让你选择前端框架。
  4. 执行模板的 renderer 集成脚本。
  5. 检测电脑里已安装的包管理器/运行时。
  6. 询问是否安装依赖,以及选择使用哪一个包管理器/运行时安装依赖。

生成项目后的常用命令

cd my-electron-app
npm install
npm run start

# 或者
pnpm install
pnpm run start

# 或者
bun install
bun run start

打包:

npm run compile:win
npm run compile:mac
npm run compile:linux

# 或者使用 pnpm / bun 对应命令