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

quick-gate

v0.2.1

Published

Deterministic quality gate CLI for TypeScript and ESLint projects with bounded auto-repair and escalation evidence

Readme

Quick Gate

npm version License: Apache 2.0 Node.js >= 18 CI

Deterministic quality gate CLI for TypeScript and ESLint projects with bounded auto-repair and explicit escalation evidence. Works with Next.js, React, Vue, Svelte, Angular, or any Node.js project with TypeScript.

Quick Start

Requires Node.js >= 18 and a project with dependencies installed (npm ci).

# From your project directory:
npx quick-gate run --mode canary --changed-files <path>

# Or install globally:
npm install -g quick-gate
quick-gate --help

Create a changed-files list (newline-delimited or JSON array):

echo "app/page.tsx" > /tmp/changed.txt
quick-gate run --mode canary --changed-files /tmp/changed.txt

What It Does

Quick Gate runs up to four deterministic quality gates on your project. In canary mode (default): lint + typecheck + lighthouse. In full mode: all four including build.

  1. lint -- runs your ESLint config
  2. typecheck -- runs TypeScript compiler
  3. build -- runs production build (full mode only)
  4. lighthouse -- runs Lighthouse CI assertions

When gates fail, it produces structured evidence (not just exit codes) and optionally runs a bounded repair loop that:

  • Applies deterministic fixes first (eslint --fix on scoped files)
  • Optionally uses local LLM models (via Ollama) for model-assisted patches
  • Enforces hard limits on attempts, patch size, and wall-clock time
  • Escalates with machine-readable evidence when it can't resolve

Commands

# Run quality gates
quick-gate run --mode canary|full --changed-files <path>

# Generate agent brief from failures
quick-gate summarize --input .quick-gate/failures.json

# Bounded repair loop
quick-gate repair --input .quick-gate/failures.json [--max-attempts 3] [--deterministic-only]

Artifacts

Generated in your project under .quick-gate/:

| File | Description | |------|-------------| | failures.json | Structured findings with severity, thresholds, evidence | | run-metadata.json | Gate execution traces (commands, stdout, stderr) | | agent-brief.json | Priority actions + retry policy for downstream agents | | agent-brief.md | Human-readable summary | | repair-report.json | Repair attempt history (on success) | | escalation.json | Escalation reason + evidence (when repair fails) |

Repair Policy

| Parameter | Default | Description | |-----------|---------|-------------| | max attempts | 3 | Total repair attempts before escalation | | max patch lines | 150 | Per-attempt patch size budget | | no-improvement abort | 2 | Consecutive no-improvement attempts before abort | | time cap | 20 min | Wall-clock limit for entire repair loop |

Escalation reason codes: NO_IMPROVEMENT, PATCH_BUDGET_EXCEEDED, ARCHITECTURAL_CHANGE_REQUIRED, FLAKY_EVALUATOR, UNKNOWN_BLOCKER

Model-Assisted Repair (Optional)

Requires Ollama installed locally. Without Ollama, Quick Gate still works -- it runs deterministic fixes only and escalates what it can't resolve.

With Ollama:

  • Hint model (default: qwen2.5:1.5b): Generates repair hints
  • Patch model (default: mistral:7b): Generates scoped edit plans
  • Safety: edit plans are scored for relevance and enforced against patch-line budget before apply

Environment overrides:

QUICK_GATE_HINT_MODEL=qwen3:4b
QUICK_GATE_PATCH_MODEL=mistral:7b
QUICK_GATE_MODEL_TIMEOUT_MS=60000
QUICK_GATE_ALLOW_HINT_ONLY_PATCH=0

GitHub Action

Add Quick Gate to any PR workflow with one step:

# .github/workflows/quick-gate.yml
name: Quick Gate
on:
  pull_request:
    branches: [main]
permissions:
  contents: read
  pull-requests: write
jobs:
  quality-gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - run: npm ci
      - uses: roli-lpci/quick-gate-js/.github/actions/quick-gate@main
        with:
          mode: canary
          repair: "true"
          post-comment: "true"

This will:

  • Detect changed files from the PR diff
  • Run lint, typecheck, and Lighthouse gates
  • Attempt deterministic repair (eslint --fix) on failures
  • Post a structured findings comment on the PR
  • Upload .quick-gate/ artifacts for inspection

No Ollama required -- CI runs in deterministic-only mode by default.

Configuration

Create quick-gate.config.json in your project root to override defaults:

{
  "commands": {
    "lint": "npm run lint",
    "typecheck": "npm run typecheck",
    "build": "npm run build",
    "lighthouse": "npm run ci:lighthouse"
  },
  "policy": {
    "maxAttempts": 3,
    "maxPatchLines": 150,
    "abortOnNoImprovement": 2,
    "timeCapMs": 1200000
  }
}

License

Apache 2.0 -- See LICENSE for details.