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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tanguyantoine/simple-proxy

v1.1.2

Published

A simple HTTP proxy server

Readme

Simple Proxy

A lightweight and configurable HTTP/HTTPS proxy server that forwards requests to a specified target URL.

Overview

Simple Proxy is a minimalist yet powerful HTTP/HTTPS proxy server with the following key features:

  • 🚀 Lightweight with minimal dependencies
  • 🔧 Easy configuration through CLI flags or environment variables
  • 🐳 Available as Docker image and NPM package
  • 🔄 Supports both HTTP and HTTPS protocols
  • 📝 Customizable request headers

Installation & Usage

NPM Package

# Install globally
npm install -g @tanguyantoine/simple-proxy

# Run with CLI flags
simple-proxy --target https://api.example.com --port 3000

# Or use environment variables
TARGET=https://api.example.com simple-proxy

# Or use directly with npx
npx @tanguyantoine/simple-proxy --target https://api.example.com

Docker

# Pull the image
docker pull tanguyantoine/simple-proxy:latest
# or from GitHub Container Registry
docker pull ghcr.io/tanguyantoine/simple-proxy:latest

# Run with environment variables
docker run -e TARGET=https://api.example.com -p 3000:3000 tanguyantoine/simple-proxy

# Or use CLI flags (requires entrypoint override)
docker run -p 3000:3000 tanguyantoine/simple-proxy --target https://api.example.com

Configuration Options

You can configure the proxy using either CLI flags or environment variables:

| Option | CLI Flag | Environment Var | Description | Required | Default | | --------------- | ------------- | -------------- | -------------------------------------------- | -------- | ------- | | Target URL | --target | TARGET | Target URL to proxy requests to | Yes | - | | Port | --port | PORT | Port number for the proxy server | No | 3000 | | Extra Headers | --headers | EXTRA_HEADERS| JSON string of additional headers | No | {} |

Example Configurations

  1. Using CLI flags:
# Basic usage with custom port
simple-proxy --target https://api.example.com --port 8080

# Adding custom headers
simple-proxy --target https://api.example.com --headers '{"X-API-Key": "123456"}'
  1. Using environment variables:
# Basic usage with custom port
PORT=8080 TARGET=https://api.example.com simple-proxy

# Adding custom headers
EXTRA_HEADERS='{"X-API-Key": "123456"}' TARGET=https://api.example.com simple-proxy
  1. Docker with CLI flags:
docker run \
  -p 3000:3000 \
  tanguyantoine/simple-proxy \
  --target https://api.example.com \
  --headers '{"X-API-Key": "123456"}'

Development

To contribute or run from source:

# Clone the repository
git clone https://github.com/tanguyantoine/simple-proxy.git
cd simple-proxy

# Install dependencies
npm install

# Start the proxy (using CLI flags)
npm start -- --target https://api.example.com

License

MIT License - See LICENSE file for details