Nativefier is a CLI tool that easily create a executable desktop application of any website with succinct and minimal configuration. Anybody can use it and it is a lot lighter than typical Electron apps.
Nativefier is based on the electron-package and since Electron apps are platform independent, any Nativefiered app will run on GNU/Linux distros as well as on Windows and Mac Operating Systems.
Talking about the reason why he created Nativefier, the developer wrote on GitHub:
I did this because I was tired of having to ⌘-tab or alt-tab to my browser and then search through the numerous open tabs when I was using Facebook Messenger or Whatsapp Web.
This is a good example of how to create solutions using our computing skills.
Features in Nativefier
- Free and open-source with code available on GitHub.
- Works on GNU/Linux, Windows, and Mac.
- Desktop Notifications.
- OS-specific icons.
- Make single-page web apps (e.g. Telegram and WhatsApp) executable stand-alone apps.
How to Install and Use Nativefier in Linux
Installing Nativefier is as easy as running the following command in terminal.
$ npm install nativefier -g
The developer has done some heavy lifting by setting up a template app containing appropriate event listeners and callbacks in the
This is the directory that is copied to the temporary directory when the
nativefier command is called and then the core methods of electron packager follow. meaning that getting a URL and invoking the
nativefier gets the job done.
So, for example, creating a GitHub or WhatsApp web executable (or any web page) is as easy as typing:
$ nativefier -name GitHub http://github.com $ nativefier web.whatsapp.com
-name flag is the option that tells Nativefier the name to give your executable. There are other options including:
- flash to enable flash in your application explorer.
- version is prints the version of your nativefier install.
- platform automatically determined based on the current OS. Overwrite it by specifyinglinux, windows (or win32), or osx (darwin).
The full list of options and more usage details are on its GitHub page.
- Nativefier doesn’t have any back button by default because it is designed to wrap just single-page apps. That notwithstanding, you can build an executable from any url and hitting
backspaceon your keyboard will take you to the previous page.
- Don’t put spaces when defining the app name with the
-nameoption on Linux because it will cause problems when pinning the app to the launcher.
Do you see how useful Nativefier can be to you? Drop your two cents in the comments section below.