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

webmake-cli

v1.0.0

Published

WebMake Studio - Local dev server, build toolkit and deploy CLI

Readme

WebMake CLI

WebMake CLI is a small local toolkit for static web projects. It provides a dev server with live reload, a simple production build command, and a project initializer.

Installation

npm install
npm link

After linking, the webmake command is available from your terminal.

Commands

webmake dev --dir=./public --watch=. --port=3000
webmake build --dir=./public --out=./dist
webmake init --name=my-site

Options

  • --dir=./public: directory to serve or build.
  • --out=./dist: build output directory.
  • --port=3000: dev server port.
  • --host=127.0.0.1: dev server host.
  • --spa: serve index.html for unknown routes.
  • --open: open the dev server in the default browser.
  • --watch=.: directory watched recursively for live reload.
  • --poll: use polling when native file events miss changes.
  • --config=webmake.config.js: load defaults from a config file.

Friendly Errors

WebMake CLI validates user input before running commands. It prints readable messages for common problems like unknown options, missing config files, invalid ports, missing folders, invalid project names, busy ports, and non-empty init targets.

Cleaning Broken Build Outputs

If an older build created nested output folders like dist/dist/dist, use the Windows cleanup helper:

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\clean-build-output.ps1 -Path "F:\path\to\your\site\dist"

The build command now excludes its own output folder, even when --out is inside --dir.

Netlify-style Routing

The dev server supports pretty URLs and basic Netlify redirects:

  • /about serves /about.html when it exists.
  • /docs serves /docs/index.html when it exists.
  • _redirects rules like /login /auth/login.html 200 are loaded.
  • netlify.toml [[redirects]] blocks with from, to, and status are loaded.
  • A catch-all rule like /* /public/404.html 404 serves the custom 404 page.

Example _redirects:

/login /auth/login.html 200
/register /auth/register.html 200
/reset-password /auth/reset-password.html 200
/auth/callback /auth/callback.html 200
/account /account/index.html 200
/logout /public/logout.html 200
/* /public/404.html 404

Example netlify.toml:

[[redirects]]
  from = "/login"
  to = "/auth/login.html"
  status = 200

[[redirects]]
  from = "/*"
  to = "/public/404.html"
  status = 404

Config File

Create webmake.config.js at the project root:

module.exports = {
  dir: './public',
  out: './dist',
  port: 3000,
  host: '127.0.0.1',
  watch: '.',
  poll: false,
  spa: false,
};