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

devwarp

v0.1.0

Published

One-command dev server launcher that maps your git branch to <branch>.localhost with a built-in reverse proxy (no permanent daemon).

Readme

devwarp

One-command dev launcher that maps your current git branch to <branch>.localhost without thinking about ports. No permanent daemon required.

Features

  • Auto-picks a free port, injects it into your dev command, and registers <branch>.localhost → port.
  • On-demand reverse proxy bound to :80 (starts when needed, stops when last route is removed).
  • Works with any dev command (Vite/Next/Expo/Wrangler, etc.).
  • Routes stored at ~/.devwarp/routes.json; no repo pollution.

Install / Run

npx devwarp <your dev command>

Examples:

  • npx devwarp pnpm run dev
  • npx devwarp npm run dev -- --host 0.0.0.0
  • Expo (web): npx devwarp pnpm run web -- --web → uses --web-port automatically

Then open http://<branch>.localhost in your browser. DevWarp prints the exact URL; if :80 is unavailable it falls back to :8080 and shows http://<branch>.localhost:8080.

Demo (Hono + Wrangler)

This repo ships with three small demo apps under demo/feature-* (シンプルなToDo UI付き Hono アプリ)。

  1. cd demo/feature-a && npm install
  2. npm run dev
  3. Open the URL printed by DevWarp (e.g., http://main.localhost or :8080 if :80 is blocked).

Use demo/run-all.sh to start all demos in parallel; demo/run-all.sh stop stops them and the proxy.

How it works

  1. Resolve git branch (git rev-parse --abbrev-ref HEAD) and slugify → <branch>.localhost.
  2. Pick a free local port.
  3. Spawn your dev command with PORT/DEVWARP_PORT and --port <picked> injected (if not already present).
  4. Register the mapping in ~/.devwarp/routes.json.
  5. Ensure a reverse proxy is running on :80; if not, start devwarp --proxy (tries sudo first, then plain node if :80 is allowed).
  6. On exit, remove your route; if no routes remain and we started the proxy, stop it.

Options

  • --proxy-port <port>: run the proxy on a custom port (default 80). Helpful if sudo不可な環境で :80 が塞がっている場合。
  • --gc: garbage-collect stale routes (removes entries whose ports are not listening).
  • --stop-proxy: stop the running proxy (uses pidfile at ~/.devwarp/proxy.pid).

Expo note

  • Metro uses --port、Expo Webは --web-port を要求するため、自動判別して適切なポートフラグを挿入します(--web または --web-only が args にある場合は --web-port を追加)。

Permissions

  • Binding to :80 may require sudo on your OS. devwarp tries sudo -n first, then plain node; if neither works, it warns and you can start the proxy manually with elevated privileges: sudo devwarp --proxy.

Cleanup

  • Stop your dev command normally (Ctrl+C). Routes are removed automatically.
  • If routes get stale, delete ~/.devwarp/routes.json or run your dev commands again to refresh.

Version

0.1.0

License

MIT