登录 注册
其他
13,049
Stars
382
Forks
48
Watchers
164
Open Issues
MIT
许可证
Zig
语言
2024-02-28
创建时间
2026-11-12
最近更新

项目能做什么

支持用 TypeScript、Zig、Rust、Go 或 Odin 构建极速微型跨平台桌面应用。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
  <a href="https://electrobun.dev/electrobun/"><img src="https://github.com/blackboardsh/electrobun/assets/75102186/8799b522-0507-45e9-86e3-c3cfded1aa7c" alt="Logo" height=170></a>
</p>

<h1 align="center">Electrobun</h1>

Build fast, compact, cross-platform desktop apps with TypeScript, Zig, Rust, Go,
or Odin.

## Get started

Install Hutch on **macOS or Linux**:

```sh
curl -fsSL https://artifacts.electrobun.dev/hutch/install.sh | sh
```

Or on **Windows PowerShell**:

```powershell
& ([scriptblock]::Create((irm https://artifacts.electrobun.dev/hutch/install.ps1)))
```

Then open the template picker. Restart your terminal first if `hutch` isn't found.

```sh
hutch electrobun init
```

Already use Bun or npm? You can start with either command instead:

```sh
bunx electrobun init
# or
npx electrobun init
```

Choose a template, then follow the
[Quick Start](https://docs.electrobun.dev/electrobun/guides/quick-start/#run-the-app)
to run your app.

## What is Electrobun?

Electrobun aims to be a complete **solution-in-a-box** for building, updating, and shipping fast, compact, cross-platform desktop applications written in TypeScript.
Hutch is the native build and workspace CLI. Bun is Electrobun's default JavaScript runtime. Cottontail is an experimental JSC-based alternative. Electrobun's platform layer combines Zig, Objective-C, and C++.

Explore [Electrobun](https://electrobun.dev/electrobun/) and read the
[documentation](https://docs.electrobun.dev/electrobun/) for API references,
guides, and examples.

Published templates include the Electrobun version they were tested with. Hutch
manages the SDKs and toolchains needed to build them. See the
[Hutch guide](https://docs.electrobun.dev/electrobun/guides/hutch/) for
project configuration and version management.

Hutch's built-in npm-compatible resolver installs JavaScript dependencies by
default and writes `hutch.lock`; `hutch pm exec` runs project-local package
binaries. A project's `hutch.config.ts` may instead select npm, Bun, pnpm, Yarn,
or a custom executable, and Hutch delegates package operations to that explicit
choice. Package management is independent of whether the app's main process
runs on Cottontail or Bun.

Don't miss our:
- self-extracting bundles that use Zstandard compression for compact distributables
- a Zig-optimized BSDIFF implementation that can produce kilobyte-scale updates
- `bundleCEF` flag to bundle and pin Chromium for those that want that tradeoff of consistency over file size
- `bundleWGPU` that lets you use Bun Typescript -> WGPU to control a native GPU surface without a webview
- Our Three.js and Babylon.js adapters that work directly in the Bun main process
- Our `<electrobun-webview>` and `<electrobun-wgpu>` HTML elements that let you composite isolated webviews and native GPU surfaces into your UIs
- so much more.

**Project Goals**

- Write typescript for the main process and webviews without having to think about it.
- Isolation between main
阅读完整原文

项目深度分析 AI 生成

Electrobun 应用托管与微增量更新云平台 (OTA / Diff Update SaaS)

产品构想利用 Electrobun 自带的 Zig 优化 BSDIFF 与 Zstandard 压缩特性,为基于 Electrobun 开发的应用提供一键式二进制差分更新、CDN 分发与版本发布管理服务。
核心功能自动化生成 BSDIFF 补丁包、全量与差分双轨回退分发、跨平台 (macOS/Win/Linux) 更新流分发、全球 CDN 边缘节点、下载分析看板。
目标用户使用 Electrobun 构建并分发给大量 end-users 的独立软件开发者与初创团队。
难度/周期中等 · 1 - 2 个月 · 成本:轻量云服务器 + 边缘对象存储/CDN 流量费用。
收费模式免费额度 + 按月订阅制(阶梯定价依据活跃更新设备数 MAU 或分发流量计费)。
竞争风险底层开源协议若允许完全自建可能削弱付费意愿,需要靠极其便捷的 CLI 集成和网络稳定性吸引用户。
依据 已验证事实

开箱即用跨平台代码签名与打包 CI/CD 机器人

产品构想针对桌面端开发门槛最高的代码签名(Apple 开发者公证、Windows EV/OV 证书管理与智能卡云签名),提供与 Hutch CLI 无缝集成的自动化云打包和签名流水线。
核心功能免配置的 GitHub Actions/GitLab CI 插件、云端安全托管凭证与硬件 Token 虚拟签名、一键生成过审签名的 dmg/exe/deb 安装包。
目标用户缺乏多平台物理构建机、不熟悉 macOS Notarization 和 Windows 证书签名的个人或小团队桌面开发者。
难度/周期中等 · 1 个月 · 成本:跨平台多架构 CI 构建机资源、Windows/Apple 证书采购与云 HSM 成本。
收费模式按次打包/签名计费或月度会员订阅包月(Pro/Team 订阅)。
竞争风险安全要求极高,用户私钥/证书托管若出事故将面临严重信任危机。
依据 数据支持的判断

高性能 WGPU / 3D 桌面应用企业级模板与商业 UI 组件套件

产品构想基于 Electrobun 独有的 `bundleWGPU`、Three.js/Babylon.js 适配器与原生 WebView 混合渲染能力,打造高阶数据可视化、本地 AI 工具或轻量 3D 创意软件的商业骨架模板与 UI 资产库。
核心功能集成本地 WebGPU 管道与 TS RPC 通信框架、现代化桌面端原生体验窗口/托盘/菜单封装、开箱即用的高性能 3D 画布组件、商用闭源授权。
目标用户需要构建本地高性能客户端(如本地 AI 画布、CAD/3D 预览器、音频可视化工具)的技术团队及个人创作者。
难度/周期较低 · 2 - 4 周 · 成本:近乎为零,主要是个人设计与开发工时。
收费模式一次性买断授权(Gumroad/Lemon Squeezy)+ 商业定制开发咨询。
竞争风险Electrobun 的 WGPU 及 Cottontail 运行时尚处于持续迭代期,底层 API 变动可能导致维护成本增加。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2024-02-28,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 13,049 / Fork 382 / Issue 164(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。