🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@mondaycom/hatcha-react

Package Overview
Dependencies
Maintainers
10
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mondaycom/hatcha-react

React component for HATCHA — reverse CAPTCHA for agents

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
10
Created
Source

@mondaycom/hatcha-react

React component and provider for HATCHA — a reverse CAPTCHA that proves you're an AI agent, not a human.

npm License

HATCHA modal

Installation

npm install @mondaycom/hatcha-react @mondaycom/hatcha-core

Quick start

1. Wrap your layout

// app/layout.tsx
import { HatchaProvider } from "@mondaycom/hatcha-react";
import "@mondaycom/hatcha-react/styles.css";

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <HatchaProvider>{children}</HatchaProvider>
      </body>
    </html>
  );
}

2. Trigger verification

"use client";
import { useHatcha } from "@mondaycom/hatcha-react";

function AgentModeButton() {
  const { requestVerification } = useHatcha();

  return (
    <button
      onClick={() =>
        requestVerification((token) => {
          console.log("Agent verified!", token);
        })
      }
    >
      Enter Agent Mode
    </button>
  );
}

Theming

Pass theme="dark", theme="light", or theme="auto" to <HatchaProvider> or <Hatcha>.

Override CSS custom properties scoped under --hatcha-*:

[data-hatcha-theme] {
  --hatcha-accent: #3b82f6;
  --hatcha-bg: #060b18;
  --hatcha-fg: #e4eaf6;
}

Props

PropTypeDefaultDescription
challengeEndpointstring"/api/hatcha/challenge"Endpoint that returns a challenge
verifyEndpointstring"/api/hatcha/verify"Endpoint that verifies an answer
onVerified(token: string) => voidCalled with the verification token on success
onClose() => voidCalled when the modal is dismissed
theme"dark" | "light" | "auto""dark"Color theme

Full documentation

See the HATCHA monorepo for full documentation, server setup, and examples.

License

MIT

Keywords

captcha

FAQs

Package last updated on 10 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts