Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nativefier

> 编程语言
Open source

Make any web page a desktop application

35.3K stars0 likes1 views
WebsiteGitHub

About

Make any web page a desktop application

Note: Nativefier is unmaintained, please see https://github.com/nativefier/nativefier/issues/1577.

Nativefier

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

bash
nativefier 'web.whatsapp.com'

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.

Issues· 258 open

View all issuesOpen on GitHub
  • #1535

    Cannot run nativefier

    bugUpdated Sep 28, 2023
  • #177

    Support basic ad blocking (maybe through @cliqz/adblocker-electron, or another lib, or homebrew)

    feature-requesthelp-welcomeUpdated Sep 28, 2023
  • #635

    Remembers fullscreen on wrong monitor.

    bugUpdated Sep 22, 2023
  • #422

    Can't close window if website cancels beforeunload event

    bugUpdated Sep 20, 2023
  • #1575

    Remember password functionality

    feature-requestUpdated Sep 14, 2023
  • #1573

    How to display a print preview?

    questionUpdated Sep 12, 2023
  • #1572

    Js Alert window Autofocus to menubar

    bugUpdated Sep 11, 2023
  • #1571

    How to use "--file-download-options" with "onCompleted"

    questionUpdated Sep 8, 2023
  • #1395

    Linux: How to approach X11/Wayland platform differences ( particularly #1262 )

    feature-requestUpdated Sep 6, 2023
  • #1562

    How is this different from doing Chrome > More Tools > Create Shortcut > Open as Window ?

    questionUpdated Sep 4, 2023

> Tags

TypeScriptdesktop-applicationelectronlinuxmacos

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言