Arcjet helps developers protect their apps in just a few lines of
code. Implement rate limiting, bot protection, email verification, and defense
against common attacks.
Instance of the Nuxt integration of Arcjet (TypeScript type).
Primarily has a protect() method to make a decision about how a request
should be handled.
ArcjetNuxt#protect(details, properties?)
Make a decision about how to handle a request.
This will analyze the request locally where possible and otherwise call
the Arcjet decision API.
Parameters
event
(ArcjetH3Event, required)
— H3 event that Arcjet needs to make a decision
properties
(object, optional)
— additional properties required for running rules against a request.
Returns
Promise that resolves to an Arcjet decision indicating Arcjet’s decision about
the request (Promise<ArcjetDecision>).
ArcjetNuxt#withRule(rule)
Augment the client with another rule.
Useful for varying rules based on criteria in your handler such as
different rate limit for logged in users.
Parameters
rule
(Array<Rule>, required)
— rule to add to Arcjet
Returns
Arcjet instance augmented with the given rule
(ArcjetNuxt).
ArcjetOptions
Configuration for the Nuxt integration of Arcjet (TypeScript type).
👉 Note:
you cannot pass key here but instead have to configure it in
nuxt.config.ts.
Fields
characteristics
(Array<string>, default: ["src.ip"])
— characteristics to track a user by;
can also be passed to rules
client
(Client, optional)
— client used to make requests to the Arcjet API;
this is configured by adapters (such as @arcjet/nuxt) but can be
overwritten for testing purposes
log
(ArcjetLogger, optional)
— log interface to emit useful information;
this is configured by adapters (such as @arcjet/nuxt) but can be
overwritten for testing purposes
proxies
(Array<string>, optional, example: ["100.100.100.100", "100.100.100.0/24"])
— IP addresses and CIDR ranges of trusted load balancers and proxies
rules
(Array<Array<Rule>>, required)
— rules to apply when protecting a request
baseUrl
(string, optional)
— base URI for HTTP requests to Decide API;
defaults to the environment variable ARCJET_BASE_URL
(if that value is known and allowed)
and the standard production API otherwise
timeout
(number, optional)
— timeout in milliseconds for the Decide API;
defaults to 500 in production and 1000 in development
arcjet
Create a new Nuxt integration of Arcjet.
👉 Tip:
build your initial base client with as many rules as possible outside of a
request handler;
if you need more rules inside handlers later then you can call withRule()
on that base client.
We found that @arcjet/nuxt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 3 open source maintainers collaborating on the project.
Package last updated on 07 Oct 2025
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.