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

caddy-proxy-manager

v3.0.0

Published

A CLI tool to manage local reverse proxies using Caddy

Downloads

7

Readme

Caddy Proxy Manager (cpm)

A CLI tool to manage local reverse proxies using Caddy server. This tool makes it easy to:

  • Add and remove proxy configurations
  • Manage SSL certificates
  • Monitor proxy status
  • View and manage logs
  • Backup and restore configurations

Platform Support

Currently supports: macOS and Linux
Windows support: Coming soon

Prerequisites

  • Node.js >= 18.0.0
  • Caddy server installed
  • mkcert installed for custom certificates
    • macOS: brew install mkcert
    • Linux: sudo apt install mkcert (Ubuntu/Debian) or sudo dnf install mkcert (Fedora)

Installation

# Install globally
npm install -g caddy-proxy-manager

# Or install locally
npm install caddy-proxy-manager

Usage

Add a Proxy

# Add a proxy with Caddy's automatic HTTPS (default)
cpm add example.test 3000

# Add a proxy with mkcert-generated certificates
cpm add example.test 3000 --custom-cert

Certificate Management

# Add or update certificate for an existing domain (uses mkcert by default)
cpm cert example.test

# Add or update with specific certificate files
cpm cert example.test --cert /path/to/cert.pem --key /path/to/key.pem

Remove a Proxy

cpm rm example.test

List Proxies

# List all proxies
cpm ls

# List with health check
cpm ls --health

Check Port Status

cpm ports

Manage Logs

# View global logs
cpm logs

# View domain-specific logs
cpm logs example.test

# Follow logs in real-time
cpm logs -f

# Show last N lines
cpm logs -n 100

# Enable domain-specific logging
cpm logs:enable example.test

# Disable domain-specific logging
cpm logs:disable example.test

Backup and Restore

# Backup to default file (cpm-backup.yml)
cpm backup

# Backup to custom file
cpm backup -o my-backup.yml

# Restore from default file
cpm restore

# Restore from custom file
cpm restore -f my-backup.yml

Bulk Operations

# Add multiple proxies from a YAML file
cpm bulk -f proxies.yml

Example proxies.yml:

proxies:
  - domain: app1.test
    port: 3000
    useCustomCert: true
  - domain: app2.test
    port: 3001
    useCustomCert: false

Server Management

# Start Caddy server
cpm start

# Stop Caddy server
cpm stop

# Check server status
cpm status

Shell Completion

# Generate and install shell completion
cpm completion

# Generate without installing
cpm completion --no-install

Development

# Clone the repository
git clone https://github.com/dwekat/caddy-proxy-manager.git
cd caddy-proxy-manager

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run linter
npm run lint

# Format code
npm run format

# Run tests
npm test

License

MIT