Build cross-platform desktop apps with JavaScript, HTML, and CSS ⚛️ https://www.electronjs.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
electron-roller[bot] fd5e6fbc14
chore: bump chromium to 116.0.5817.0 (main) (#38465)
12 hours ago
.circleci build: actually use m1.large for publish job (#38706) 1 day ago
.devcontainer build: fix Codespaces prebuilds with missing comma (#38052) 2 months ago
.github ci: remove release dependencies workflow (#38646) 2 days ago
.husky chore: update husky to v8.0.1 (#34343) 1 year ago
build build: use m1 hosts to build apple silicon binaries (#38258) 2 days ago
buildflags build: remove enable_run_as_node build flag (#38413) 2 days ago
chromium_src chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
default_app fix: override app's desktop name and v8 flags in default-app (#35997) 8 months ago
docs fix: WCO transparent background (#38693) 18 hours ago
lib fix: `webContents.print` parameter validation error (#38614) 15 hours ago
npm chore: update node types version (#36924) 5 months ago
patches chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
script build: upload node checksums before validating them (#38710) 1 day ago
shell chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
spec chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
spec-chromium chore: bump chromium to 109.0.5382.0 (main) (#36057) 8 months ago
typings fix: `webContents.print` parameter validation error (#38614) 15 hours ago
.clang-format Add clang-format config file. 7 years ago
.clang-tidy chore: fix clang-tidy warnings (#38079) 1 month ago
.dockerignore build: remove unused install-build-deps (#26891) 3 years ago
.env.example build: do not require vsts token for releases (#28643) 2 years ago
.eslintrc.json chore: bump chromium to 102.0.4961.0 (main) (#33091) 1 year ago
.git-blame-ignore-revs chore: add ignore revs file for GH blame UI (#33171) 1 year ago
.gitattributes build: force LF checkout of more files (#38194) 1 month ago
.gitignore test: fix some broken globs for spec-main (#35439) 10 months ago
.markdownlint.autofix.json chore: use markdownlint to lint the docs (#26792) 2 years ago
.markdownlint.json chore: migrate to @electron/lint-roller for Markdown linting (#38191) 1 month ago
.nvmrc build: update `.nvmrc` Node.js version from 14 to 16 (#35676) 9 months ago
.remarkrc add remark lint to ensure fenced codeblocks are formatted properly. 6 years ago
BUILD.gn chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
CODE_OF_CONDUCT.md docs: use asterisks for unordered lists (#26552) 3 years ago
CONTRIBUTING.md chore: enforce consistent Markdown style for strong and emphasis (#37787) 2 months ago
DEPS chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
LICENSE chore: update copyright headers (#27697) 2 years ago
README.md chore: update README.md (#37002) 5 months ago
SECURITY.md docs: update SECURITY.md with new GHSA reporting feature (#36367) 7 months ago
appveyor-bake.yml chore: bump chromium to 113.0.5636.0 (main) (#37130) 3 months ago
appveyor-woa.yml build: fix doc-only early exit on Appveyor (#38547) 1 week ago
appveyor.yml build: fix doc-only early exit on Appveyor (#38547) 1 week ago
electron_paks.gni chore: bump chromium to 116.0.5817.0 (main) (#38465) 12 hours ago
electron_resources.grd chore: use //chrome resources directly (#33626) 1 year ago
filenames.auto.gni refactor: split clipboard module implementation for browser / renderer (#38429) 2 weeks ago
filenames.gni build: remove enable_run_as_node build flag (#38413) 2 days ago
filenames.hunspell.gni chore: bump chromium to 102.0.4961.0 (main) (#33091) 1 year ago
filenames.libcxx.gni chore: bump chromium to 115.0.5760.0 (main) (#38033) 1 month ago
filenames.libcxxabi.gni chore: bump chromium to 102.0.4961.0 (main) (#33091) 1 year ago
package.json chore: type check JS in docs (#38423) 5 days ago
tsconfig.default_app.json chore: fix ts config to not complain about extraneous files (#16790) 4 years ago
tsconfig.electron.json chore: fix ts config to not complain about extraneous files (#16790) 4 years ago
tsconfig.json chore: update to latest TypeScript, which has built-in WeakRef declarations (#27425) 2 years ago
tsconfig.script.json build: auto-push patch file changes (#26235) 3 years ago
tsconfig.spec.json test: drop now-empty remote runner (#35343) 10 months ago
yarn.lock chore: type check JS in docs (#38423) 5 days ago

README.md

Electron Logo

CircleCI Build Status AppVeyor Build Status Electron Discord Invite

📝 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 Atom editor 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.

Installation

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-dev

For more installation options and troubleshooting tips, see installation. For info on how to manage Electron versions in your apps, see Electron versioning.

Platform support

Each Electron release provides binaries for macOS, Windows, and Linux.

  • macOS (High Sierra and up): Electron provides 64-bit Intel and ARM binaries for macOS. Apple Silicon support was added in Electron 11.
  • Windows (Windows 10 and up): Electron provides ia32 (x86), x64 (amd64), and arm64 binaries for Windows. Windows on ARM support was added in Electron 5.0.8. Support for Windows 7, 8 and 8.1 was removed in Electron 23, in line with Chromium's Windows deprecation policy.
  • Linux: The prebuilt binaries of Electron are built on Ubuntu 20.04. They have also been verified to work on:
    • Ubuntu 14.04 and newer
    • Fedora 24 and newer
    • Debian 8 and newer

Quick start & Electron Fiddle

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.

Alternatively, clone and run the electron/electron-quick-start repository to see a minimal Electron app in action:

git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install
npm start

Resources for learning Electron

Programmatic usage

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('child_process')

// will print something similar to /Users/maf/.../Electron
console.log(electron)

// spawn Electron
const child = proc.spawn(electron)

Mirrors

See the Advanced Installation Instructions to learn how to use a custom mirror.

Documentation translations

We crowdsource translations for our documentation via Crowdin. We currently accept translations for Chinese (Simplified), French, German, Japanese, Portuguese, Russian, and Spanish.

Contributing

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.

Community

Info on reporting bugs, getting help, finding third-party tools and sample apps, and more can be found on the Community page.

License

MIT

When using Electron logos, make sure to follow OpenJS Foundation Trademark Policy.