# Arcjet Examples

This directory contains examples of how to use Arcjet.

The [`node-guard-policy`](node-guard-policy) example demonstrates a remotely
configured Guard policy with server and local inputs.

The [`nextjs-guard-policy`](nextjs-guard-policy) example demonstrates the same
AI agent policy scenarios in a Next.js application.

## Example app

Try an Arcjet protected Next.js app live at
[`example.arcjet.com`][example-next-url]

## Arcjet development

To develop Arcjet, use the following commands before starting the example:

```bash
export ARCJET_LOG_LEVEL=DEBUG
export ARCJET_BASE_URL=https://decide.arcjet.orb.local
export NODE_TLS_REJECT_UNAUTHORIZED=0 # Allows local self-signed certs
```

[example-next-source]: https://github.com/arcjet/example-nextjs
[example-next-url]: https://example.arcjet.com
