electron
Installation
SKILL.md
Electron
Electron bundles Chromium and Node.js into a desktop app. It is the industry standard (VS Code, Slack, Discord) despite the file size.
When to Use
- Cross-Platform Desktop Applications: Building native macOS, Windows, and Linux apps using web technologies (HTML, CSS, JS).
- Desktop Software Requiring Deep OS Integration: System tray menus, native notifications, file system access, and global hotkeys.
- High-Performance Offline Desktop Tools: IDEs (VS Code), communication tools (Slack), and media editors.
- Enterprise Desktop Packaging: Code-signing, auto-updating, and multi-architecture builds (x64, arm64).
Quick Start
// main.js
const { app, BrowserWindow } = require("electron");
const path = require("path");