{"id":29629775,"url":"https://github.com/arcjet/example-astro","last_synced_at":"2025-07-21T10:06:31.795Z","repository":{"id":304680950,"uuid":"1018084199","full_name":"arcjet/example-astro","owner":"arcjet","description":"An example Astro application protected by Arcjet.","archived":false,"fork":false,"pushed_at":"2025-07-11T22:32:39.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T18:50:49.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Astro","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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}},"created_at":"2025-07-11T15:21:52.000Z","updated_at":"2025-07-11T22:32:42.000Z","dependencies_parsed_at":"2025-07-14T18:50:53.224Z","dependency_job_id":"ee4e725c-55a9-4ee4-aa88-e1f1ecc7522e","html_url":"https://github.com/arcjet/example-astro","commit_stats":null,"previous_names":["arcjet/example-astro"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/arcjet/example-astro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-astro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-astro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-astro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-astro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcjet","download_url":"https://codeload.github.com/arcjet/example-astro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjet%2Fexample-astro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266278376,"owners_count":23904041,"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":[],"created_at":"2025-07-21T10:06:31.198Z","updated_at":"2025-07-21T10:06:31.780Z","avatar_url":"https://github.com/arcjet.png","language":"Astro","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 Astro 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 Astro application demonstrating the use of multiple\nfeatures.\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.\n\n4. Start the dev server\n\n```bash\nnpm run dev\n```\n\n5. Open [http://localhost:4321](http://localhost:4321) 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- Astro: [Astro](https://astro.build/)\n- Security: [Arcjet](https://arcjet.com/)\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\n[vercel_deploy]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Farcjet%2Fexample-astro\u0026project-name=arcjet-astro-example\u0026repository-name=arcjet-astro-example\u0026developer-id=oac_1GEcKBuKBilVnjToj1QUwdb8\u0026demo-title=Arcjet%20Astro%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-astro\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-astro\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-astro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcjet%2Fexample-astro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjet%2Fexample-astro/lists"}