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

@haseeb-xd/havn

v1.0.1

Published

Local development dashboard — see every running service at a glance

Readme

havn

A harbor for your localhost.

npm version node license platform

Instantly see every service running on your machine — Redis, Postgres, Kafka, Spring Boot, Next.js, Docker and 40+ more

npm install -g @haseeb-xd/havn && havn

Opens at http://localhost:1111


Features

  • Zero config — run one command, everything is detected automatically
  • OS-first discovery — finds services on any port, not just well-known ones
  • 40+ service fingerprints — databases, queues, frameworks, monitoring, AI runtimes
  • Live updates — WebSocket push every few seconds (configurable), no polling
  • Pause / Watch — freeze the dashboard while you inspect; resume with one click
  • Insights panel — warns about missing databases, exposed Docker API, and more
  • Cross-platform — macOS, Linux, and Windows

Install

npm install -g @haseeb-xd/havn

Requirements: Node.js ≥ 16


Usage

havn                      # start dashboard on port 1111, opens browser
havn start                # same as above
havn start --port 2222    # custom port
havn start --no-open      # start without opening the browser
havn stop                 # stop a running instance
havn status               # check if havn is running
havn --version            # print version
havn --help               # show all options

Dashboard

| Element | Description | |---|---| | Live badge | Green while scanning, yellow when paused | | ⏸ Pause / ▶ Watch | Stop auto-scan so the view stays still | | ↻ Rescan | Trigger an immediate scan | | Interval selector | Change auto-scan frequency: 2s · 4s · 10s · 30s · 60s | | Filter tabs | Filter by Apps · Databases · Cache · Queue · Monitoring · Infra · AI | | Insights | Smart alerts (no DB detected, Ollama running, Docker API exposed, etc.) | | Service History | Sparkline of port count over time |


What gets detected

Databases

| Service | Port | |---|---| | PostgreSQL | 5432 | | MySQL | 3306 | | MongoDB | 27017 | | Redis | 6379 | | Elasticsearch | 9200 | | CouchDB | 5984 | | Neo4j | 7474 | | Cassandra | 9042 | | ClickHouse | 8123 | | CockroachDB | 26257 | | Memcached | 11211 | | SQL Server | 1433 | | Oracle DB | 1521 |

Message queues & infra

| Service | Port | |---|---| | Kafka | 9092 | | RabbitMQ | 5672 + 15672 | | Zookeeper | 2181 | | Docker API | 2375 | | HashiCorp Vault | 8200 | | Consul | 8500 | | etcd | 2379 |

Monitoring & observability

| Service | Port | |---|---| | Prometheus | 9090 | | Grafana / Loki | 3100 | | Jaeger UI | 16686 | | Zipkin | 9411 |

App frameworks (detected from HTTP headers + filesystem)

Express · Spring Boot · Next.js · Vite · Angular · SvelteKit · Remix · Astro · Django · FastAPI · Rails · Laravel · Phoenix · Go · Rust (Axum / Actix) · Bun · Deno

AI runtimes

| Service | Port | |---|---| | Ollama | 11434 |

Unknown services

Process name (from lsof / tasklist) + page <title> extracted from the first 4 KB of the HTTP response.


How it works

┌─────────────────────────────────────────────────────────────────┐
│  1. getProcessMap()     one lsof / netstat call  →  port→PID   │
│  2. union with SCAN_PORTS  →  deduplicated port list            │
│  3. TCP-verify all ports in parallel  (150 ms timeout)          │
│  4. filter system / non-dev processes                           │
│  5. enrich every port in parallel:                              │
│       • HTTP fingerprint (headers + title, follow 1 redirect)   │
│       • filesystem detect (package.json, pom.xml, go.mod …)     │
│       • health check (Redis PING, Postgres handshake)           │
│  6. WebSocket broadcast → dashboard                             │
└─────────────────────────────────────────────────────────────────┘

Performance

| Step | Typical time | |---|---| | OS process map | 80–200 ms (single lsof / netstat call) | | TCP port scan (100+ ports, parallel) | ~150 ms | | HTTP fingerprinting (per port, parallel) | ≤ 900 ms cap | | Filesystem detection | < 10 ms | | Total — first scan | ~800–900 ms | | Total — subsequent scans | ~300–600 ms |

Memory footprint: ~55 MB RSS.


Project structure

havn/
├── bin/
│   └── havn.js        ← CLI entry (start / stop / status)
├── src/
│   ├── server.js      ← Express + WebSocket server, REST API
│   └── scanner.js     ← Port scanner, service fingerprinting
├── public/
│   └── index.html     ← Dashboard UI (single file, no build step)
└── package.json

API

havn exposes a small REST + WebSocket API on the same port as the dashboard.

| Method | Path | Description | |---|---|---| | GET | /api/state | Full snapshot: services, insights, history, scan stats | | POST | /api/scan | Trigger an immediate scan | | POST | /api/pause | Pause auto-scan | | POST | /api/resume | Resume auto-scan | | POST | /api/interval | Change interval { "ms": 10000 } (1000–300000) | | WS | / | Receives init on connect, update every interval, status on config change |


License

MIT © 2024