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

proxied-axios

v1.2.1

Published

Proxied Axios implementation that downloads proxies from a URL and refreshes them periodically

Readme

ProxiedAxios

npm version npm downloads license

A Node.js library for making HTTP requests through SOCKS5 proxies with automatic proxy rotation and management.

Installation

npm install proxied-axios

Usage

Direct Proxy List

import ProxiedAxios from 'proxied-axios';

// Initialize with proxy list
const client = new ProxiedAxios({
    proxies: [
        { ip: '1.2.3.4', port: '1080', username: 'user', password: 'pass' },
        { ip: '5.6.7.8', port: '1080' }  // Optional: without authentication
    ]
});

// Make requests
const response = await client.get('https://api.example.com/data');

Load from File

// Load proxies from a file
const client = await ProxiedAxios.loadProxiesFromFile('path/to/proxies.txt');

Automatic Proxy Refresh

// Initialize with proxy URL for automatic refresh
const client = new ProxiedAxios({
    proxyUrl: 'https://your-proxy-provider.com/proxies',
    refreshInterval: 12 * 60 * 60 * 1000  // Optional: refresh every 12 hours
});

// The library will automatically:
// - Create .proxied-axios directory for proxy storage
// - Add .proxied-axios/ to .gitignore and .npmignore
// - Handle proxy refresh and caching

// Make requests
const response = await client.get('https://api.example.com/data');

Logging

By default, logging is disabled. You can enable it to see detailed information about proxy operations:

// Enable logging
ProxiedAxios.enableLogging();

// Disable logging
ProxiedAxios.disableLogging();

Logs will be prefixed with [ProxiedAxios] for easy identification.

Proxy File Format

The proxy file should contain one proxy per line in the format:

ip:port[:username:password]

Examples:

1.2.3.4:1080:user:pass
5.6.7.8:1080

Features

  • Automatic proxy rotation
  • Support for authenticated and non-authenticated proxies
  • Proxy validation and error handling
  • Configurable retry mechanism
  • Automatic proxy refresh from URL with local caching
  • Automatic setup of configuration directory and git/npm ignores

API Reference

Constructor Options

new ProxiedAxios(options)

Options:

  • proxies (Array): Array of proxy objects with ip, port, username (optional), password (optional)
  • proxyUrl (String): URL to fetch proxy list from
  • refreshInterval (Number): Interval in milliseconds to refresh proxies (default: 12 hours)

Static Methods

  • ProxiedAxios.loadProxiesFromFile(filePath) - Load proxies from a file
  • ProxiedAxios.enableLogging() - Enable debug logging
  • ProxiedAxios.disableLogging() - Disable debug logging

Instance Methods

All standard HTTP methods are supported:

  • get(url, config) - GET requests
  • post(url, data, config) - POST requests
  • put(url, data, config) - PUT requests
  • delete(url, config) - DELETE requests
  • patch(url, data, config) - PATCH requests
  • head(url, config) - HEAD requests
  • options(url, config) - OPTIONS requests

Generic method:

  • request(config) - Generic request method accepting full Axios config

Contributing

Contributions are welcome! I appreciate your help in making proxied-axios better.

Reporting Issues

If you find a bug or have a feature request:

  1. Check existing issues first to avoid duplicates
  2. Create a new issue with:
    • Clear title and description
    • Steps to reproduce (for bugs)
    • Expected vs actual behavior
    • Your environment details (Node.js version, OS, etc.)

License

MIT