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

@grantex/conformance

v0.1.4

Published

Conformance test suite for the Grantex protocol

Readme

@grantex/conformance

Conformance test suite for the Grantex protocol. Validates that a server implementation correctly implements the Grantex specification by running black-box HTTP tests against a live endpoint.

Quick Start

npx @grantex/conformance --base-url http://localhost:3001 --api-key YOUR_API_KEY

Installation

npm install -g @grantex/conformance

Usage

grantex-conformance --base-url URL --api-key KEY [options]

Options:
  --base-url <url>       Base URL of the Grantex auth service (required)
  --api-key <key>        API key for authentication (required)
  --suite <name>         Run a specific suite only
  --include <ext,...>    Include optional extensions (comma-separated)
  --format <format>      Output format: text or json (default: text)
  --bail                 Stop on first failure
  -h, --help             Display help

Run all core suites

grantex-conformance --base-url http://localhost:3001 --api-key sk_test_xxx

Run a single suite

grantex-conformance --base-url http://localhost:3001 --api-key sk_test_xxx --suite health

Include optional extensions

grantex-conformance --base-url http://localhost:3001 --api-key sk_test_xxx \
  --include policies,webhooks,scim

JSON output

grantex-conformance --base-url http://localhost:3001 --api-key sk_test_xxx --format json

Core Suites (40 tests)

| Suite | Tests | Description | |-------|-------|-------------| | health | 2 | Health check endpoint and JWKS key validation | | agents | 5 | Agent registration, listing, retrieval, update, deletion | | authorize | 4 | Authorization request creation and consent flow | | token | 3 | Token exchange, invalid code rejection, code reuse prevention | | tokens | 4 | Token verification, revocation, post-revoke verification | | grants | 4 | Grant listing, retrieval, revocation, status validation | | delegation | 5 | Grant delegation, JWT claims, scope enforcement, depth limits, cascade revocation | | audit | 5 | Audit log creation, hash chain integrity, entry retrieval | | security | 5 | Auth enforcement, JWKS algorithm, scope escalation prevention, audit immutability | | rate-limit-headers | 3 | Rate limit header presence and format, JWKS endpoint exemption |

Optional Extensions

| Suite | Tests | Description | |-------|-------|-------------| | policies | 5 | Policy CRUD operations | | webhooks | 3 | Webhook registration and management | | scim | 6 | SCIM 2.0 provisioning endpoints | | sso | 4 | SSO configuration and flow | | anomalies | 3 | Anomaly detection and acknowledgement | | compliance | 4 | Compliance reporting and evidence export |

Programmatic API

import { runConformanceTests } from '@grantex/conformance/runner';
import { reportJson } from '@grantex/conformance/reporter';

const report = await runConformanceTests({
  baseUrl: 'http://localhost:3001',
  apiKey: 'sk_test_xxx',
  format: 'json',
  bail: false,
});

console.log(reportJson(report));

Server Requirements

  • The server must implement the Grantex protocol endpoints
  • An API key with sufficient permissions to create agents, authorize, and manage grants
  • For sandbox mode servers, authorization codes are returned directly
  • For non-sandbox servers, the /v1/consent/:id/approve endpoint must be available

Exit Codes

| Code | Meaning | |------|---------| | 0 | All tests passed | | 1 | One or more tests failed | | 2 | Configuration or runtime error |

License

Apache-2.0