Captcha
Self-hosted CAPTCHA for React and Next.js — server-signed challenges, no Redis or third-party provider. Try the live widget below, then follow the install steps at the bottom of the page. Package: captchakit · GitHub
Loading…
Loading guide…
Install the package from npm, then import the React component and default styles in your client UI.
Create .env.local in your Next.js project. Keep this value server-side only.
Create app/api/captcha/route.ts. CaptchaKit uses /api/captcha by default.
When the user solves the CAPTCHA, onVerify gives you a proof token. Send that token with the action you want to protect.
Do not trust onVerify on the client alone. Always verify the proof token on your server before performing the protected action.