Need advice about which tool to choose?Ask the StackShare community!
Electron vs hapi: What are the differences?
What is Electron? Build cross platform desktop apps with web technologies. Formerly known as Atom Shell, made by GitHub. With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker. The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium and is used in the Atom editor.
What is hapi? Server Framework for Node.js. hapi is a simple to use configuration-centric framework with built-in support for input validation, caching, authentication, and other essential facilities for building web applications and services.
Electron belongs to "Cross-Platform Desktop Development" category of the tech stack, while hapi can be primarily classified under "Microframeworks (Backend)".
"Easy to make rich cross platform desktop applications" is the primary reason why developers consider Electron over the competitors, whereas "Makes me Hapi making REST APIs" was stated as the key factor in picking hapi.
Electron and hapi are both open source tools. Electron with 74.9K GitHub stars and 9.81K forks on GitHub appears to be more popular than hapi with 11.3K GitHub stars and 1.16K GitHub forks.
Slack, Intuit, and InVisionApp are some of the popular companies that use Electron, whereas hapi is used by Hazeorid, Beam, and Kanteron Systems. Electron has a broader approval, being mentioned in 221 company stacks & 374 developers stacks; compared to hapi, which is listed in 58 company stacks and 34 developer stacks.
Pros of Electron
- Easy to make rich cross platform desktop applications69
- Open source53
- Great looking apps such as Slack and Visual Studio Code14
- Because it's cross platform8
- Use Node.js in the Main Process4
Pros of hapi
- Makes me Hapi making REST APIs27
- Simpler than other REST libraries14
- Configuration14
- Quality Driven Ecosystem13
- Modularization13
- Easy testability5
- Better validation1
- Restify0
Sign up to add or upvote prosMake informed product decisions
Cons of Electron
- Uses a lot of memory19
- User experience never as good as a native app8
- No proper documentation4
- Does not native4
- Each app needs to install a new chromium + nodejs1
- Wrong reference for dom inspection1