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

@xorasecurity/cli

v0.2.0

Published

Xora CLI — exploit validation against your registered environments.

Readme

@xorasecurity/cli

The Xora CLI runs an exploit-validation against a deployed pre-prod environment registered in the Xora dashboard. It's the binary the CI Integrations page snippet points at.

Install

npm install -g @xorasecurity/cli

Or zero-install for a single CI run:

npx @xorasecurity/cli validate --application your-app-slug --env staging --block-on-exploit

Pin a major version (@xorasecurity/cli@1) in CI snippets so patches roll in but breaking-change majors don't.

Auth

Get an API key from /api-keys and store it once per machine:

xora auth login --api-key <key>
xora auth login --api-key <key> --check   # also verify it works

In CI, set XORA_API_KEY as a repo or org secret — the env var shadows the stored file.

Commands

xora validate

Submits a run, streams logs, and exits with the right code.

xora validate --application your-app-slug --env staging --block-on-exploit

Flags:

| Flag | Description | |---|---| | --application <slug> | Required. Application slug from the dashboard. | | --env <name> | Required. Environment name registered for that application. | | --block-on-exploit | Exit 1 when the run completes with exploits. | | --pr <number> | Associate the run with a PR (auto-detected on GH Actions). | | --config <path> | Explicit xora.config.json path. | | -C, --cwd <dir> | Project root. | | --force-project-map | Regenerate .xora/project-map.json. |

Both required flags can be supplied via xora.config.json's defaultApplication / defaultEnv keys instead of the command line.

Exit codes:

  • 0 — clean run (or exploits found without --block-on-exploit).
  • 1 — exploits found with --block-on-exploit, or scan failed.
  • 2 — CLI-side error (bad flag, no API key, network/config error).

xora whoami

Prints the org + API-key label the stored credentials resolve to. Useful as a fail-fast probe before a long CI step.

$ xora whoami
org:   acme  (Acme Inc.)
key:   ci-default  [read_write]

xora auth login / xora auth logout

Manage stored credentials. Stored at ~/.config/xora/credentials.json with mode 0600.

xora.config.json

Optional config file at the repo root. Lookup precedence (highest first): --config <path>, XORA_CONFIG env var, xora.config.json walked up to the repo root.

{
  "defaultEnv": "staging",
  "defaultApplication": "acme-app",
  "stack": {
    "framework": "nextjs"
  }
}

stack is a partial override — any field you set wins over detection; any field you leave out falls back to the auto-detected value.

CI

The canonical GitHub Actions snippet — drop it into your repo as .github/workflows/xora.yml (or paste it from the dashboard):

name: Xora exploit validation
on:
  workflow_run:
    workflows: ["Deploy to staging"]
    types: [completed]
jobs:
  xora:
    if: ${{ github.event.workflow_run.conclusion == 'success' }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm install -g @xorasecurity/cli@1
      - run: xora validate --application your-app-slug --env staging --block-on-exploit
        env:
          XORA_API_KEY: ${{ secrets.XORA_API_KEY }}

The trigger is workflow_run chained off your deploy workflow because Xora attacks the deployed environment — not the PR source. Replace "Deploy to staging" with the name of your own deploy workflow.

Environment variables

| Var | Purpose | |---|---| | XORA_API_KEY | API key (shadows stored credentials file). | | XORA_API_BASE_URL | Override API origin (defaults to https://app.getxora.ai). | | XORA_CONFIG | Path to xora.config.json. | | NO_COLOR | Suppress ANSI colors. | | FORCE_COLOR | Force ANSI colors even in non-TTY. |

License

UNLICENSED — proprietary, distributed for use with the Xora service.