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

@webdecoy/fcaptcha-client

v1.46.1

Published

Browser widget for FCaptcha — proof of work, behavioural signals, and AI-agent detection

Readme

@webdecoy/fcaptcha-client

The browser widget for FCaptcha: a self-hosted, open-source CAPTCHA with no image puzzles. It works as a single checkbox or invisibly, and it detects bots, headless browsers and AI agents driving real browsers.

The widget needs a running FCaptcha server, which scores the submission and issues the token. Start one in a minute with Docker:

docker run -d -p 3000:3000 -e FCAPTCHA_SECRET="$(openssl rand -hex 32)" ghcr.io/webdecoy/fcaptcha

Every FCaptcha server also serves this widget at /fcaptcha.js, so you may not need this package at all. Use it when you want the widget from npm or a CDN.

Install

npm install @webdecoy/fcaptcha-client

Or from a CDN. Pin the version and use the integrity hash, which is published in each release's notes and in dist/integrity.json:

<script
  src="https://cdn.jsdelivr.net/npm/@webdecoy/fcaptcha-client@VERSION/dist/fcaptcha.min.js"
  integrity="sha384-…"
  crossorigin="anonymous"></script>

Checkbox

<form method="post" action="/signup">
  <div data-fcaptcha="your-site-key" data-endpoint="https://your-fcaptcha-server.com"></div>
  <button>Sign up</button>
</form>

When the visitor passes, the token is posted with the form as fcaptcha_token. To render it yourself:

import FCaptcha from '@webdecoy/fcaptcha-client';

FCaptcha.configure({ serverUrl: 'https://your-fcaptcha-server.com' });
const widgetId = FCaptcha.render('captcha', {
  siteKey: 'your-site-key',
  callback: (token) => { /* optional */ },
});

Invisible

const result = await FCaptcha.execute('your-site-key', { action: 'login' });
if (result.success) {
  // Send result.token to your backend.
}

Verify on your backend

Verify the token server-side. The server speaks the same siteverify API as Turnstile, reCAPTCHA and hCaptcha, so an existing verification call only needs a new base URL:

curl -X POST https://your-fcaptcha-server.com/turnstile/v0/siteverify \
  -d "secret=$FCAPTCHA_VERIFY_SECRET" -d "response=$TOKEN"

More

Languages, options, the full API, framework examples and how the scoring works are in the FCaptcha README. Try it on the live demo.

MIT licensed.