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

@gatesolve/playwright-plugin

v0.2.1

Published

Automatic CAPTCHA solving for Playwright and playwright-extra. Detects and solves Cloudflare Turnstile, reCAPTCHA v2/v3, and hCaptcha via GateSolve API. Free tier included.

Readme

@gatesolve/playwright-plugin

Automatic CAPTCHA solving for Playwright. Detects Cloudflare Turnstile, reCAPTCHA, and hCaptcha challenges and solves them via GateSolve.

Install

npm install @gatesolve/playwright-plugin

Quick Start

One-shot: Solve CAPTCHA on current page

import { chromium } from 'playwright';
import { solveOnPage } from '@gatesolve/playwright-plugin';

const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://example.com/login');

// Detect and solve any CAPTCHA on the page
const result = await solveOnPage(page, {
  apiKey: 'gs_your_key_here', // Free at gatesolve.dev
});

if (result?.success) {
  console.log(`Solved ${result.type} in ${result.solveTimeMs}ms`);
  // Token is already injected into the page — submit the form
  await page.click('button[type="submit"]');
}

Auto-solve: Wrap browser context

import { chromium } from 'playwright';
import { withGateSolve } from '@gatesolve/playwright-plugin';

const browser = await chromium.launch();
const context = await browser.newContext();

// Every page in this context will auto-solve CAPTCHAs
withGateSolve(context, {
  apiKey: 'gs_your_key_here',
  debug: true,
});

const page = await context.newPage();
await page.goto('https://example.com/protected');
// CAPTCHA is solved automatically on page load

Detect only (no solve)

import { detectCaptcha } from '@gatesolve/playwright-plugin';

const detection = await detectCaptcha(page);
if (detection) {
  console.log(`Found ${detection.type} with siteKey ${detection.siteKey}`);
}

API

solveOnPage(page, options)

Detect and solve a CAPTCHA on the current page. Returns SolveResult | null.

withGateSolve(context, options)

Wrap a BrowserContext to auto-solve CAPTCHAs on every page load. Returns the same context.

detectCaptcha(page)

Detect CAPTCHA type and siteKey without solving. Returns CaptchaDetection | null.

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | apiKey | string | required | GateSolve API key | | baseUrl | string | https://gatesolve.dev | API base URL | | timeout | number | 30000 | Max solve wait (ms) | | pollInterval | number | 2000 | Poll frequency (ms) | | debug | boolean | false | Log debug info |

Supported CAPTCHAs

  • Cloudflare Turnstile — $0.02/solve
  • reCAPTCHA v2/v3 — $0.03/solve
  • hCaptcha — $0.03/solve

Free Tier

100 free solves per API key. No credit card required. Get your key at gatesolve.dev.

License

MIT