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

airun

v2.0.0

Published

airun — instant live-reload dev server. Just: airun index.html

Readme

⚡ airun

Instant live-reload dev server for static HTML/CSS/JS projects.
No config. No subcommands. Just point it at a file.

airun index.html

Install

npm install -g airun

Or without installing:

npx airun index.html

Usage

airun <entry-file> [options]

Examples

# Basic usage
airun index.html
airun index.html --port 8080

# Advanced features
airun index.html --spa --https --compress
airun index.html --proxy "/api/*:http://localhost:3001"
airun index.html --auth "user:pass" --cors
airun index.html --build "npm run build" --watch-build

Options

| Flag | Default | Description | |---|---|---| | --port <port> | 3000 | Port or port range (e.g., 3000-3010) | | --host <host> | 0.0.0.0 | Host to bind to | | --no-open | (opens by default) | Skip browser auto-open | | --no-reload | (reload on by default) | Disable live-reload | | --spa | | Enable SPA mode (serve index.html for all routes) | | --https | | Enable HTTPS with self-signed certificate | | --cert <cert> | | Path to SSL certificate file | | --key <key> | | Path to SSL private key file | | --compress | | Enable gzip compression | | --cors | | Enable CORS headers | | -H, --header <header> | | Add custom header (e.g., "X-Custom: value") | | --auth <user:pass> | | Enable basic authentication | | --proxy <target> | | Proxy API requests (e.g., /api/*:http://localhost:3001) | | --list | | Enable directory listing | | --inject <file> | | Inject custom script file | | --build <command> | | Run build command before serving | | --watch-build | | Rebuild on file changes | | --include <patterns> | **/* | File patterns to watch (comma-separated) | | --exclude <patterns> | node_modules/**,.git/** | File patterns to ignore (comma-separated) | | --delay <ms> | 120 | Delay before reload (ms) | | --verbose | | Enable verbose logging | | --config <file> | | Load configuration from JSON file |


Features

  • Instant live reload via WebSockets — no polling
  • 📁 Serves any static directory — HTML, CSS, JS, images, fonts
  • 🌐 LAN access — network URL for testing on phones/tablets
  • 🔄 Auto port fallback — switches if port is busy
  • 🎨 Colored terminal output
  • 🛑 Graceful shutdown on Ctrl+C

Advanced Features

  • 🖥️ SPA Support — serve index.html for all routes (React/Vue/Angular)
  • 🔒 HTTPS — self-signed certificates or custom certs
  • 🗜️ Compression — automatic gzip for text files
  • 🌐 CORS — cross-origin resource sharing headers
  • 🔐 Basic Auth — simple authentication
  • 🔀 API Proxy — proxy requests to backend servers
  • 📂 Directory Listing — browse directories when no index.html
  • 💉 Script Injection — inject custom JavaScript files
  • 🔨 Build Integration — run build commands automatically
  • 👀 Custom Watching — include/exclude specific file patterns
  • ⚙️ Configuration Files — JSON config for complex setups

Configuration File

Create an .airunrc.json file in your project root:

{
  "spa": true,
  "https": true,
  "compress": true,
  "cors": true,
  "headers": ["X-Custom: value"],
  "proxy": "/api/*:http://localhost:3001",
  "inject": ["analytics.js"],
  "build": "npm run build",
  "watchBuild": true,
  "include": ["src/**/*", "public/**/*"],
  "exclude": ["node_modules/**", ".git/**", "dist/**"]
}

Examples

React Development

airun index.html --spa --port 3000-3010

Full-Stack with API Proxy

airun index.html --proxy "/api/*:http://localhost:3001" --cors

HTTPS Development

airun index.html --https --cert cert.pem --key key.pem

Build Integration

airun dist/index.html --build "npm run build" --watch-build

Custom Headers & Auth

airun index.html --auth "admin:secret" --header "X-API-Key: abc123"

Requirements

Node.js >= 18


License

MIT © xklaim


Features

  • Instant live reload via WebSockets — no polling
  • 📁 Serves any static directory — HTML, CSS, JS, images, fonts
  • 🌐 LAN access — network URL for testing on phones/tablets
  • 🔄 Auto port fallback — switches if 3000 is busy
  • 🎨 Colored terminal output
  • 🛑 Graceful shutdown on Ctrl+C

Requirements

Node.js >= 18


License

MIT © xklaim