You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Adam Weeden 443d6cacdf Update changelog for `v50.1.1` 2 months ago
.github Fix directory and add clarification for new smoke test 4 3 months ago
app Fix shrinkwrap versions back to lockfileVersion 1 (node 12) 2 months ago
icon-scripts Fix icon conversion scripts broken on recent macOS (fix #1277) 2 years ago
shared macOS: universal architecture app support (fix #1384, PR #1386) 1 year ago
src Add some type hinting post-package update for Axios 3 months ago
.dockerignore Docker: slim down image size, by removing temp/cache files (PR #1128) 2 years ago
.editorconfig Integrate prettier 5 years ago
.env Add playwright integration testing to the app (PR #1397) 1 year ago
.gitignore Fix broken tests (#1523) 3 months ago
.npmignore Actually actually (TM) include lockfile in npm artifacts 2 years ago
.npmrc Actually actually (TM) include lockfile in npm artifacts 2 years ago
API.md Fix typo "electon" -> "electron" (#1492) 3 months ago
CATALOG.md CATALOG.md: Microsoft Teams with css inject (PR #1469) 8 months ago
CHANGELOG.md Update changelog for `v50.1.1` 2 months ago
Dockerfile Docker: actually let's use *lts*-alpine, for more futureproof-ness 11 months ago
HACKING.md HACKING / major-upgrading Electron: link to blog 11 months ago
LICENSE.md Split docs into multiple files 7 years ago
README.md README: shorter 1 year ago
base-eslintrc.js Make app strict TypeScript + linting (and add a shared project) (#1231) 2 years ago
npm-shrinkwrap.json Fix shrinkwrap versions back to lockfileVersion 1 (node 12) 2 months ago
package.json Update changelog for `v50.1.1` 2 months ago
tsconfig-base.json Make app strict TypeScript + linting (and add a shared project) (#1231) 2 years ago

README.md

Nativefier

Example of Nativefier app in the macOS dock

You want to make a native-looking wrapper for WhatsApp Web (or any web page).

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.10+ / Windows / Linux
  • Node.js ≥ 12.9 and npm ≥ 6.9

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,

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/
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.

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 doesnt help, go look at our issue tracker.

Development

Help welcome on bugs and feature requests!

Docs: Developer / build / hacking, API / flags, Changelog.

License: MIT.