npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aj-tool

v0.1.0

Published

Arcjet CLI for managing teams, sites, and resources

Readme

Arcjet CLI (aj)

An unofficial command-line interface for managing Arcjet teams, sites, API keys, rules, and request logs.

Why not the MCP server?

Arcjet publishes an MCP server that works well when your AI tooling supports it. But MCP servers need to be held in context for the duration of a session, consuming resources even when Arcjet interaction is only needed occasionally.

A CLI is simpler. Any coding agent, script, or CI pipeline can shell out to aj when needed and move on. All you need in your AGENTS.md or CLAUDE.md is:

Use `aj` to interact with Arcjet (manage teams, sites, API keys, rules, and request logs).

No persistent connections, no protocol negotiation, no context window cost.

I built this for my own workflow. When I showed friends, they wanted it too -- so here it is.

Install

Requires Node.js >= 22.

npm install -g aj-tool

Or run directly with npx:

npx aj-tool team list

Authentication

The CLI uses your Arcjet dashboard session cookie for authentication. To log in:

  1. Sign in to app.arcjet.com in your browser
  2. Open DevTools > Application > Cookies
  3. Copy the value of the session cookie
  4. Run:
aj login
# Paste your session cookie when prompted

For CI/scripting, pass the session directly:

aj login --session <value>
# or set the environment variable
export ARCJET_SESSION=<value>

Your session is stored in ~/.config/arcjet/config.json with 0600 permissions.

Usage

Teams

aj team list
aj team create "My Team"
aj team delete --team-id team_01abc...

Sites

aj site list --team-id team_01abc...
aj site create --team-id team_01abc... "My Site"
aj site rename --site-id site_01abc... "New Name"
aj site delete --site-id site_01abc...

API Keys

aj apikey --site-id site_01abc...

Request Logs

aj request list --site-id site_01abc... --limit 50
aj request get --site-id site_01abc... req_01abc...

Rules

aj rule list --site-id site_01abc...
aj rule create --site-id site_01abc... '{"shield": {"mode": "MODE_LIVE"}}'
aj rule delete --site-id site_01abc... remote_rule_01abc...

Account

aj whoami
aj logout

Global Options

| Flag | Description | |------|-------------| | --json | Output raw JSON (useful for scripting and piping) | | --no-color | Disable colored output | | --verbose | Show debug information including API calls | | --version | Print version | | --help | Show help for any command |

Example:

aj site list --team-id team_01abc... --json | jq '.[].name'

Development

git clone https://github.com/bendechrai/aj-tool.git
cd aj-tool
npm install
npm run build
node bin/aj.js --help

For watch mode during development:

npm run dev    # tsc --watch in one terminal
node bin/aj.js team list   # test in another

How the API Was Documented

This project interacts with Arcjet's management API, which was documented entirely from publicly available sources:

No insider knowledge, private APIs, decompilation, or unauthorized access was used. See docs/API_DISCOVERY_METHODOLOGY.md for full details, and docs/API_REFERENCE.yaml for the OpenAPI spec.

Disclaimer

This is an unofficial project and is not affiliated with, endorsed by, or supported by Arcjet. It interacts with Arcjet's web API, which is undocumented and may change at any time without notice. Use at your own risk.

"Arcjet" is a trademark of Arcjet Limited. This project uses the name solely to describe its functionality.

License

MIT