Stably Fork Notice: This repository is a fork of electron/electron adding zero-CPU native OS-compositor loaders (macOS CoreAnimation, Windows DirectComposition, and Linux Viz-only GPU offloading) with full DOM z-order support. See STABLY_FORK.md for what this fork adds, measured benchmarks, and usage.
Releases are built on GitHub Actions via .github/workflows/release.yml (32-core GitHub Larger Runners for Linux/Windows, Blacksmith M4 12-vCPU for macOS, and Cloudflare R2 sccache for ~99% warm cache hits).
Via GitHub CLI:
gh workflow run release.yml --repo stablyai/electron \
--ref v45.4.1-native-loaders \
-f release_tag=v45.4.1-stably.2Or via GitHub UI: Actions → Release Patched Electron (Win + Linux + macOS) → Run workflow:
- Set
release_tagtov<electron-version>-stably.<N>(e.g.v45.4.1-stably.2). - Toggle platforms (
win32-x64,linux-x64,darwin-arm64are enabled by default;win32-arm64,linux-arm64, anddarwin-x64cross-compile on the same runners when checked). - Alternatively, pushing a git tag matching
v*-stably.*triggers the workflow automatically.
When all selected targets succeed, the publish job generates a combined SHASUMS256.txt and publishes the zips to the GitHub Release for release_tag.
- Create/rebase a branch off the new upstream Electron tag (e.g.
v46.0.0-native-loaders). - Re-apply the 3 patches in
patches/chromium/(poc_native_ca_spinner.patch,poc_native_dcomp_loaders.patch,poc_native_linux_viz_loaders.patch) and updateSCCACHE_S3_KEY_PREFIXin.github/workflows/release.yml(e.g.electron-v46). - Run the workflow above with
release_tag=v46.0.0-stably.1(first build warms the R2sccache; subsequent patch releases hit ~99% cache).
export ELECTRON_MIRROR="https://github.com/stablyai/electron/releases/download/"
export ELECTRON_CUSTOM_DIR="v45.4.1-stably.1"
export electron_use_remote_checksums=1Runtime detection: process.versions.nativeLoaders === "1". On Windows, pass --enable-features=DelegatedCompositing:mode/full in the main process.
macOS
backdrop-filternote: Avoid placing a native loader inside an ancestor with CSSbackdrop-filter/backdrop-blur. On macOS, Chromium'sCALayerOverlayProcessorflattens blurred subtrees into a single render-pass texture, preventing individual loaderCALayerpromotion. If an overlay needs blur, applybackdrop-filterto a sibling background layer (e.g. a::beforepseudo-element) rather than wrapping the loader.
📝 Available Translations: 🇨🇳 🇧🇷 🇪🇸 🇯🇵 🇷🇺 🇫🇷 🇺🇸 🇩🇪. View these docs in other languages on our Crowdin project.
The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on Node.js and Chromium and is used by the Visual Studio Code and many other apps.
Follow @electronjs on Twitter for important announcements.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to coc@electronjs.org.
To install prebuilt Electron binaries, use npm.
The preferred method is to install Electron as a development dependency in your
app:
npm install electron --save-devFor more installation options and troubleshooting tips, see installation. For info on how to manage Electron versions in your apps, see Electron versioning.
Each Electron release provides binaries for macOS, Windows, and Linux.
- macOS (Ventura and up): Electron provides 64-bit Intel and Apple Silicon / ARM binaries for macOS.
- Windows (Windows 10 and up): Electron provides
x64(amd64) andarm64binaries for Windows. - Linux: Electron provides
x64(amd64) andarm64binaries for Linux. Electron supports major Linux distributions (e.g., Ubuntu, Fedora, Debian) in versions that are still supported by both Chromium and the distro maker (without requiring a paid subscription). The prebuilt binaries are built on Ubuntu.
In general, Electron tries to align with Chromium on platform support.
Use Electron Fiddle
to build, run, and package small Electron experiments, to see code examples for all of Electron's APIs, and
to try out different versions of Electron. It's designed to make the start of your journey with
Electron easier.
- electronjs.org/docs - All of Electron's documentation
- electron/fiddle - A tool to build, run, and package small Electron experiments
Most people use Electron from the command line, but if you require electron inside
your Node app (not your Electron app) it will return the file path to the
binary. Use this to spawn Electron from Node scripts:
const electron = require('electron')
const proc = require('node:child_process')
// will print something similar to /Users/maf/.../Electron
console.log(electron)
// spawn Electron
const child = proc.spawn(electron)See the Advanced Installation Instructions to learn how to use a custom mirror.
We crowdsource translations for our documentation via Crowdin. We currently accept translations for Chinese (Simplified), French, German, Japanese, Portuguese, Russian, and Spanish.
If you are interested in reporting/fixing issues and contributing directly to the code base, please see CONTRIBUTING.md for more information on what we're looking for and how to get started.
Info on reporting bugs, getting help, finding third-party tools and sample apps, and more can be found on the Community page.
When using Electron logos, make sure to follow OpenJS Foundation Trademark Policy.