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

@nova-infra/electrobun-vite

v0.1.4

Published

把第一次上手需要的命令收敛成最短主路径:单配置、Quick Start、react-ts 模板,基于 **Electrobun 1.16** + **React 19** + **Vite 8**。

Readme

electrobun-vite

把第一次上手需要的命令收敛成最短主路径:单配置、Quick Start、react-ts 模板,基于 Electrobun 1.16 + React 19 + Vite 8

English: README.md

Demo 预览

官网https://nova-infra.github.io/electrobun-vite/


Quick Start

  1. 创建项目

    一键创建(无需克隆仓库):

    npx -p @nova-infra/electrobun-vite create-electrobun my-app
    cd my-app

    使用 Bun 时:bunx -p @nova-infra/electrobun-vite create-electrobun my-app

    从本仓库执行(monorepo 根目录):

    bun install
    bun run new -- my-app
    cd my-app
  2. 本地开发

    bun install
    bun run dev

    Vite renderer 与 Electrobun 桌面壳会一起启动。

  3. 构建与预览

    bun run build
    bun run preview

    preview 默认会先 build;已有产物时可加 --skipBuild


本仓库命令(Workspace)

| 命令 | 说明 | |------|------| | bun run dev / bun run dev:demo | 以 demo 为根启动开发 | | bun run dev:template | 以模板项目启动开发 | | bun run dev:docs | 启动文档站点 | | bun run new -- <name> | 脚手架生成新项目(调用 create-electrobun) | | bun run build | 构建 demo + 模板 | | bun run build:docs | 构建文档站 | | bun run typecheck | 类型检查 |


CLI 概览

  • electrobun-vite [root](或 dev / serve)— 启动开发:Vite + Electrobun;--rendererOnly 仅启动 renderer。
  • electrobun-vite build [root] — 构建 renderer 并交给 Electrobun 打包。
  • electrobun-vite preview [root] — 用生产资源启动桌面应用;--skipBuild 跳过构建。
  • electrobun-vite info [root] — 输出解析后的配置与版本信息。
  • create-electrobun <projectName> — 创建新项目(当前模板:react-ts)。

常用全局参数:-c, --config-l, --logLevel--clearScreen-m, --mode-w, --watch--outDir


仓库结构

| 路径 | 说明 | |------|------| | packages/electrobun-vite | 集成 CLI、配置加载、脚手架、图标与日志 | | apps/demo | 验收应用,多 tab 演示 Electrobun 能力 | | templates/react-ts | 默认 starter 模板 | | apps/docs | 官网源码,部署到 GitHub Pages |

项目层围绕 一个 electrobun.vite.config.ts:renderer 与 Electrobun 配置同文件。