Create a minimal reproduction of an Electron bug by cloning this template and adding only the code that demonstrates the specific problem.
Understand how an Electron app's main process, renderer process, and preload script connect by reading the four template files.
Quickly test whether a specific Electron API behaves as expected without setting up a full Electron Forge project.
For building a real Electron app, use Electron Forge instead, this template is for bug reports only.
This repository is a minimal starter template for Electron apps, maintained by the Electron team itself. Electron is a framework that lets developers build desktop applications using web technologies, meaning the same kind of code used to build websites can be used to make apps that run on Windows, macOS, and Linux. The primary purpose of this template is to help developers create a minimal reproduction when reporting a bug. A minimal reproduction means stripping an app down to only the code needed to show a specific problem, so that the people investigating the bug can focus on exactly the issue at hand without unrelated code in the way. The repository was previously named electron-quick-start and has been renamed to make this purpose clearer. The template contains four files. The package.json file describes the app and its dependencies. The main.js file starts the application and creates the desktop window, which is called the main process. The index.html file is the web page displayed inside that window, called the renderer process. The preload.js file runs a script before the page loads and can bridge the two processes. To run it, you clone the repository, install its dependencies with npm, and then run npm start. Git and Node.js are the only prerequisites. If you are looking to start a new Electron app from scratch rather than reproduce a bug, the README points to Electron Forge, which is the recommended tool for bootstrapping full projects.
← electron on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.