Skip to content

feat(examples): add Next.js App Router form - #131

Merged
cport1 merged 2 commits into
WebDecoy:mainfrom
CreedTech:feat/nextjs-example-124
Oct 14, 2026
Merged

cport1 merged 2 commits into
WebDecoy:mainfrom
CreedTech:feat/nextjs-example-124

Conversation

@CreedTech

Copy link
Copy Markdown
Contributor

Fixes #124

What and why

Adds a runnable Next.js checkbox form and an App Router endpoint that verifies fcaptcha_token before accepting the demo submission. The example does not send or store messages. Setup instructions and a link from the main README are included.

Checks

  • Example tests: 3 passed, covering valid, missing, replayed, and wrong-host tokens against the local FCaptcha verifier.
  • Next.js production build passed.
  • Node server tests: 114 passed.
  • Chrome smoke check: widget loaded and a missing token was rejected.

This does not change detection or add thresholds. Go, Python, detection E2E, and benchmark suites were not run for this example-only change. Docker was unavailable here, so the smoke check used the Node verifier from source.

Breaking changes

None.

Show an App Router checkbox form and verify its token before accepting the demo submission. Exercise valid, missing, replayed, and wrong-host tokens against the local Node verifier.
Document the two local services, the server-only verification credential, and the focused checks. Link the runnable example from the main README.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cport1
cport1 merged commit 021e09e into WebDecoy:main Oct 14, 2026
11 checks passed
@cport1

cport1 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Merged, thanks a ton! Really clean work too, love that you covered the replay and wrong-host cases in the tests. Nice first one 🙌

@CreedTech

Copy link
Copy Markdown
Contributor Author

Merged, thanks a ton! Really clean work too, love that you covered the replay and wrong-host cases in the tests. Nice first one 🙌

Thanks @cport1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example: Next.js App Router form with server-side verification

3 participants