npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sitedock

v0.1.2

Published

Turn any website into a cross-platform desktop app (Mac/Windows/Linux)

Downloads

36

Readme

sitedock

Turn any website into a cross-platform desktop app (Mac / Windows / Linux) — with one command.

sitedock wraps your URL in a minimal Electron app, installs everything it needs, and can package it into an installer (.dmg, .exe, .AppImage) using electron-builder.

Requirements

  • Node.js >= 18
  • npm

Installation

npm install -g sitedock

Or run it without installing:

npx sitedock "https://web.whatsapp.com"

Usage

Basic example

sitedock "https://web.whatsapp.com"

That's it — this creates a ready-to-run app (name derived from the URL), installs its dependencies, and tells you how to launch it:

cd whatsapp && npm start

Advanced example with custom settings

sitedock --name "MyApp" --icon ./icon.png --width 1280 --height 800 "https://myapp.com"

Build a distributable installer

sitedock "https://myapp.com" --package
# → .dmg / .exe / .AppImage written to myapp/dist/

CLI options

| Option | Description | Default | |---|---|---| | <url> | Website URL to wrap (must be http: or https:) | required | | -n, --name <name> | App name (window title, product name) | derived from URL | | -o, --out <dir> | Output directory | current directory | | -p, --platform <target> | Build target: mac, win, linux, or current | current | | --icon <path> | App icon — 512x512+ PNG recommended | Electron default | | --width <px> | Window width (positive integer) | 1200 | | --height <px> | Window height (positive integer) | 800 | | --package | Build a distributable installer | off | | --no-install | Skip npm install (scaffold only) | install on | | --force | Overwrite the output directory if it already exists | off | | -V, --version | Print version | | | -h, --help | Print help | |

What gets generated

<out>/<app-slug>/
├── main.js         # Electron main process (loads your URL)
├── package.json    # electron + electron-builder config
├── build/icon.png  # your icon (only with --icon)
├── node_modules/   # installed automatically (skip with --no-install)
└── dist/           # installers (only with --package)

The app name is slugified for the directory name and app id — e.g. --name "My Cool App" produces my-cool-app and com.sitedock.my-cool-app.

Programmatic API

const { build } = require('sitedock');

const { appDir, name, artifact } = await build({
  url: 'https://example.com',
  name: 'Example',       // optional, derived from URL if omitted
  outDir: '/path/to/output',
  platform: 'current',   // 'mac' | 'win' | 'linux' | 'current'
  width: 1200,
  height: 800,
  icon: '/path/to/icon.png', // optional
  install: true,         // run npm install after scaffolding
  packageApp: false,     // build installer with electron-builder
  force: false,          // overwrite non-empty output dir
});

Throws on invalid input (non-http(s) URL, empty slug, non-positive dimensions, missing icon file, non-empty output directory without force).

Security defaults in the generated app

  • contextIsolation: true and sandbox: true — the loaded site has no access to Node.js
  • Only http:/https: URLs can be wrapped
  • New windows (target="_blank", window.open) open in the system browser
  • In-window navigation is pinned to the site's origin; external links open in the system browser

Platform notes

  • Cross-platform packaging has limits: building Windows installers on Mac/Linux (and vice versa) may require extra tooling. See the electron-builder multi-platform docs.
  • On Windows, npm/npx are invoked through the shell automatically.

License

MIT