openskills.info
Electron Fundamentals logoCourse Preview

Electron Fundamentals

Electron is a framework for building desktop applications with HTML, CSS, and JavaScript. It packages Chromium for the interface, Node.js for privileged work, and native desktop APIs behind a multi-process application model.

itMobile and client application development

Electron Fundamentals

Electron is a framework for building desktop applications with web technologies. An Electron application ships a Chromium browser engine, a Node.js runtime, and Electron APIs that connect web content to desktop capabilities. One JavaScript and HTML codebase can target Windows, macOS, and Linux, while platform-specific code handles differences such as menus, installers, signing, and operating-system integration.

That combination is Electron's central tradeoff. A team can reuse web skills and frontend code, and every supported desktop receives a consistent browser engine. The application also carries the cost of that embedded runtime. Downloads, memory use, startup work, native-module compatibility, and framework updates all need active management.

The process architecture

Electron follows Chromium's multi-process architecture. The main process is the application's privileged coordinator. It starts from the entry point named by package.json, manages the application lifecycle, creates windows, and calls Electron APIs for native desktop features. There is one main process per application.

Each BrowserWindow loads its interface in a separate renderer process. A renderer behaves like a web page: it builds the document, runs client-side JavaScript, and handles user interaction. A renderer crash can take down that window without necessarily ending the main process or other windows.

A preload script runs before a renderer's page code. It is the controlled bridge between privileged Electron capabilities and the web interface. With context isolation enabled, the preload script and the loaded page run in separate JavaScript contexts. The preload exposes a narrow API through contextBridge instead of giving the renderer unrestricted Node.js access.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources