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

@scrapechain/oxylabs

v0.3.0

Published

Oxylabs proxy SDK for ScrapeChain – generate proxy URLs, rotate IPs, and more.

Readme

@scrapechain/oxylabs

A lightweight, unofficial SDK for using Oxylabs proxies. Includes helper methods for rotating sessions, generating endpoints, and more — all provided through a consistent interface shared across proxy providers.

 

🚀 Features

  • Supports both Residential and Datacenter proxies
  • Converts proxy options into a ready-to-use URL
  • Built-in defaults for protocol, endpoint, port, and session behavior
  • Easy session rotation to change IP addresses (residential)
  • Normalized configuration interface across all ScrapeChain proxy SDKs

 

📦 Installation

  npm install @scrapechain/oxylabs

 

Proxy Types

🏠 Residential Proxy

Setup

import { OxylabsResidentialProxy } from '@scrapechain/oxylabs';

const proxy = new OxylabsResidentialProxy({
  username: 'yourOxylabsUsername',
  password: 'yourPassword',
  country: 'United States of America',
  sticky: true,
});

 

const proxyUrl = proxy.toUrl();

console.log(proxyUrl);
http://customer-yourOxylabsUsername-cc-US-sessid-3469265147-sesstime-10:[email protected]:7777

Returns a full proxy URL string.

Since the sticky property is truthy, it embeds a random sessionid in the username.

The session length defaults to 10 min, but can be changed with stickySessionDurationMinutes (max 30 min). The sessionid will stay the same until .rotate() is invoked or manually overridden with the property stickySessionId.

 

.rotate()

proxy.rotate();

Sets sessionid to a random number, which will point to a new IP address.

 

.pingIP()

const ipDetails = await proxy.pingIp();

console.log(ipDetails)
{
  success: true,
  ip: "76.91.176.189",
  latencyMs: 714,
}

Verifies the proxy is working and returns the IP and latency.

This will make a quick request to https://api.ipify.org/?format=json

 

.details

console.log(proxy.details)
{
  protocol: "http",
  endpoint: "pr.oxylabs.io",
  port: 7777,
  username: "customer-yourOxylabsUsername-cc-US-sessid-5245948176-sesstime-10",
  password: "yourPassword",
}

Returns a structured object with proxy connection details.

This is part of a common interface shared across all providers.

 

Properties

| Property | Type | Required | Default | Description | |--------------------------------|-----------------------------------|----------|------------------|-----------------------------------------------------------------------------| | username | string | ✅ | — | Your Oxylabs customer username. | | password | string | ✅ | — | Your Oxylabs password. | | country | Country (string enum) | ❌ | — | Country to geo-target the proxy IP. | | sticky | boolean | ❌ | false | Enables sticky sessions (same IP across requests). | | stickySessionId | number | ❌ | Auto-generated | Custom session ID for sticky mode (optional override). | | stickySessionDurationMinutes| number | ❌ | 10 | Duration of sticky session in minutes. | | port | number | ❌ | 7777 | Proxy port. | | endpoint | string | ❌ | pr.oxylabs.io | Proxy hostname. | | protocol | "http", "https", "socks5" | ❌ | "http" | Proxy protocol to use. |

 


🏢 Datacenter Proxy

Setup

import { OxylabsDatacenterProxy } from '@scrapechain/oxylabs';

const proxy = new OxylabsDatacenterProxy({
  username: 'yourOxylabsUsername',
  password: 'yourPassword',
  country: 'United States of America',
});

 

.toUrl()

const proxyUrl = proxy.toUrl();

console.log(proxyUrl);
http://user-yourOxylabsUsername-country-US:[email protected]:8001

Returns a full proxy URL string.

 

.pingIP()

const ipDetails = await proxy.pingIp();

console.log(ipDetails)
{
  success: true,
  ip: "192.168.1.1",
  latencyMs: 320,
}

Verifies the proxy is working and returns the IP and latency.

This will make a quick request to https://api.ipify.org/?format=json

 

.details

console.log(proxy.details)
{
  protocol: "http",
  endpoint: "dc.oxylabs.io",
  port: 8001,
  username: "user-yourOxylabsUsername-country-US",
  password: "yourPassword",
}

Returns a structured object with proxy connection details.

This is part of a common interface shared across all providers.

 

Properties

| Property | Type | Required | Default | Description | |------------|-----------------------------------|----------|---------------------|-----------------------------------------------------------------------------| | username | string | ✅ | — | Your Oxylabs username. | | password | string | ✅ | — | Your Oxylabs password. | | country | Country (string enum) | ❌ | — | Country to geo-target the proxy IP. | | port | number | ❌ | 8001 | Proxy port. | | endpoint | string | ❌ | dc.oxylabs.io | Proxy hostname. | | protocol | "http", "https", "socks5" | ❌ | "http" | Proxy protocol to use. |

 

License

This project is licensed under the MIT. See the LICENSE file for details.