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

@grapity/grapity

v0.2.0

Published

grapity - API spec registry and compatibility guardian

Downloads

0

Readme

@grapity/grapity

grapity - API spec registry and compatibility guardian.

Quickstart · CLI Reference

Installation

npm install -g @grapity/grapity

Setup

Local mode (SQLite)

Run a registry server on this machine. No external dependencies.

grapity init --local
grapity serve

Self-hosted (PostgreSQL)

grapity serve --db postgresql://user:pass@host:5432/grapity --auth jwt

Remote / SaaS

Connect to a hosted Grapity instance. No server to run.

grapity init --remote --url https://api.grapity.dev --api-key <key>

Commands

grapity init

Configure the registry. Writes ~/.grapity/config.yaml.

--local               Use local mode (SQLite)
--remote              Use remote mode
--url <url>           Registry URL (required for remote)
--api-key <key>       API key (optional, for remote)
--port <port>         Port for local server (default: 3750)
--db <path>           SQLite database path (default: ~/.grapity/registry.db)

grapity serve

Start the registry server and the Hub developer portal. Use --no-hub to skip the portal.

-p, --port <port>     Port to listen on (default: 3750)
--db <url>            SQLite path or postgresql:// URL
--auth <mode>         Auth mode: none | api-key | jwt (default: none)

The database backend is inferred from --db: a postgresql:// URL uses PostgreSQL, anything else (or omitted) uses SQLite.

grapity registry push <file>

Push a spec file to the registry. Validates structure, checks backward compatibility against the latest version, assigns a semver, and stores the result.

--name <name>         Spec name (required)
--type <type>         Spec type: openapi | asyncapi
--description <desc>  Description
--owner <owner>       Owner
--source-repo <url>   Source repository URL
--tags <tags>         Comma-separated tags
--git-ref <ref>       Git commit SHA
--pushed-by <by>      Pusher identity
--force               Force push even with breaking changes
--reason <reason>     Reason for force push (required with --force)
--prerelease          Use pre-release versioning (0.x)

Breaking changes block a push by default. Use --force --reason <reason> to override (recorded in the audit log).

grapity registry validate <file>

Validate a spec against the latest version in the registry without storing anything. Returns the compatibility report.

--against <name>      Spec name to validate against (required)

grapity registry list

List all specs in the registry.

--type <type>         Filter by spec type
--owner <owner>       Filter by owner
--tags <tags>         Comma-separated tag filter

grapity registry get <name>

Get metadata and latest version details for a spec.

grapity registry versions <name>

List all versions of a spec, newest first.

grapity registry spec <name>

Fetch the raw spec document (OpenAPI/AsyncAPI file) for a spec. Prints to stdout, pipe-friendly.

--semver <semver>     Specific version (default: latest)
--format <format>     Output format: json or yaml (default: yaml)

Examples:

grapity registry spec payments-api                          # latest, yaml
grapity registry spec payments-api --format json            # latest, json
grapity registry spec payments-api --semver 1.2.0           # specific version
grapity registry spec payments-api --semver 1.2.0 | yq '.info.title'

grapity gateway list

List all gateway configs in the registry.

grapity gateway push <file>

Push a gateway config YAML file to the registry. Validates declared routes against the registered spec and stores the config.

--pushed-by <by>      Identity of the pusher

grapity gateway get <name>

Show details for a gateway config.

--version <uuid>      Specific version UUID (defaults to latest)

grapity gateway versions <name>

List all versions for a gateway config.

grapity gateway config <name>

Fetch the raw gateway config YAML from the registry. Pipe-friendly.

--version <uuid>      Specific version UUID (defaults to latest)
--output <file>       Write output to a file instead of stdout

grapity gateway preview [file]

Render decK YAML from a gateway config without running decK.

--env <name>          Target environment name (required)
--name <name>         Gateway config name (registry mode)
--version <uuid>      Specific version UUID (registry mode)
--output <file>       Write decK YAML to a file instead of stdout

Examples:

# From a local file
grapity gateway preview ./payments-gateway.config.yaml --env staging

# From the registry
grapity gateway preview --name payments-gateway --env staging

grapity gateway provision --name <name> --env <name>

Provision a gateway config to Kong via decK. Fetches the latest version, generates decK YAML, and runs deck gateway diff against the environment's Kong admin API.

--version <uuid>      Specific config version (defaults to latest)
--sync                Apply changes via deck sync (default is diff)

Requires the deck CLI to be installed.

grapity gateway logs <config-name>

Query gateway logs stored in the registry.

--env <environment>   Filter by environment
--path <path>         Filter by request path
--method <method>     Filter by HTTP method
--status <status>     Filter by response status code
--from <iso-date>     Filter logs from this date (ISO 8601)
--to <iso-date>       Filter logs to this date (ISO 8601)
--limit <n>           Number of logs to show (default: 20)
--offset <n>          Offset for pagination (default: 0)
--stats               Show aggregated endpoint usage stats instead of individual logs

License

Apache-2.0