

then (createWindow)Īnd index.html: Hello World! Hello World! We are using node document. įirst, create a new folder on your filesystem and into it run: npm init -y It’s open source, and the code is available at. The app is pretty cool and it lets you experiment with several features of Electron.

You can download the Electron API Demos app, which is an official sample desktop app built using Electron. With Electron you can create apps and publish them on the Windows and Mac App Store. menu bar apps, which don’t have any dock iconĪ good collection of Electron apps is available on the official site.regular apps, with a dock icon, and a window.You can create lots of different kind of apps, including: Which kind of apps you can create using Electron It does not provide any kind of GUI elements, but rather lets you create UIs using HTML, CSS and JavaScript.Įlectron aims to be fast, small in size, and as slim as possible, yet providing the core features that all apps can rely upon. It’s a sort of Node.js for the desktop, if you wish. You have both access to a canvas powered by Chromium, which runs the V8 JavaScript engine, and use any Node.js package, and run your own Node.js code. A quick look into the Electron internalsĮlectron is basically bundling the Chromium rendering library and Node.js (Chromium the open source project made by Google, on which they build the Chrome browser). Before, there was no tool that could let you run the same app everywhere. Mind you: it was possible to write JavaScript-based desktop applications even before Electron, with other tools, but Electron made it much more mainstream.Īnd in particular Electron allowed to create cross-platform desktop apps. It’s very popular and hugely successful applications use it, including VS Code, Slack, Discord and many, many more.Įlectron is a huge project that revolutionized native desktop app development, by making it viable to be a JavaScript-based process. Learn the basics of Electron, the framework built by GitHub that powers a lot of innovative and very popular cross-platform applicationsĮlectron is an Open Source and free tool for building cross-platform desktop apps with JS, HTML and CSS, built by GitHub
