Socket
Book a DemoInstallSign in
Socket

chess-captcha-react-jsx

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chess-captcha-react-jsx

A React chessboard component for chess-based CAPTCHA systems. Features interactive drag-and-drop functionality, customizable board size, and real-time move validation. Built with TypeScript, React, and chess.js.

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
17
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

chess-captcha-react-jsx

A React chessboard component for chess-based CAPTCHA systems. Features interactive drag-and-drop functionality, customizable board size, and real-time move validation. Built with TypeScript, React, and chess.js.

This component is designed to work with the chess-captcha-core library, which provides the CAPTCHA puzzle generation and verification logic.

Image

The source code for this GIF is available in the Github repository.

Installation

React Component

npm i chess-captcha-react-jsx

Quick Start

import { ChessBoard } from "chess-captcha-react-jsx";

function App() {
  const [FEN, setFEN] = useState(
    "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
  ); // Fetch generated FEN from your server

  const handleMove = (move: string) => {
    console.log("Player moved:", move);
    // Send user's move to your server to verify the answer
  };

  return (
    <ChessBoard
      onMove={handleMove}
      FEN={FEN}
      width={600} // Customizable board size
    />
  );
}

API Reference

ChessBoard Component

Props

interface ChessBoardProps {
  onMove: (move: string) => void; // Callback when a move is made
  FEN: string; // Chess position in FEN notation
  width?: number; // Board width in pixels (default: 480)
}

License

MIT

Keywords

chess

FAQs

Package last updated on 20 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.