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

@rgaa-checker/cli

v1.0.0

Published

CLI pour auditer l'accessibilité RGAA de vos sites web - Intégration CI/CD

Readme

@rgaa-checker/cli

CLI pour auditer l'accessibilité RGAA de vos sites web. Intégrez les audits d'accessibilité dans vos pipelines CI/CD.

Installation

npm install -g @rgaa-checker/cli

Configuration

Obtenir une clé API

  1. Connectez-vous sur rgaa-checker.com
  2. Accédez à Tableau de bord > Clés API
  3. Créez une nouvelle clé API

Configurer la clé

# Option 1: Commande CLI
rgaa-checker auth set-key rgaa_ci_votre_cle

# Option 2: Variable d'environnement
export RGAA_CHECKER_API_KEY=rgaa_ci_votre_cle

Utilisation

Scan simple

rgaa-checker scan https://example.com

Avec seuil personnalisé

rgaa-checker scan https://example.com --threshold 90

Sortie JSON

rgaa-checker scan https://example.com --format json

Sortie JUnit (pour CI)

rgaa-checker scan https://example.com --format junit --output report.xml

Avec authentification Basic

rgaa-checker scan https://staging.example.com \
  --basic-user admin \
  --basic-pass secret

Fichier de configuration

Créez un fichier .rgaachecker.json à la racine de votre projet :

rgaa-checker init

Exemple de configuration :

{
  "url": "https://staging.example.com",
  "threshold": 80,
  "timeout": 60000,
  "auth": {
    "type": "basic",
    "username": "$BASIC_USER",
    "password": "$BASIC_PASS"
  }
}

Les variables préfixées par $ sont remplacées par les variables d'environnement correspondantes.

Intégration CI/CD

GitHub Actions

name: Accessibility Check

on: [push, pull_request]

jobs:
  rgaa-audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install RGAA Checker CLI
        run: npm install -g @rgaa-checker/cli

      - name: Run Accessibility Audit
        env:
          RGAA_CHECKER_API_KEY: ${{ secrets.RGAA_CHECKER_API_KEY }}
        run: rgaa-checker scan ${{ vars.STAGING_URL }} --threshold 80

GitLab CI

accessibility:
  stage: test
  image: node:20
  script:
    - npm install -g @rgaa-checker/cli
    - rgaa-checker scan $CI_ENVIRONMENT_URL --threshold 80 --format junit --output accessibility.xml
  artifacts:
    reports:
      junit: accessibility.xml
  variables:
    RGAA_CHECKER_API_KEY: $RGAA_CHECKER_API_KEY

Jenkins

pipeline {
    agent any
    environment {
        RGAA_CHECKER_API_KEY = credentials('rgaa-checker-api-key')
    }
    stages {
        stage('Accessibility') {
            steps {
                sh 'npm install -g @rgaa-checker/cli'
                sh 'rgaa-checker scan ${STAGING_URL} --threshold 80'
            }
        }
    }
}

Codes de sortie

| Code | Signification | |------|---------------| | 0 | Audit réussi (score >= seuil) | | 1 | Audit échoué (score < seuil ou erreur) |

Commandes

| Commande | Description | |----------|-------------| | rgaa-checker scan <url> | Lancer un audit | | rgaa-checker auth set-key <key> | Configurer la clé API | | rgaa-checker auth status | Afficher le statut d'authentification | | rgaa-checker auth logout | Supprimer la clé API | | rgaa-checker init | Créer .rgaachecker.json | | rgaa-checker config | Afficher la configuration |

Options de scan

| Option | Description | Défaut | |--------|-------------|--------| | -t, --threshold <n> | Score minimum (0-100) | 80 | | --timeout <ms> | Timeout en ms | 60000 | | -f, --format <fmt> | Format: text, json, junit | text | | -o, --output <file> | Fichier de sortie | stdout | | --basic-user <user> | Utilisateur Basic Auth | - | | --basic-pass <pass> | Mot de passe Basic Auth | - |

Troubleshooting

Erreur "No API key configured"

Configurez votre clé API :

# Via CLI
rgaa-checker auth set-key rgaa_ci_votre_cle

# Ou via variable d'environnement
export RGAA_CHECKER_API_KEY=rgaa_ci_votre_cle

Erreur "Invalid API key"

  • Vérifiez que la clé commence par rgaa_ci_
  • Vérifiez que la clé n'a pas été révoquée dans le dashboard
  • Vérifiez l'orthographe de la variable d'environnement

Erreur "Quota exceeded"

Les scans CI partagent le quota avec les scans web :

  • Découverte : 50 scans/mois
  • Pro : 500 scans/mois

Attendez le prochain mois ou passez à un plan supérieur.

Timeout sur une SPA

Pour les applications single-page qui chargent du contenu dynamiquement :

rgaa-checker scan https://spa.example.com --timeout 120000

Échec de connexion à l'API

Vérifiez votre connexion internet et que l'API est accessible :

curl -s https://rgaa-checker.com/api/ci/scan | head -1

Environnement de staging protégé

Pour les environnements avec Basic Auth :

rgaa-checker scan https://staging.example.com \
  --basic-user $STAGING_USER \
  --basic-pass $STAGING_PASS

URL API personnalisée (développement)

Pour pointer vers une autre instance de l'API :

export RGAA_CHECKER_API_URL=http://localhost:3000/api/ci/scan
rgaa-checker scan https://example.com

Support

Licence

MIT