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

vibed-infra

v0.14.0

Published

Product-agnostic VPS packager: wget install, Docker Compose, TLS/nginx, auto-update

Readme

vibed-infra

Product-agnostic VPS packager: package.sh builds committed dist/ for wget install. One host gateway serves many apps; a serial update agent pulls images without overload; persist-logs enable event-sourced recovery; dist/DNS-SKILL.md configures DNS via an AU browser agent.

Published on npm as vibed-infra.

Product maintainer flow

| File | Purpose | |------|---------| | vibed-infra-config.yml | Name, templates, network.edge, gateway.publicIp / tlsEmail / sites[], auto-update | | api-config.yaml / ui-config.yaml / nodes-config.yaml | Images + opaque config |

./package.sh
git add dist && git commit && git push
# Copy dist/DNS-SKILL.md into AU agent (domains + publicIp already filled when configured)

Operator flow (VPS)

Non-root agent prep (SSH, Docker group): skills/agent-vps-prep/SKILL.md.

# 1) DNS — paste dist/DNS-SKILL.md into AU browser agent
# 2) App roles
wget -qO- .../dist/install-api.sh | bash
wget -qO- .../dist/install-ui.sh | bash
wget -qO- .../dist/install-nodes.sh | bash
# 3) Host gateway + TLS (setup-tls.sh; re-run with --force if host/IP changes)
wget -qO- .../dist/install-gateway.sh | bash

| Profile | Role | |---------|------| | api / ui / nodes | Join shared vps-edge | | gateway | Host nginx + apps/{name}/sites.conf + HTTPS via ~/services/gateway/setup-tls.sh |

Multi-app: further products’ install-gateway.sh only add apps/{other}/sites.conf, refresh TLS SANs, and reload — no second 80/443 bind.

Machine services (installed once)

| Path | Purpose | |------|---------| | ~/services/gateway | Host nginx (GATEWAY_HOME) | | ~/services/vibed-infra/update-agent | Serial pull queue; GHCR notify via GitHub Actions OIDC | | ~/services/vibed-infra/persist-logs | Ship credentials + host cron leftover; per-app WALs live in named volumes | | ~/services/vibed-infra/monitor-vibed.sh | TUI: list deployments, summary, tail docker/volume logs |

App durable data (SQLite, persist WALs, worker logs) uses Docker named volumes by default — not bind mounts under ~/services. Digests recreate containers; volumes keep the DB.

Image updates (docker pull)

Install registers each role in the machine update-agent. Two paths enqueue work; the agent runs one pull at a time (update-*.sh is digest-gated — no restart if the image digest is unchanged):

  1. Immediate — push :main with the reusable GHCR workflow (id-token: write). CI mints an OIDC JWT and POSTs https://{site host}/_vibed/hooks/ghcr (fallback http://{publicIp}/…). No GitHub webhook UI or VIBED_WEBHOOK_SECRET.
  2. Cron — if *_AUTO_UPDATE=1, periodic enqueue (backup if notify is missed).

See skills/infra-update-agent/SKILL.md. After a successful update, dangling images are pruned (DOCKER_AUTO_PRUNE=1).

Layout

| Path | Purpose | |------|---------| | package.sh / lib/package.py | Build dist/ | | templates/host-gateway/ | Shared gateway skeleton | | templates/update-agent/ | Queue agent + webhook | | templates/persist-logs/ | Shipper install + persist sidecar | | templates/monitor/ | Machine-wide monitor-vibed.sh | | lib/persistlog/ | Python append / seal / replay | | skills/ | system-gateway, agent-vps-prep, infra-update-agent, infra-cicd, infra-e2e-cicd, infra-packager, persist-logs, dns-configure |

Environment

| Variable | Meaning | |----------|---------| | GATEWAY_HOME | Host gateway dir (default ~/services/gateway) | | VIBED_HOME | Machine vibed root (default ~/services/vibed-infra) | | VIBED_UPDATE_AGENT | Override update-agent dir (default $VIBED_HOME/update-agent) | | GATEWAY_PUBLIC_IP | VPS IPv4 (from gateway.publicIp) | | TLS_EMAIL / TLS_MODE | Let’s Encrypt email; lab or letsencrypt (docker certbot → ./certs PEMs; optional CERTBOT_IMAGE / LETSENCRYPT_HOME) | | DATA_VOLUME / PERSIST_LOG_VOLUME / WORKER_LOG_VOLUME | Named volume overrides (default {container}-{data,persist,logs}) | | PERSIST_LOGS | Set 0 to disable persist volume + sidecar | | DATA_BIND / PERSIST_LOG_BIND / LOGS_BIND | Force host bind mounts (debug) | | DOCKER_AUTO_PRUNE | Prune dangling images after update (default on) |

Tests

npm test
npm run test:oidc       # real GitHub OIDC mint; skips locally unless ACTIONS_ID_TOKEN_* set
npm run test:dist
npm run test:e2e-multi   # two apps, localhost wget|bash, shared host gateway

Publishing

Merge to main runs Publish npm (minor bump). Set NPM_TOKEN. Ordinary PRs run CI only.