@google-recaptcha/core
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published
Google Recaptcha

Core Google reCAPTCHA

NPM version License Join the community on GitHub

Google reCAPTCHA is a powerful library that provides easy integration of Google reCAPTCHA into your applications. Built with TypeScript-first approach, SSR compatibility, and tree-shaking optimization - everything you need to protect your forms and applications from spam and abuse.

Supported reCAPTCHA Versions

  • V3 - Invisible protection that returns a risk score (0.0-1.0) for each request
  • V2 Invisible - Background analysis without user interaction
  • V2 Checkbox - Interactive "I'm not a robot" checkbox with optional challenges
  • Enterprise mode - support enterprise

Documentation

Visit https://siberiacancode.github.io/google-recaptcha/docs/core to view the full documentation.

Getting Started

import {
  checkGoogleReCaptchaInjected,
  injectGoogleReCaptchaScript,
} from "@google-recaptcha/core";

if (checkGoogleReCaptchaInjected()) return;

injectGoogleReCaptchaScript({
  render: "explicit",
  onload: () => console.log("reCAPTCHA loaded"),
  siteKey: "your_site_key",
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.22,248latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.22,248
1.1.10
1.1.03,547
1.0.51,214
1.0.40
1.0.30
1.0.2169
1.0.152
1.0.00

Package Sidebar

Install

npm i @google-recaptcha/core

Weekly Downloads

7,230

Version

1.1.2

License

MIT

Unpacked Size

35.8 kB

Total Files

49

Last publish

Collaborators

  • hwapedro