Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Electron

11.4K
10K
+ 1
148
hapi

432
455
+ 1
87
Add tool

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.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Electron
Pros of hapi
  • 69
    Easy to make rich cross platform desktop applications
  • 53
    Open source
  • 14
    Great looking apps such as Slack and Visual Studio Code
  • 8
    Because it's cross platform
  • 4
    Use Node.js in the Main Process
  • 27
    Makes me Hapi making REST APIs
  • 14
    Simpler than other REST libraries
  • 14
    Configuration
  • 13
    Quality Driven Ecosystem
  • 13
    Modularization
  • 5
    Easy testability
  • 1
    Better validation
  • 0
    Restify

Sign up to add or upvote prosMake informed product decisions

Cons of Electron
Cons of hapi
  • 19
    Uses a lot of memory
  • 8
    User experience never as good as a native app
  • 4
    No proper documentation
  • 4
    Does not native
  • 1
    Each app needs to install a new chromium + nodejs
  • 1
    Wrong reference for dom inspection
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    209
    15.4K
    61
    4
    409

    What is Electron?

    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?

    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.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Electron?
    What companies use hapi?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Electron?
    What tools integrate with hapi?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to Electron and hapi?
    Photon
    The fastest way to build beautiful Electron apps using simple HTML and CSS. Underneath it all is Electron. Originally built for GitHub's Atom text editor, Electron is the easiest way to build cross-platform desktop applications.
    React Native Desktop
    Build OS X desktop apps using React Native.
    React Native
    React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    See all alternatives