electrobun 2.0.8 → 2.0.9-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +283 -47
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,59 +1,295 @@
1
- # Electrobun npm bootstrap
1
+ > [!TIP]
2
+ > **Support Electrobun development** by subscribing to [Dash Pro](https://electrobun.dev/dash/pricing), which includes managed Electrobun app hosting and analytics.
2
3
 
3
- The dependency-free `electrobun` npm package is a small Hutch entry point for
4
- npm, pnpm, Yarn, and Bun users. It contains no Electrobun runtime, SDK, or
5
- platform-specific npm dependency. On first use, the `electrobun` command reads
6
- the `hutch-artifacts.json` index for its exact version, downloads the host's
7
- matching Hutch archive from the indexed immutable Electrobun GitHub Release
8
- URL, checks its byte length and SHA-256 digest against that index entry, caches
9
- the extracted launcher and engine safely, and delegates all commands to `hutch
10
- electrobun`. `electrobun init` additionally ensures a compatible global
11
- Hutch launcher is present for the generated project's `hutch run ...` tasks;
12
- init itself still runs through the exact private cache.
4
+ > [!NOTE]
5
+ > Explore apps built with Electrobun in the [App Directory](https://apps.electrobun.dev), or [add your own for free](https://dash.electrobun.dev/?listing).
13
6
 
14
- Create a project from the current stable template catalog:
7
+ <p align="center">
8
+ <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>
9
+ </p>
10
+
11
+ <h1 align="center">Electrobun</h1>
12
+
13
+ Build fast, compact, cross-platform desktop apps with TypeScript, Zig, Rust, Go,
14
+ or Odin.
15
+
16
+ Host your app's releases on [any static HTTPS host](https://docs.electrobun.dev/electrobun/guides/updates/#static-release-hosting),
17
+ or use [Electrobun's managed hosting and analytics platform](https://electrobun.dev/electrobun/hosting/).
18
+ See the [hosting](https://docs.electrobun.dev/electrobun/guides/managed-deploys/),
19
+ [Insights](https://docs.electrobun.dev/electrobun/guides/insights/), and
20
+ [migration](https://docs.electrobun.dev/electrobun/guides/migrate-to-managed-deploys/) guides.
21
+
22
+ ## Get started
23
+
24
+ Install Hutch on **macOS or Linux**:
15
25
 
16
26
  ```sh
17
- npx electrobun init
27
+ curl -fsSL https://artifacts.electrobun.dev/hutch/install.sh | sh
18
28
  ```
19
29
 
20
- Use the beta catalog only when you ask for it:
30
+ Or on **Windows PowerShell**:
21
31
 
22
- ```sh
23
- npx electrobun init --beta
24
- ```
25
-
26
- The npm bootstrap supplies the exact Hutch and Electrobun defaults paired with
27
- its own release version. Those defaults are not overrides: published templates
28
- include an exact `electrobun.version`, and an exact `// @hutch` pragma or
29
- product pin in `hutch.config.ts` always wins. In an unpinned hand-written
30
- project, the installed package version selects the toolchain for npm-launched
31
- commands, so the single `electrobun` dependency and its immutable GitHub Release
32
- assets ride the project lockfile together. Hutch
33
- downloads the matching runtime and SDK into the shared
34
- `~/.hutch/releases/electrobun` store and projects the SDKs into the project's
35
- `.hutch/devkit` sysroot. Bun is the default application runtime and Hutch script runner. Cottontail
36
- is experimental and opt-in; Hutch still uses its paired Cottontail for internal
37
- config loading and bundling. Application runtimes are independently pinned by
38
- the resolved Electrobun devkit. Installing a beta bootstrap still uses stable templates
39
- unless `init` receives `--beta`.
40
-
41
- `DASH_RELEASE_OFFLINE=1` prevents this bootstrap from downloading a missing
42
- Hutch archive. A previously verified cached copy can still run, but
43
- `electrobun init` requires network access for the current template catalog and
44
- selected template. Builds can run without network access only when every exact
45
- release and managed toolchain they require is already installed. The flag does
46
- not put Hutch's built-in dependency resolver or an external project package
47
- manager into offline mode.
48
-
49
- You can [install Hutch directly](https://docs.electrobun.dev/electrobun/guides/hutch/)
50
- and run the same commands without npm:
32
+ ```powershell
33
+ & ([scriptblock]::Create((irm https://artifacts.electrobun.dev/hutch/install.ps1)))
34
+ ```
35
+
36
+ Then open the template picker. Restart your terminal first if `hutch` isn't found.
51
37
 
52
38
  ```sh
53
39
  hutch electrobun init
54
40
  ```
55
41
 
56
- Read the [Electrobun documentation](https://docs.electrobun.dev/electrobun/) for
57
- guides and API references. [Dash](https://electrobun.dev/dash/) is our
58
- general-purpose IDE and connected workspace for developing software, including
59
- Electrobun apps, across your machines.
42
+ Already use Bun or npm? You can start with either command instead:
43
+
44
+ ```sh
45
+ bunx electrobun init
46
+ # or
47
+ npx electrobun init
48
+ ```
49
+
50
+ Choose a template, then follow the
51
+ [Quick Start](https://docs.electrobun.dev/electrobun/guides/quick-start/#run-the-app)
52
+ to run your app.
53
+
54
+ ## What is Electrobun?
55
+
56
+ Electrobun aims to be a complete **solution-in-a-box** for building, updating, and shipping fast, compact, cross-platform desktop applications written in TypeScript.
57
+ 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++.
58
+
59
+ Explore [Electrobun](https://electrobun.dev/electrobun/) and read the
60
+ [documentation](https://docs.electrobun.dev/electrobun/) for API references,
61
+ guides, and examples.
62
+
63
+ Published templates include the Electrobun version they were tested with. Hutch
64
+ manages the SDKs and toolchains needed to build them. See the
65
+ [Hutch guide](https://docs.electrobun.dev/electrobun/guides/hutch/) for
66
+ project configuration and version management.
67
+
68
+ Hutch's built-in npm-compatible resolver installs JavaScript dependencies by
69
+ default and writes `hutch.lock`; `hutch pm exec` runs project-local package
70
+ binaries. A project's `hutch.config.ts` may instead select npm, Bun, pnpm, Yarn,
71
+ or a custom executable, and Hutch delegates package operations to that explicit
72
+ choice. Package management is independent of whether the app's main process
73
+ runs on Cottontail or Bun.
74
+
75
+ Don't miss our:
76
+ - self-extracting bundles that use Zstandard compression for compact distributables
77
+ - a Zig-optimized BSDIFF implementation that can produce kilobyte-scale updates
78
+ - `bundleCEF` flag to bundle and pin Chromium for those that want that tradeoff of consistency over file size
79
+ - `bundleWGPU` that lets you use Bun Typescript -> WGPU to control a native GPU surface without a webview
80
+ - Our Three.js and Babylon.js adapters that work directly in the Bun main process
81
+ - Our `<electrobun-webview>` and `<electrobun-wgpu>` HTML elements that let you composite isolated webviews and native GPU surfaces into your UIs
82
+ - so much more.
83
+
84
+ **Project Goals**
85
+
86
+ - Write typescript for the main process and webviews without having to think about it.
87
+ - Isolation between main and webview processes with fast, typed, easy to implement RPC between them.
88
+ - Small self-extracting app bundles when using the system webview
89
+ - Small updates that use binary patches before falling back to a compressed full download
90
+ - Provide everything you need in one tightly integrated workflow to start writing code in 5 minutes and distribute in 10.
91
+
92
+ ## Develop with Dash
93
+
94
+ [Dash](https://electrobun.dev/dash/) is our general-purpose IDE for building any
95
+ kind of software, with a workflow designed for Electrobun apps. Keep code,
96
+ terminals, Git, scripts, and coding agents together, and build and test on your
97
+ connected Mac, Windows, and Linux machines. Dash itself is built with Electrobun.
98
+
99
+ ## Apps Built with Electrobun
100
+
101
+ - [Dash](https://electrobun.dev/dash/) - desktop workspace for files, terminals, scripts, models, and agents across your machines
102
+ - [24agents](https://github.com/jhsu/24agents) - Hyperprompter
103
+ - [act-track-ai](https://github.com/IrdanGu/act-track-ai) - personal desktop productivity tracker
104
+ - [Agents Council](https://github.com/MrLesk/agents-council) - agent-to-agent MCP communication tool for feedback requests
105
+ - [ai-wrapped](https://github.com/gulivan/ai-wrapped) - Wrapped-style desktop dashboard for your AI coding agent activity
106
+ - [Audio TTS](https://github.com/blackboardsh/audio-tts) - desktop text-to-speech app using Qwen3-TTS for voice design, cloning, and generation
107
+ - [aueio-player-desktop](https://github.com/tuomashatakka/aueio-player-desktop) - beautiful, minimal cross-platform audio player
108
+ - [bestdiff](https://github.com/tesmond/bestdiff) - a git diff checker with curved connectors
109
+ - [burns](https://github.com/l3wi/burns) - a Smithers manager
110
+ - [cbx-tool](https://github.com/jebin2/cbx-tool) - desktop app for reading and editing comic book archives (.cbz/.cbr)
111
+ - [codlogs](https://github.com/tobitege/codlogs) - search and export local Codex sessions via CLI or desktop app
112
+ - [Codex Agents Composer](https://github.com/MrLesk/codex-agents-composer) - desktop app for managing your Codex agents and their skills
113
+ - [codex-devtools](https://github.com/gulivan/codex-devtools) - desktop inspector for Codex session data; browse conversations, search messages, and analyze agent activity
114
+ - [Cropped](https://www.cropped.app/) - desktop app for resizing, compressing, and cropping images and videos locally
115
+ - [Deskdown](https://github.com/guarana-studio/deskdown) - transform any web address into a desktop app in under 20 seconds
116
+ - [Dictate](https://github.com/siddhantparadox/dictate) - Windows dictation app with local and BYOK cloud transcription
117
+ - [dev-3.0](https://github.com/h0x91b/dev-3.0) - helps you not get lost while managing multiple AI agents across projects
118
+ - [DOOM](https://github.com/blackboardsh/electrobun-doom) - DOOM implemented in 2 ways: bun -> (c doom -> bundled wgpu) and (full ts port bun -> bundled wgpu)
119
+ - [dotlock](https://github.com/tsconfigdotjson/dotlock) - macOS desktop app for managing `.env` files across your projects
120
+ - [electrobun-pdf](https://github.com/GijungKim/electrobun-pdf) - local-first PDF & DOCX editor for opening, annotating, and exporting documents without leaving your machine
121
+ - [electrobun-rms](https://github.com/khanhthanhdev/electrobun-rms) - fast Electrobun desktop app template with React, Tailwind CSS, and Vite
122
+ - [FLACK](https://github.com/BLCK-B/FLACK) - local audio player for Windows
123
+ - [gloomberb](https://gloom.sh) - financial terminal for the rest of us
124
+ - [golb](https://github.com/chrisdadev13/golb) - desktop AI coding workspace built with React, Vite, and Tailwind
125
+ - [GOG Achievements GUI](https://github.com/timendum/gog-achievements-gui) - desktop app for managing GOG achievements
126
+ - [groov](https://github.com/laurenzcodes/groov) - desktop audio deck monitor
127
+ - [Guerilla Glass](https://github.com/okikeSolutions/guerillaglass) - open-source cross-platform creator studio for fast Record -> Edit -> Deliver workflows
128
+ - [Invoke](https://getinvoke.com) - macOS UI automation & shortcut platform
129
+ - [Marginalia](https://github.com/lars-hoeijmans/Marginalia) - a simple note taking app
130
+ - [MarkBun](https://github.com/xiaochong/markbun) - fast, beautiful, Typora-like markdown desktop editor
131
+ - [md-browse](https://github.com/needle-tools/md-browse) - a markdown-first browser that converts web pages to clean markdown
132
+ - [moop](https://github.com/zrubinrattet/moop/) - desktop app for batch image optimization for the web
133
+ - [Oursum](https://github.com/CarthyWorks/oursum) - private, offline-first personal expense tracker for importing, categorizing, and splitting transactions
134
+ - [Patchline](https://github.com/adwaithks/Patchline) - lightweight desktop Git client for reading patches and line diffs, then staging and committing changes
135
+ - [peekachu](https://github.com/needle-tools/peekachu) - password manager for AIs; store secrets in your OS keychain and scrub output so AI assistants never see actual values
136
+ - [PiBun](https://github.com/khairold/pibun) - desktop GUI for the Pi coding agent with chat, terminal, git integration, and plugin system
137
+ - [qCodelicious](https://github.com/rafaelsouzars/qcodelicious) - a simple code editor
138
+ - [Quiver](https://ataraxy-labs.github.io/quiver/) - desktop app for GitHub PR reviews, merge conflict resolution, and AI commit messages
139
+ - [Sideleaf](https://sideleaf.xyz/) - simple Markdown and text editor with previews and notes
140
+ - [StoryForge](https://github.com/StoryForgeApp/StoryForge) - desktop app for Vintage Story players to switch between game versions, modpacks, servers, and accounts
141
+ - [tokenpass-desktop](https://github.com/b-open-io/tokenpass-desktop) - desktop app that runs the Sigma Identity stack locally for Bitcoin-backed authentication
142
+ - [Toonflow](https://github.com/HBAI-Ltd/Toonflow-app) - AI video creation app with scriptwriting, storyboarding, and image and video generation on an infinite canvas
143
+ - [VibesOS](https://github.com/popmechanic/VibesOS) - A GUI for Claude Code that makes it easy to vibe code simple, un-hackable apps
144
+ - [VoiceVault](https://github.com/PJH720/VoiceVault) - AI-powered voice recorder with transcription, summarization, and RAG search
145
+ - [warren](https://github.com/Loa212/warren) - open-source, peer-to-peer terminal mesh for accessing your machines from any device without SSH keys or config files
146
+ - [whatsapp-reminder](https://github.com/FatahChan/whatsapp-reminder) - managed scheduled WhatsApp messages
147
+
148
+ ### Video Demos
149
+
150
+ [![Audio TTS Demo](https://img.youtube.com/vi/Z4dNK1d6l6E/maxresdefault.jpg)](https://www.youtube.com/watch?v=Z4dNK1d6l6E)
151
+
152
+ [![Co(lab) Demo](https://img.youtube.com/vi/WWTCqGmE86w/maxresdefault.jpg)](https://www.youtube.com/watch?v=WWTCqGmE86w)
153
+
154
+ [![DOOM Demo](https://github.com/user-attachments/assets/6cc5f04a-6d97-4010-b65f-3f282d32590c)](https://x.com/YoavCodes/status/2028499038148903239?s=20)
155
+
156
+ ## Star History
157
+
158
+ <p align="center">
159
+ <img src="https://raw.githubusercontent.com/blackboardsh/electrobun/main/.github/assets/star-history-v1.jpg" alt="Electrobun star history four weeks after the v1 launch">
160
+ <br>
161
+ <em>star history 4 weeks after v1 launch</em>
162
+ </p>
163
+
164
+ ## Contributing
165
+ Electrobun is one piece of a vision I'm building. I'm optimizing for focus and execution. Issues and PRs can be used to share ideas, but there should be no expectation that I will review, respond to, or merge them.
166
+
167
+ Ways to get involved:
168
+
169
+ - Read the [Contribution guidelines](https://github.com/blackboardsh/electrobun/blob/main/CONTRIBUTING.md)
170
+ - Follow us on X for updates <a href="https://twitter.com/GetElectrobun">@GetElectrobun</a> and <a href="https://twitter.com/YoavCodes">@YoavCodes</a> or on bluesky <a href="https://bsky.app/profile/yoav.codes">@yoav.codes</a>
171
+ - Join the conversation on <a href="https://discord.gg/ueKE4tjaCE">Discord</a>
172
+ - Create and participate in Github issues and discussions
173
+ - Let me know what you're building with Electrobun
174
+
175
+ ## Development Setup
176
+ Building apps with Electrobun is as easy as installing Hutch and running `hutch electrobun init`.
177
+
178
+ **This section is for building Electrobun from source locally in order to contribute fixes to it.**
179
+
180
+ ### Prerequisites
181
+
182
+ Install Hutch globally before building Electrobun:
183
+
184
+ ```bash
185
+ curl -fsSL https://artifacts.electrobun.dev/hutch/install.sh | sh
186
+ ```
187
+
188
+ On Windows PowerShell:
189
+
190
+ ```powershell
191
+ & ([scriptblock]::Create((irm https://artifacts.electrobun.dev/hutch/install.ps1)))
192
+ ```
193
+
194
+ **macOS:**
195
+ - Xcode command line tools
196
+ - cmake (install via homebrew: `brew install cmake`)
197
+
198
+ **Windows:**
199
+ - Visual Studio Build Tools or Visual Studio with C++ development tools
200
+ - cmake
201
+
202
+ **Linux:**
203
+ - build-essential package
204
+ - cmake
205
+ - webkit2gtk and GTK development packages
206
+
207
+ On Ubuntu/Debian based distros: `sudo apt install build-essential cmake pkg-config libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev libpipewire-0.3-dev librsvg2-dev`
208
+
209
+ Linux applications also require the corresponding GTK 3, WebKitGTK 4.1,
210
+ Ayatana AppIndicator, and librsvg runtime packages on end-user systems. See the
211
+ [cross-platform development guide](https://docs.electrobun.dev/electrobun/guides/cross-platform-development/#linux-runtime-packages)
212
+ for distro-specific install commands. The launcher reports the exact missing
213
+ shared library when these dependencies are unavailable.
214
+ Wayland screen-region capture additionally requires a working desktop portal,
215
+ PipeWire, and the `libpipewire-0.3.so.0` runtime library (provided by
216
+ `libpipewire-0.3-0`, or `libpipewire-0.3-0t64` on newer Ubuntu/Debian releases).
217
+
218
+ ### First-time Setup
219
+
220
+ ```bash
221
+ git clone --recurse-submodules https://github.com/blackboardsh/electrobun.git
222
+ cd electrobun/package
223
+ npm ci
224
+ hutch dev:clean
225
+ ```
226
+
227
+ ### Development Workflow
228
+
229
+ ```bash
230
+ # All commands are run from the /package directory
231
+ cd electrobun/package
232
+
233
+ # After making changes to source code
234
+ hutch dev
235
+
236
+ # Exercise one repository template against the same local package/dist
237
+ hutch dev:template hello-world
238
+
239
+ # If you need a completely fresh start
240
+ hutch dev:clean
241
+ ```
242
+
243
+ `hutch dev` builds `package/dist` and runs Kitchen against that local
244
+ Electrobun devkit. Running `hutch dev` directly from `kitchen/` continues to
245
+ use the Electrobun version pinned in `kitchen/hutch.config.ts`.
246
+
247
+ `hutch dev:template <template-name>` builds the same local devkit, runs the
248
+ template's configured dependency installation, and starts its `dev` task against
249
+ those local bytes. Repository templates stay unpinned for this workflow; the
250
+ release publisher injects the shipped Electrobun version into each staged
251
+ template archive.
252
+
253
+ The native build generates `package/src/native/compile_flags.txt` from the
254
+ compiler flags resolved for the current machine. clangd-compatible editors
255
+ discover it automatically; rerun the build after changing native dependencies
256
+ or system toolchains.
257
+
258
+ With sibling `jsc`, `cottontail`, `dash-cloud`, and `electrobun` checkouts, use
259
+ `--local` to additionally build and select the local JSC, Cottontail, and Hutch
260
+ layers:
261
+
262
+ ```bash
263
+ hutch dev --local
264
+ ```
265
+
266
+ The first Hutch is globally installed. Stack preparation explicitly selects the
267
+ completed local Hutch engine and Cottontail build for the remainder of the
268
+ command.
269
+
270
+ ### Additional Commands
271
+
272
+ All commands are run from the `/package` directory:
273
+
274
+ - `hutch dev:canary` - Build and run kitchen sink in canary mode
275
+ - `hutch dev:template <template-name>` - Build and run one template against the local devkit
276
+ - `hutch build:dev` - Build Electrobun in development mode
277
+ - `hutch build:release` - Build Electrobun in release mode
278
+
279
+ ### Debugging
280
+
281
+ **macOS:** Use `lldb <path-to-bundle>/Contents/MacOS/launcher` and then `run` to debug release builds
282
+
283
+ ## Platform Support
284
+
285
+ | OS | Status |
286
+ |---|---|
287
+ | macOS 14+ (Apple Silicon and Intel x64) | Official |
288
+ | Windows 11+ x64 | Official |
289
+ | Windows 11+ ARM64 | Beta |
290
+ | Ubuntu 24.04+ | Official |
291
+ | Other Linux distros (gtk3, webkit2gtk-4.1) | Community |
292
+ | Raspberry Pi | Unofficial fork: [kortexa-ai/electrobun (linux-wpe)](https://github.com/kortexa-ai/electrobun/tree/kortexa/linux-wpe) — follow the author [@francip](https://x.com/francip/status/2050149256053539059?s=20) |
293
+
294
+ Windows ARM64 supports JavaScript, Zig, Rust, and Go main processes with the
295
+ system webview or CEF. Odin is currently unavailable on this target.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "2.0.8",
3
+ "version": "2.0.9-beta.16",
4
4
  "description": "The lightweight npm bootstrap for Electrobun and Hutch.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",