You want to make a native-looking wrapper for WhatsApp Web (or any web page).
Nativefier is a command-line tool to easily create a “desktop app” for any web site
with minimal fuss. Apps are wrapped by Electron
(which uses Chromium under the hood) in an OS executable (
usable on Windows, macOS and Linux.
I built this because I grew tired of having to Alt-Tab to my browser and then search through numerous open tabs when using Messenger or Whatsapp Web (HN thread). Nativefier features:
- Automatically retrieval of app icon / name
- Injection of custom JS & CSS
- Many more, see the API docs or
Install Nativefier globally with
npm install -g nativefier . Requirements:
- macOS 10.9+ / Windows / Linux
- Node.js ≥ 12.9 and npm ≥ 6.9
- ImageMagick or GraphicsMagick to convert icons.
gmare in your
- Wine to build Windows apps from non-Windows platforms.
wineis in your
To create a desktop app for medium.com, simply
Nativefier will try to determine the app name, and well as lots of other options.
If desired, these options can be overwritten. For example, to override the name,
nativefier --name 'My Medium App' 'medium.com'
Read the API docs or run
to learn about command-line flags usable to configure your app.
To have high-quality icons used by default for an app/domain, please contribute to the icon repository.
See CATALOG.md for build commands & workarounds contributed by the community.
Nativefier is also usable from Docker:
- Pull the image from Docker Hub:
docker pull nativefier/nativefier
- ... or build it yourself:
docker build -t local/nativefier .(in this case, replace
nativefier/in the below examples with
nativefier --help will be executed.
To build e.g. a Gmail app into
docker run --rm -v ~/nativefier-apps:/target/ nativefier/nativefier https://mail.google.com/ /target/
You can pass Nativefier flags, and mount volumes to pass local files. E.g. to use an icon,
docker run --rm -v ~/my-icons-folder/:/src -v $TARGET-PATH:/target nativefier/nativefier --icon /src/icon.png --name whatsApp -p linux -a x64 https://web.whatsapp.com/ /target/
Nativefier is also available in various user-contributed software repos. These are not managed by Nativefier maintainers; use at your own risk. If using them, for your security, please inspect the build script.
Videos won't play
Settings cached between app rebuilds
This can occur because app cache lives separate from the app.
Try delete your app's cache, which is found at
<your_app_name_lower_case>-nativefier-<random_id> in your OS's "App Data" directory (for Linux:
~/.config , for MacOS:
~/Library/Application Support/ , for Windows: