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

fbi-proxy

v1.7.0

Published

FBI-Proxy provides easy HTTPS access to your local services with intelligent domain routing

Readme

fbi-proxy

FBI-Proxy provides easy HTTPS access to your local services with intelligent domain routing.

Features

Current Features ✅

  • Intelligent Domain Routing: Multiple routing patterns for flexible service access
    • Port-based routing (e.g., 3000.fbi.comlocalhost:3000)
    • Host--Port routing (e.g., api--3001.fbi.comapi:3001)
    • Subdomain routing with Host headers (e.g., admin.app.fbi.comapp:80)
    • Direct host forwarding (e.g., myserver.fbi.commyserver:80)
  • WebSocket Support: Full WebSocket connection support for all routing patterns
  • High Performance: Built with Rust for optimal performance and low resource usage
  • Easy Setup: Simple one-command installation and startup
  • Docker Support: Available as a Docker image for containerized deployments
  • Flexible Configuration: Environment variables and CLI options for customization
  • Cross-Platform: Works on macOS, Linux, and Windows
  • Integration Ready: Compatible with reverse proxies like Caddy for HTTPS

Roadmap

Next Up 🚧

  • [ ] Configuration File Support - YAML/JSON config for persistent routing rules
  • [ ] Access Control - Domain filtering, host/port whitelisting
  • [ ] Request Logging - Basic access logs for debugging
  • [ ] Health Checks - Simple upstream service availability monitoring

Future Improvements 🔮

  • [ ] Load Balancing - Round-robin between multiple upstream targets
  • [ ] Metrics - Basic statistics (requests, response times, errors)
  • [ ] Hot Reload - Update configuration without restart
  • [ ] Custom Headers - Add/modify headers for specific routes

Routing Examples

# Port forwarding
https://3000.fbi.com        → localhost:3000
https://8080.fbi.com        → localhost:8080

# Host--Port forwarding
https://api--3001.fbi.com   → api:3001
https://db--5432.fbi.com    → db:5432

# Subdomain routing (with Host header)
https://admin.app.fbi.com   → app:80 (Host: admin)
https://v2.api.fbi.com      → api:80 (Host: v2)

# Direct host forwarding
https://myserver.fbi.com    → myserver:80

WebSocket connections are supported for all patterns.

Usage

# launch
bunx fbi-proxy

# expose to LAN
bunx fbi-proxy --host 0.0.0.0 --port=2432

# run with docker
docker run --rm --name fbi-proxy --network=host snomiao/fbi-proxy

Using with Caddy (Optional)

FBI-Proxy focuses on the core proxy functionality. For HTTPS and advanced routing, you can use Caddy as a reverse proxy:

Install Caddy

# macOS
brew install caddy

# Ubuntu/Debian
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy

# Or download from https://caddyserver.com/download

Caddyfile Example

Create a Caddyfile to route *.fbi.com to FBI-Proxy:

*.fbi.com {
    reverse_proxy localhost:2432
    tls internal
}

Run Both Services

# Terminal 1: Start FBI-Proxy
bunx fbi-proxy

# Terminal 2: Start Caddy
caddy run --config Caddyfile

Now you can access your services via HTTPS at https://*.fbi.com!

Development

# Install dependencies
bun install

# Start development
bun run dev

# Or production
bun run build && bun run start

Prerequisites

  • Bun: https://bun.sh/
  • Rust: https://rustup.rs/

Configuration

Environment Variables

FBI-Proxy supports the following environment variables for configuration:

| Variable | Description | Default | |----------|-------------|---------| | FBI_PROXY_PORT | Port for the proxy server to listen on | 2432 | | FBI_PROXY_HOST | Host/IP address to bind to | 127.0.0.1 | | RUST_LOG | Log level for the Rust proxy (error, warn, info, debug, trace) | info | | FBIPROXY_PORT | Internal proxy port (auto-assigned) | Auto |

Command-line arguments take precedence over environment variables.

CLI Options

  • Default domain: fbi.com (change with --fbihost)
  • Host binding: --host or FBI_PROXY_HOST env var
  • Port binding: --port or FBI_PROXY_PORT env var

License

MIT License - see LICENSE file for details