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

portler

v0.4.1

Published

Process runner with automatic port assignment and env resolution, from local development to production.

Readme

Portler

Portler runs multi-service projects with automatic port assignment and environment resolution, on a dev machine, a CI runner, or a production host. It reads portler.yml, finds free ports, resolves references such as backend.url, and starts services in dependency order.

Documentation · Getting started · CLI reference · Configuration reference

Note: Portler is still evolving. The portler.yml format is being improved and can change in breaking ways in upcoming releases, so check the release notes when you upgrade.

Install

Portler requires Node.js 22.6 or newer.

npm install -g portler
portler --help

Portler supports Linux and macOS. On Windows, use WSL2; native Windows is intentionally unsupported because safe process teardown relies on POSIX process groups. Docker and Kubernetes tooling are only required when using those modes.

Quick start

Generate a starter configuration and adapt it to your project:

portler init

A portler.yml for a web app with a database looks like this:

proxy:
  routes:
    /api: backend
    /: frontend

services:
  postgres:
    use: postgres@18       # built-in preset: image, port, volume, healthcheck

  backend:
    command: npm run dev
    cwd: backend
    setup:
      - run: npm install
        if_missing: node_modules
    port: 4000
    port_env: PORT
    depends_on:
      - postgres
    env:
      DATABASE_URL: ${postgres.database_url}

  frontend:
    command: npm run dev
    cwd: frontend
    setup:
      - run: npm install
        if_missing: node_modules
    port: 3000
    port_env: PORT
    depends_on:
      - backend

Start and manage the stack:

portler up
portler up -d                    # run in the background
portler ps                       # show running services
portler logs backend --follow
portler down

On portler up:

  • Every service gets a free host port, so this stack can run next to other projects and checkouts. Local processes receive it through port_env.
  • ${postgres.database_url} resolves to Postgres's assigned port, so DATABASE_URL always points at the right place. In portler up docker the same DATABASE_URL becomes postgres:5432, the address a container needs.
  • Postgres runs in Docker. Its data lives in the managed volume @postgres-data, which survives restarts and can be forked for another checkout.
  • npm install runs only while node_modules is missing.
  • The backend starts once Postgres passes its healthcheck, and the frontend once the backend answers.
  • The proxy serves the whole stack on one URL, printed as project url. /api/users goes to backend with the path unchanged, so the backend serves its routes under /api, and everything else goes to frontend. The browser only talks to one origin, so CORS stops being a problem, and WebSockets work too, so dev-server hot reload keeps working.

Highlights

Portler verifies resource ownership before stopping processes or removing managed resources.

License

MIT