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

@xeopsai/scanner-cli

v1.0.0

Published

XeOps Security Scanner CLI for CI/CD pipelines

Readme

@xeops/scanner-cli

XeOps Security Scanner CLI for CI/CD pipelines.

Installation

npm install -g @xeops/scanner-cli

Or use with npx:

npx @xeops/scanner-cli scan --url https://example.com --api-key YOUR_KEY

Usage

Start a Scan

xeops-scan scan \
  --url https://example.com \
  --api-key YOUR_API_KEY \
  --wait \
  --fail-on-high

Options:

  • -u, --url <url>: Target URL to scan (required)
  • -k, --api-key <key>: XeOps API key (required)
  • -e, --endpoint <endpoint>: API endpoint (default: production)
  • -w, --wait: Wait for scan to complete
  • --timeout <seconds>: Scan timeout in seconds (default: 1800)
  • --pdf <path>: Download PDF report to path
  • --validate-poc: Validate vulnerabilities with PoC (default: true)
  • --fail-on-high: Exit with code 1 if high/critical vulnerabilities found
  • --fail-on-medium: Exit with code 1 if medium+ vulnerabilities found
  • --json: Output results as JSON

Check Scan Status

xeops-scan status \
  --scan-id SCAN_ID \
  --api-key YOUR_API_KEY

Download PDF Report

xeops-scan report \
  --scan-id SCAN_ID \
  --api-key YOUR_API_KEY \
  --output report.pdf \
  --validate-poc

Check Usage

xeops-scan usage --api-key YOUR_API_KEY

CI/CD Examples

GitHub Actions

name: Security Scan

on:
  pull_request:
  push:
    branches: [main]

jobs:
  security-scan:
    runs-on: ubuntu-latest
    steps:
      - name: Security Scan
        run: |
          npx @xeops/scanner-cli scan \
            --url https://staging.example.com \
            --api-key ${{ secrets.XEOPS_API_KEY }} \
            --wait \
            --fail-on-high \
            --pdf security-report.pdf

      - name: Upload Report
        uses: actions/upload-artifact@v3
        if: always()
        with:
          name: security-report
          path: security-report.pdf

GitLab CI

security_scan:
  stage: test
  script:
    - npx @xeops/scanner-cli scan
        --url https://staging.example.com
        --api-key $XEOPS_API_KEY
        --wait
        --fail-on-high
        --pdf security-report.pdf
  artifacts:
    when: always
    paths:
      - security-report.pdf
    reports:
      junit: security-report.xml

Jenkins

pipeline {
    agent any
    environment {
        XEOPS_API_KEY = credentials('xeops-api-key')
    }
    stages {
        stage('Security Scan') {
            steps {
                sh '''
                    npx @xeops/scanner-cli scan \
                        --url https://staging.example.com \
                        --api-key $XEOPS_API_KEY \
                        --wait \
                        --fail-on-high \
                        --pdf security-report.pdf
                '''
            }
        }
    }
    post {
        always {
            archiveArtifacts artifacts: 'security-report.pdf', fingerprint: true
        }
    }
}

CircleCI

version: 2.1

jobs:
  security-scan:
    docker:
      - image: cimg/node:16.0
    steps:
      - checkout
      - run:
          name: Security Scan
          command: |
            npx @xeops/scanner-cli scan \
              --url https://staging.example.com \
              --api-key $XEOPS_API_KEY \
              --wait \
              --fail-on-high \
              --pdf security-report.pdf
      - store_artifacts:
          path: security-report.pdf

Exit Codes

  • 0: Success (no vulnerabilities above threshold)
  • 1: Failure (vulnerabilities found or error occurred)

Use --fail-on-high or --fail-on-medium to control when the CLI exits with code 1.

Environment Variables

You can use environment variables instead of CLI flags:

  • XEOPS_API_KEY: API key
  • XEOPS_API_ENDPOINT: API endpoint URL

License

MIT