
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
chess-captcha-react-jsx
Advanced tools
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.
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.
The source code for this GIF is available in the Github repository.
npm i chess-captcha-react-jsx
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
/>
);
}
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)
}
MIT
FAQs
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.
The npm package chess-captcha-react-jsx receives a total of 12 weekly downloads. As such, chess-captcha-react-jsx popularity was classified as not popular.
We found that chess-captcha-react-jsx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.