Arcjet rate limiting example
This page is protected by Arcjet's rate limiting.
Try it
You are not authenticated – the limit is set to 2 requests every 60 seconds.
Rate limits can be dynamically adjusted e.g. to set a limit based on the authenticated user.
Configure your GitHub OAuth app credentials in .env
to enable sign in.
See the code
The API route imports a centralized Arcjet client which sets base rules.