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

proxifly

v3.0.1

Published

Proxifly is a service to get free HTTPS proxies and check your public IP

Readme

Quick Start

NPM

npm install proxifly
// ESM
import Proxifly from 'proxifly';

// CommonJS
const Proxifly = require('proxifly');

const proxifly = new Proxifly({
  apiKey: 'your-api-key', // Optional, but removes rate limits (get yours at https://proxifly.dev)
});

Script Tag

<script src="https://cdn.jsdelivr.net/npm/proxifly@latest/dist/proxifly.min.js"></script>
<script>
  var proxifly = new Proxifly({
    apiKey: 'your-api-key',
  });
</script>

curl

# Get your public IP
curl https://api.proxifly.dev/ip

# Get a proxy
curl https://api.proxifly.dev/proxy

# With options
curl "https://api.proxifly.dev/proxy?protocol=http&quantity=3&format=text"

API

getProxy(options)

Get a filtered list of proxies.

proxifly.getProxy({
  protocol: 'http',     // http | socks4 | socks5
  anonymity: 'elite',   // transparent | anonymous | elite
  country: 'US',        // ISO country code
  https: true,          // true | false
  quantity: 1,          // 1 - 20
  format: 'json',       // json | text
})
.then(proxy => console.log(proxy))
.catch(e => console.error(e));

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | protocol | string | — | Filter by protocol: http, socks4, socks5 | | anonymity | string | — | Filter by anonymity: transparent, anonymous, elite | | country | string | — | Filter by ISO country code (US, GB, DE, etc.) | | https | boolean | — | Filter by HTTPS support | | quantity | number | 1 | Number of proxies to return (1–20). Returns an array when > 1. | | format | string | json | Response format: json or text | | timeout | number | 60000 | Request timeout in milliseconds |

Example response

{
  "proxy": "socks4://103.99.110.222:5678",
  "protocol": "socks4",
  "ip": "103.99.110.222",
  "port": 5678,
  "https": false,
  "anonymity": "transparent",
  "score": 1,
  "geolocation": { "country": "IN", "city": "Unknown" }
}

getPublicIp(options)

Get your public IP address.

proxifly.getPublicIp()
.then(response => {
  console.log('IP:', response.ip);
  console.log('Country:', response.country);
})
.catch(e => console.error(e));

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | format | string | json | Response format: json or text | | timeout | number | 60000 | Request timeout in milliseconds |

Example response

{
  "ip": "104.173.192.180",
  "continent": "NA",
  "country": "US",
  "region": "California",
  "city": "Los Angeles",
  "latitude": 34.0544,
  "longitude": -118.2441
}

Development

npm start        # Watch mode - rebuilds on file changes
npm run build    # One-time build (ESM, CJS, IIFE)
npm test         # Run tests

Build Outputs

| File | Format | Use Case | |------|--------|----------| | dist/index.mjs | ESM | import in modern bundlers (webpack, Vite, etc.) | | dist/index.js | CJS | require() in Node.js | | dist/proxifly.min.js | IIFE (minified) | <script> tag / CDN |

License

MIT