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

@ohah/chrome-remote-devtools-server

v0.1.0-rc.1

Published

Chrome Remote DevTools WebSocket relay server with SSL support.

Readme

@ohah/chrome-remote-devtools-server

Chrome Remote DevTools WebSocket relay server with SSL support.

Installation

npm install @ohah/chrome-remote-devtools-server

Usage

Basic Usage

npx chrome-remote-devtools-server

With Environment Variables

PORT=8080 npx chrome-remote-devtools-server

With SSL (HTTPS/WSS)

For production, you'll need to set up SSL certificates. You can either:

  1. Use a reverse proxy (Nginx/Caddy) - Recommended
  2. Use Bun's built-in HTTPS support

Using CLI Options

npx chrome-remote-devtools-server \
  --ssl \
  --cert /path/to/cert.pem \
  --key /path/to/key.pem

Using Environment Variables

USE_SSL=true \
SSL_CERT_PATH=/path/to/cert.pem \
SSL_KEY_PATH=/path/to/key.pem \
npx chrome-remote-devtools-server

With Logging

Enable All Logs

npx chrome-remote-devtools-server --log-enabled

Filter Logs by Methods

npx chrome-remote-devtools-server \
  --log-enabled \
  --log-methods "Runtime.evaluate,Page.navigate"

File Logging

npx chrome-remote-devtools-server \
  --log-enabled \
  --log-file ./logs/server.log

Environment Variables

Basic Configuration

  • PORT - Server port (default: 8080 for HTTP, 8443 for HTTPS)
  • HOST - Server host (default: 0.0.0.0)

SSL Configuration

  • USE_SSL - Enable HTTPS/WSS (default: false)
  • SSL_CERT_PATH - Path to SSL certificate file (required when USE_SSL=true)
  • SSL_KEY_PATH - Path to SSL private key file (required when USE_SSL=true)

Logging Configuration

  • LOG_ENABLED - Enable logging (default: false)
  • LOG_METHODS - Comma-separated list of CDP methods to log (default: all methods)
  • LOG_FILE_PATH - Path to log file (logs will be written to both console and file)

CLI Options

  • -p, --port <number> - Server port
  • -h, --host <string> - Server host
  • --ssl - Enable HTTPS/WSS
  • --cert <path> - Path to SSL certificate file
  • --key <path> - Path to SSL private key file
  • --log-enabled - Enable logging
  • --log-methods <methods> - Comma-separated list of CDP methods to log
  • --log-file <path> - Path to log file
  • --help - Show help message

Note: CLI options take precedence over environment variables.

SSL Certificate Setup

Using Let's Encrypt (Recommended)

# Install certbot
sudo apt-get install certbot

# Get certificate
sudo certbot certonly --standalone -d your-domain.com

# Use the certificate
USE_SSL=true \
SSL_CERT_PATH=/etc/letsencrypt/live/your-domain.com/fullchain.pem \
SSL_KEY_PATH=/etc/letsencrypt/live/your-domain.com/privkey.pem \
npx chrome-remote-devtools-server

Using Self-Signed Certificate (Development Only)

# Generate self-signed certificate
openssl req -x509 -newkey rsa:4096 -nodes \
  -keyout key.pem \
  -out cert.pem \
  -days 365 \
  -subj "/CN=localhost"

# Use the certificate
npx chrome-remote-devtools-server \
  --ssl \
  --cert ./cert.pem \
  --key ./key.pem

Warning: Self-signed certificates are not secure for production use. Use Let's Encrypt or a trusted CA for production.

Examples

Development Server

# HTTP on default port
npx chrome-remote-devtools-server

# HTTP on custom port
npx chrome-remote-devtools-server --port 3000

# With logging
npx chrome-remote-devtools-server --log-enabled

Production Server

# HTTPS with Let's Encrypt
USE_SSL=true \
SSL_CERT_PATH=/etc/letsencrypt/live/your-domain.com/fullchain.pem \
SSL_KEY_PATH=/etc/letsencrypt/live/your-domain.com/privkey.pem \
LOG_ENABLED=true \
LOG_FILE_PATH=/var/log/chrome-remote-devtools/server.log \
npx chrome-remote-devtools-server

API

The server provides the following HTTP endpoints:

  • GET /json - Get all clients
  • GET /json/clients - Get all clients with details
  • GET /json/inspectors - Get all inspectors
  • GET /json/client/:id - Get specific client

WebSocket endpoints:

  • WS /remote/debug/client/:id - Client connection
  • WS /remote/debug/devtools/:id - DevTools connection

License

MIT