{"id":28363767,"url":"https://github.com/arcjet/example-nextjs-form","last_synced_at":"2025-10-16T12:13:21.299Z","repository":{"id":293959773,"uuid":"985614936","full_name":"arcjet/example-nextjs-form","owner":"arcjet","description":"An example Next.js form + API route protected by Arcjet bot detection, rate limiting, and Shield WAF.","archived":false,"fork":false,"pushed_at":"2025-10-07T16:57:44.000Z","size":284,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-07T18:43:01.337Z","etag":null,"topics":["arcjet","bot-detection","developer-tools","javascript","nextjs","nodejs","rate-limiting","react-hook-form","security","security-tools","typescript"],"latest_commit_sha":null,"homepage":"","language":"CSS","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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-18T06:34:32.000Z","updated_at":"2025-10-07T16:57:48.000Z","dependencies_parsed_at":"2025-05-18T07:35:26.073Z","dependency_job_id":"9da01898-6345-4da3-8adb-5c97b79dfa64","html_url":"https://github.com/arcjet/example-nextjs-form","commit_stats":null,"previous_names":["arcjet/example-nextjs-form"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/arcjet/example-nextjs-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcjet","download_url":"https://codeload.github.com/arcjet/example-nextjs-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-nextjs-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279189393,"owners_count":26122728,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","rate-limiting","react-hook-form","security","security-tools","typescript"],"created_at":"2025-05-28T19:39:00.935Z","updated_at":"2025-10-16T12:13:21.293Z","avatar_url":"https://github.com/arcjet.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\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# Arcjet example: Next.js form\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 how to protect a Next.js\nform which uses an API route. It also uses [Arcjet\nNosecone](https://docs.arcjet.com/nosecone/quick-start) to configure security\nheaders in middleware.\n\n## Features\n\n- [Bot protection](https://docs.arcjet.com/bot-protection/quick-start) shows how\n  the form can be protected from automated clients.\n- [Rate limiting](https://docs.arcjet.com/rate-limiting/quick-start) shows a\n  rate limit configuration that limits the number of requests from a single IP.\n- [Attack protection](https://docs.arcjet.com/shield/quick-start) demonstrates\n  Arcjet Shield, which detects suspicious behavior, such as SQL injection and\n  cross-site scripting attacks.\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.\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## Contributing\n\nAll development for Arcjet examples is done in the\n[`arcjet/examples` repository](https://github.com/arcjet/examples).\n\nYou are welcome to open an issue here or in\n[`arcjet/examples`](https://github.com/arcjet/examples/issues) directly.\nHowever, please direct all pull requests to\n[`arcjet/examples`](https://github.com/arcjet/examples/pulls). Take a look at\nour\n[contributing guide](https://github.com/arcjet/examples/blob/main/CONTRIBUTING.md)\nfor more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjet%2Fexample-nextjs-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcjet%2Fexample-nextjs-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjet%2Fexample-nextjs-form/lists"}