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

ip-bridge

v0.1.0

Published

TCP proxy that gives serverless apps (Vercel) a static outgoing IP for MongoDB Atlas

Readme

ip-bridge

A TCP proxy that gives serverless apps (Vercel, Netlify, etc.) a static outgoing IP for MongoDB Atlas.

Serverless platforms use dynamic IPs, making it impossible to whitelist your app in MongoDB Atlas. ip-bridge runs on a VM with a static IP and transparently forwards your MongoDB connections — no code changes needed.

Next.js on Vercel (dynamic IP) → ip-bridge on Oracle VM (static IP) → MongoDB Atlas

Install

npm install -g ip-bridge

Setup on your VM (Oracle Cloud / AWS)

# 1. Create .env config
ip-bridge init

# 2. Edit .env — set MONGODB_TARGET to your Atlas cluster host
nano .env

# 3. Start the proxy
ip-bridge start

Configuration

.env on your VM:

# Port to listen on (MongoDB default is 27017)
PORT=27017

# Your MongoDB Atlas cluster host and port
# Find this in Atlas: Connect → Drivers → copy the host from the URI
# Format: your-cluster.mongodb.net:27017
MONGODB_TARGET=your-cluster.mongodb.net:27017

To find MONGODB_TARGET: go to MongoDB Atlas → Connect → Drivers → copy the hostname from the connection string.

Usage in your Next.js / Vercel app

No code changes needed. Just update your environment variable:

# .env.local (Vercel environment variables)
# Before:
MONGODB_URI=mongodb+srv://user:[email protected]/dbname

# After:
MONGODB_URI=mongodb://user:pass@vm-ip:27017/dbname

Your connectDB, Mongoose models, and all queries stay exactly the same.

Deployment

Oracle Cloud (recommended — always free)

  1. Sign up at oracle.com/cloud/free
  2. Create an Always Free VM instance (Ampere A1 or AMD E2)
  3. Note the public IP — this is your static IP
  4. Open port 27017 in the Oracle Cloud security list
  5. SSH into the VM and run the setup above
  6. Whitelist the VM's public IP in MongoDB Atlas → Network Access

Keep it running with PM2

npm install -g pm2
pm2 start "ip-bridge start" --name ip-bridge
pm2 save && pm2 startup

Other providers

  • AWS EC2 (free tier, 12 months)
  • Any VPS with a static IP (DigitalOcean, Hetzner, etc.)

How it works

ip-bridge is a TCP proxy using Node.js built-in net and tls modules. It listens on port 27017, accepts raw MongoDB connections, and forwards them to Atlas over TLS. From Atlas's perspective, all traffic comes from one IP — your VM.

Security

  • Atlas only accepts connections from your VM's whitelisted IP
  • MongoDB credentials are still required — anyone connecting through the VM still needs a valid username and password
  • Only one dependency: dotenv

License

MIT