nativefier /nativefier
Make any web page a desktop application
★ 35,206⑂ 2,222👁 4⑃ 332● 1,237▤ 99◈ 0
35,206
stars
+-2+-13+-32
2,222
forks
4
watchers
332
prs
1,237
issues
99
releases
0
discussions
README
Note: Nativefier is unmaintained, please see https://github.com/nativefier/nativefier/issues/1577.
Nativefier
!Example of Nativefier app in the macOS dock
You want to make a native-looking wrapper for WhatsApp Web (or any web page).
bash
nativefier 'web.whatsapp.com'
!Walkthrough animation
You're done.
Introduction
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 (.app, .exe, etc)
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 nativefier --help
Installation
Install Nativefier globally with npm install -g nativefier . Requirements:
- macOS 10.13+ / Windows / Linux
- Node.js ≥ 16.9 and npm ≥ 7.10
Optional dependencies:
- ImageMagick or GraphicsMagick to convert icons.
Be sure convert + identify or gm are in your $PATH.
- Wine to build Windows apps from non-Windows platforms.
Be sure wine is in your $PATH.
Or install with Docker (click to expand)
- 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 local/)
By default, nativefier --help will be executed.
To build e.g. a Gmail app into ~/nativefier-apps,
bash
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,
bash
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/
Or install with Snap & AUR (click to expand)
These repos are not managed by Nativefier maintainers; use at your own risk.
If using them, for your security, please inspect the build script.
- Snap
- AUR
Usage
To create an app for medium.com, simply nativefier 'medium.com'
Nativefier will try to determine the app name, and well as other options that you
can override. For example, to override the name, nativefier --name 'My Medium App' 'medium.com'
Read the API docs or run nativefier --help
to learn about command-line flags and configure your app.
Troubleshooting
See CATALOG.md for site-specific ideas & workarounds contributed by the community.
If this doesn’t help, go look at our issue tracker.
Development
Help welcome on bugs and
feature requests!
Docs: Developer / build / hacking, API / flags,
Changelog.
License: MIT.Top issues
#204[Linux] Add nativefier apps to menu / create FreeDesktop `.desktop` files46 comments · 2016-05-17#652Browser unsupported for push notifications on mobile.twitter.com28 comments · 2018-07-10#207Support packaging Chrome extensions26 comments · 2016-05-23#239Windows icons aren't working25 comments · 2016-08-14#1130[RFC] nativefier-catalog and interactivity23 comments · 2021-03-11#962Notifications/Badge counter Linux23 comments · 2020-04-27#177Support basic ad blocking (maybe through @cliqz/adblocker-electron, or another lib, or homebrew)23 comments · 2016-04-03#29Support 'Find in page' search feature and CmdOrCtrl+F shortcut23 comments · 2016-01-21
Latest release
Nativefier v52.0.0 v52.0.0 2023-08-25What's Changed [BREAKING] Update to Electron 25 by @TheCleric in https://github.com/nativefier/nativefier/pull/1559 Update to Electron 25.7 by @TheCleric in https://github.com/nativefier/nativefier/pull/1566 Full Changelog: https://github.com/nativefier/nativefier/compare/v51.0.1...v52.0.0