{"id":19215178,"url":"https://github.com/arcjet/example-nextjs","last_synced_at":"2025-07-11T10:07:17.623Z","repository":{"id":242536339,"uuid":"805423775","full_name":"arcjet/example-nextjs","owner":"arcjet","description":"An example Next.js application protected by Arcjet.","archived":false,"fork":false,"pushed_at":"2025-07-07T23:59:02.000Z","size":10475,"stargazers_count":36,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-08T01:53:33.273Z","etag":null,"topics":["arcjet","bot-detection","developer-tools","javascript","nextjs","nodejs","pii-detection","rate-limiting","security","security-tools","serverless","typescript"],"latest_commit_sha":null,"homepage":"https://example.arcjet.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arcjet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-24T14:40:38.000Z","updated_at":"2025-07-07T23:59:05.000Z","dependencies_parsed_at":"2024-10-24T14:17:57.532Z","dependency_job_id":"9e5b5181-466a-4434-8cbf-0e650c9e39cc","html_url":"https://github.com/arcjet/example-nextjs","commit_stats":null,"previous_names":["arcjet/arcjet-js-example","arcjet/example-nextjs"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/arcjet/example-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcjet","download_url":"https://codeload.github.com/arcjet/example-nextjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264781089,"owners_count":23662790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arcjet","bot-detection","developer-tools","javascript","nextjs","nodejs","pii-detection","rate-limiting","security","security-tools","serverless","typescript"],"created_at":"2024-11-09T14:12:55.319Z","updated_at":"2025-07-11T10:07:17.618Z","avatar_url":"https://github.com/arcjet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://arcjet.com\" target=\"_arcjet-home\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://arcjet.com/logo/arcjet-dark-lockup-voyage-horizontal.svg\"\u003e\n    \u003cimg src=\"https://arcjet.com/logo/arcjet-light-lockup-voyage-horizontal.svg\" alt=\"Arcjet Logo\" height=\"128\" width=\"auto\"\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n[![Deploy with Vercel][vercel_button]][vercel_deploy]\n\u0026nbsp; \u0026nbsp;\n[![Deploy to Netlify][netlify_button]][netlify_deploy]\n\n# Arcjet example app\n\n[Arcjet](https://arcjet.com) helps developers protect their apps in just a few\nlines of code. Bot detection. Rate limiting. Email validation. Attack\nprotection. Data redaction. A developer-first approach to security.\n\nThis is an example Next.js application demonstrating the use of multiple\nfeatures. It is deployed at\n[https://example.arcjet.com](https://example.arcjet.com).\n\n## Features\n\n- [Signup form protection](https://example.arcjet.com/signup) uses Arcjet's\n  server-side email verification configured to block disposable providers and\n  ensure that the domain has a valid MX record. It also includes rate limiting\n  and bot protection to prevent automated abuse.\n- [Bot protection](https://example.arcjet.com/bots) shows how a page can be\n  protected from automated clients.\n- [Rate limiting](https://example.arcjet.com/rate-limiting) shows the use of\n  different rate limit configurations depending on the authenticated user. A\n  logged-in user can make more requests than an anonymous user.\n- [Attack protection](https://example.arcjet.com/attack) demonstrates Arcjet\n  Shield, which detects suspicious behavior, such as SQL injection and\n  cross-site scripting attacks.\n- [Sensitive info](https://example.arcjet.com/sensitive-info) protects against\n  clients sending you sensitive information such as PII that you do not wish to\n  handle.\n\n## Run locally\n\n1. [Register for a free Arcjet account](https://app.arcjet.com).\n\n2. Install dependencies:\n\n```bash\nnpm ci\n```\n\n3. Rename `.env.local.example` to `.env.local` and add your Arcjet key. If you\n   want to test the rate limiting authentication, you will also need to add an\n   Auth.js secret and [create a GitHub OAuth\n   app](https://authjs.dev/guides/configuring-github).\n\n4. Start the dev server\n\n```bash\nnpm run dev\n```\n\n5. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Need help?\n\nCheck out [the docs](https://docs.arcjet.com/), [contact\nsupport](https://docs.arcjet.com/support), or [join our Discord\nserver](https://arcjet.com/discord).\n\n## Stack\n\n- Auth: [Auth.js](https://authjs.dev/)\n- App: [Next.js](https://nextjs.org/)\n- Form handling: [React Hook Form](https://react-hook-form.com/) (see also [our\n  full form protection\n  example](https://github.com/arcjet/example-nextjs-form))\n- Client-side validation: [Zod](https://zod.dev/)\n- Security: [Arcjet](https://arcjet.com/)\n\n[vercel_deploy]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Farcjet%2Fexample-nextjs\u0026project-name=arcjet-example\u0026repository-name=arcjet-example\u0026developer-id=oac_1GEcKBuKBilVnjToj1QUwdb8\u0026demo-title=Arcjet%20Example%20\u0026demo-description=Example%20rate%20limiting%2C%20bot%20protection%2C%20email%20verification%20%26%20form%20protection.\u0026demo-url=https%3A%2F%2Fgithub.com%2Farcjet%2Fexample-nextjs\u0026demo-image=https%3A%2F%2Fapp.arcjet.com%2Fimg%2Fexample-apps%2Fvercel%2Fdemo-image.jpg\u0026integration-ids=oac_1GEcKBuKBilVnjToj1QUwdb8\u0026external-id=arcjet-js-example◊\n[vercel_button]: https://vercel.com/button\n[netlify_deploy]: https://app.netlify.com/start/deploy?repository=https://github.com/arcjet/example-nextjs\n[netlify_button]: https://www.netlify.com/img/deploy/button.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjet%2Fexample-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcjet%2Fexample-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjet%2Fexample-nextjs/lists"}