Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Next.js example app demonstrating Arcjet security features like bot detection, rate limiting, email verification, and attack protection.
Arcjet Next.js Example App is an open-source boilerplate Next.js application that demonstrates how to integrate Arcjet's server-side security features — bot detection, rate limiting, email validation, attack protection, sensitive info detection, and prompt injection detection — into a working web app.
This is a reference implementation of the Arcjet security SDK, built with Next.js and deployed live at example.arcjet.com. It takes a standard Next.js project and adds Arcjet integrations, producing a demo where each security feature is isolated on its own page. The repository is maintained by Arcjet and offers one-click deployment to Vercel and Netlify.
Developers who want to see Arcjet's SDK in action before adding it to their own projects. It is for Next.js engineers evaluating Arcjet's security features, backend developers looking for concrete code samples for rate limiting and bot protection, and teams building signup flows that need email verification patterns.
The README explains the local workflow: register a free Arcjet account, install dependencies with npm ci, rename .env.local.example to .env.local and add your Arcjet key, start the dev server with npm run dev, then open http://localhost:3000. Each example page runs the relevant Arcjet middleware in the Next.js request lifecycle.
The example application is open source and can be cloned freely. To run it you register for a free Arcjet account to obtain an API key, and the project does not state any paid requirement for this demo.
You need Node.js and npm, plus an Arcjet API key. After installing dependencies, you copy .env.local.example to .env.local and fill in the key, then start with npm run dev.
The app includes pages for signup form protection, bot protection, rate limiting, attack protection, sensitive info, and prompt injection detection, each linked from the demo homepage.
Yes, the repository includes one-click deploy buttons for Vercel and Netlify. The Arcjet checks run in the serverless functions those platforms provide.
Arcjet Shield is the attack protection feature demonstrated in the example's attack page. It detects suspicious behavior such as SQL injection and cross-site scripting attempts before they reach the application.
