LinuxCommandLibrary

nativefier

wraps websites as desktop applications using Electron

TLDR

Create app from website

$ nativefier "[https://example.com]"
copy
Create with custom name
$ nativefier --name "[App Name]" "[https://example.com]"
copy
Create with custom icon
$ nativefier --icon [icon.png] "[https://example.com]"
copy
Create in specific directory
$ nativefier "[https://example.com]" [/output/dir]
copy
Create with tray icon
$ nativefier --tray "[https://example.com]"
copy
Create maximized window
$ nativefier --maximize "[https://example.com]"
copy
Create single instance app
$ nativefier --single-instance "[https://example.com]"
copy
Create with injected CSS
$ nativefier --inject [style.css] "[https://example.com]"
copy

SYNOPSIS

nativefier [--name name] [--icon path] [--tray] [options] url [outputdir_]

DESCRIPTION

nativefier wraps websites as desktop applications using Electron. The result is a standalone app that behaves like a native application.
Applications get their own window, dock/taskbar icon, and can run independently of browsers. This is useful for web apps that benefit from dedicated window management.
Custom icons, names, and window behavior make apps feel native. Tray mode minimizes to system tray. Single instance prevents multiple copies.
CSS and JavaScript injection modifies the wrapped site. This can customize appearance, add features, or remove unwanted elements.
Internal URL patterns control which links open in the app versus the default browser. This keeps the app focused on its core functionality.
Platform targeting creates apps for Windows, macOS, or Linux from any development machine.

PARAMETERS

--name NAME

Application name.
--icon PATH
Custom icon file.
-p, --platform OS
Target platform (mac, windows, linux).
-a, --arch ARCH
Target architecture.
--tray
Add system tray icon.
--maximize
Start maximized.
--single-instance
Only one instance allowed.
--inject FILE
Inject CSS or JavaScript.
--user-agent STRING
Custom user agent.
--internal-urls REGEX
URLs to open internally.
--file-download-options JSON
Download behavior settings.
--disable-context-menu
Disable right-click menu.
--flash
Enable Flash plugin.
--widevine
Enable Widevine DRM.

CAVEATS

Electron apps are large (100MB+). Security depends on wrapped site. Flash support deprecated. Some sites detect and block embedding. Project is in maintenance mode.

HISTORY

nativefier was created by Jia Hao Gao around 2015 to easily create desktop apps from web pages. It became popular for wrapping services like Slack, WhatsApp Web, and internal tools. The project is now in maintenance mode with limited updates.

SEE ALSO

electron(1), pwa(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community