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.

See the code

The API route imports a centralized Arcjet client which sets base rules.

What next?