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

apify-node-curl-impersonate

v1.0.29

Published

A wrapper around cURL-impersonate, a binary which can be used to bypass TLS fingerprinting.

Readme

node-curl-impersonate

npm version npm downloads

📦 NPM Package: apify-node-curl-impersonate

node-curl-impersonate is a library that allows for you to use curl-impersonate natively, providing an easy interface for passing headers, flags, and other information for your request. This library specifically is used to bypass TLS Fingerprinting that is present on some cloudflare or other DDOS protected sites. I do not support using this for malicious purposes, only to demonstrate that TLS Fingerprinting is not a safe way to secure your website from web scrapers, and to show how easy web scraping is in general.

Installation

It may be required to install some dependencies first for local development. On MacOS installing these via brew should be sufficient:

  • brew tap shakacode/brew
    brew install curl-impersonate

Using npm

npm install apify-node-curl-impersonate

Using yarn

yarn add apify-node-curl-impersonate

Using pnpm

pnpm add apify-node-curl-impersonate

Quick Example

import { CurlImpersonate } from 'apify-node-curl-impersonate';

// Create client with browser preset and proxy
const client = new CurlImpersonate('https://httpbin.org/get', {
  method: 'GET',
  headers: {},
  debugLogger: () => {},
  impersonate: 'chrome-100', // Mimic Chrome browser
  flags: ['--proxy', 'http://username:[email protected]:8080']
});

// Make a GET request
const response = await client.makeRequest();
console.log(response.data);

// For POST request, create a new instance
const postClient = new CurlImpersonate('https://httpbin.org/post', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: { message: 'Hello World' },
  debugLogger: () => {},
  impersonate: 'firefox-133' // Mimic Firefox browser
});

const postResponse = await postClient.makeRequest();
console.log(postResponse.data);

The library supports multiple browser presets including Chrome, Firefox, Safari, and Edge with various versions. See the BrowserPresets type and PRESETS object for the complete list of available browser presets.