GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - arcjet/example-nextjs: An example Next.js application protected by Arcjet.

BranchesTags
Open more actions menu

Latest commit

 

History

202 Commits
202 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github/workflows
.github/workflows
 
 
.trunk
.trunk
 
 
app
app
 
 
assets
assets
 
 
components
components
 
 
config
config
 
 
lib
lib
 
 
public
public
 
 
styles
styles
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.env.local.example
.env.local.example
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
compose.yaml
compose.yaml
 
 
environment.d.ts
environment.d.ts
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.mjs
next.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
proxy.ts
proxy.ts
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Arcjet Logo

Deploy with Vercel     Deploy to Netlify

Arcjet example app

Arcjet helps developers protect their apps in just a few lines of code. Bot detection. Rate limiting. Email validation. Attack protection. Data redaction. A developer-first approach to security.

This is an example Next.js application demonstrating the use of multiple features. It is deployed at https://example.arcjet.com.

Features

  • Signup form protection uses Arcjet's server-side email verification configured to block disposable providers and ensure that the domain has a valid MX record. It also includes rate limiting and bot protection to prevent automated abuse.
  • Bot protection shows how a page can be protected from automated clients.
  • Rate limiting shows the use of different rate limit configurations depending on the authenticated user. A logged-in user can make more requests than an anonymous user.
  • Attack protection demonstrates Arcjet Shield, which detects suspicious behavior, such as SQL injection and cross-site scripting attacks.
  • Sensitive info protects against clients sending you sensitive information such as PII that you do not wish to handle.
  • Prompt injection detection analyzes user prompts for injection attacks such as jailbreaks, role-play escapes, or instruction overrides.

Run locally

  1. Register for a free Arcjet account.

  2. Install dependencies:

npm ci
  1. Rename .env.local.example to .env.local and add your Arcjet key

  2. Start the dev server

npm run dev
  1. Open http://localhost:3000 in your browser.

Need help?

Check out the docs, contact support, or join our Discord server.

Stack

  • App: Next.js
  • Form handling: React Hook Form (see also our full form protection example)
  • Client-side validation: Zod
  • Security: Arcjet

Contributing

All development for Arcjet examples is done in the arcjet/examples repository.

You are welcome to open an issue here or in arcjet/examples directly. However, please direct all pull requests to arcjet/examples. Take a look at our contributing guide for more information.

About

An example Next.js application protected by Arcjet.

example.arcjet.com

Topics

arcjetbot-detectiondeveloper-toolsjavascriptnextjsnodejspii-detectionrate-limitingsecuritysecurity-toolsserverlesstypescript

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity
Custom properties

Stars

59 stars

Watchers

4 watching

Forks

10 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.