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

@olympio/quality-config

v1.2.0

Published

Unified quality, security and LGPD compliance tooling for multi-stack projects

Readme

@olympio/quality-config

Unified quality, security and LGPD compliance tooling for multi-stack projects.

Supported Stacks

| Stack | Key | |---|---| | React (Vite/CRA) | react | | Next.js | nextjs | | Node.js (Express/NestJS/Fastify) | node | | React Native | react-native | | Python (Django) | python-django | | Python (FastAPI) | python-fastapi |

Installation

npm install -D @olympio/quality-config

Quick Start

# 1. Initialize configs
npx quality-config init --stack nextjs --project-key my-app

# 2. Install pre-push hook
npx quality-config hook install

# 3. Verify setup
npx quality-config doctor

# 4. Run scan manually
npx quality-config scan

Commands

quality-config init

Generates all quality and compliance config files in the current project.

npx quality-config init --stack <stack> [options]

| Option | Description | |---|---| | --stack <stack> | Project stack (required) | | --project-key <key> | SonarQube project key (defaults to folder name) | | --project-name <name> | SonarQube display name (defaults to folder name) | | --skip-workflow | Skip GitHub Actions workflow generation | | --skip-docker | Skip docker-compose generation | | --skip-lgpd | Skip LGPD compliance rules |

Generated files:

your-project/
├── sonar-project.properties        # SonarQube config (stack-specific)
├── docker-compose.sonar.yml        # Local SonarQube server
├── .sonarqube-lgpd-rules.json      # LGPD/GDPR compliance rules
└── .github/
    └── workflows/
        └── sonarqube.yml           # CI pipeline (scan + quality gate)

quality-config scan

Runs a full SonarQube analysis via Docker. Automatically starts SonarQube if not running, generates a token, and runs the scanner.

npx quality-config scan

Requires Docker to be running.

quality-config hook install

Installs a git pre-push hook that runs quality-config scan before every push. If the scan fails, the push is blocked.

npx quality-config hook install

Skip the hook on a specific push with git push --no-verify.

quality-config hook uninstall

Removes the pre-push hook.

npx quality-config hook uninstall

quality-config doctor

Checks if all quality configs are present and valid. Verifies Docker, git hooks, and warns about hardcoded tokens.

npx quality-config doctor

quality-config report

Generates an LGPD compliance report in reports/lgpd/.

npx quality-config report

quality-config update

Updates shared configs (docker-compose) to the latest version without overwriting project-specific settings like sonar-project.properties.

npx quality-config update

CI/CD Setup

Add these secrets to your GitHub repository:

| Secret | Description | |---|---| | SONAR_TOKEN | SonarQube authentication token | | SONAR_HOST_URL | SonarQube server URL (e.g. https://sonar.yourcompany.com) |

The generated workflow runs on every push to main/develop and on pull requests.

LGPD Compliance

The package includes a curated set of SonarQube rules mapped to LGPD articles:

| Rule | LGPD Article | |---|---| | Hardcoded credentials | Art. 46 - Information security | | Insecure cookies | Art. 46 - Information security | | HTTP URLs (no HTTPS) | Art. 46 - Information security | | SQL injection | Art. 46 - Information security | | XSS vulnerabilities | Art. 46 - Information security | | Sensitive data in logs | Art. 46 - Information security | | Insecure CORS | Art. 46 - Information security | | Weak cryptography | Art. 46 - Information security |

Monorepo Usage

After running init, edit sonar-project.properties to point to your specific source directories:

sonar.sources=frontend/src,backend/src
sonar.tests=backend/test
sonar.exclusions=**/node_modules/**,**/dist/**,**/prisma/migrations/**

License

MIT