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

@restormel/keys-cli

v0.1.17

Published

CLI for Restormel Keys: init, add keys, validate, doctor, cost estimate.

Readme

@restormel/keys-cli

CLI for Restormel Keys: reduce setup friction for Next.js, React, SvelteKit, and Astro.

Install

Use current npm release (≥0.1.4 for keys patch + @restormel/[email protected] train; latest trains with core/doctor/validate). v0.1.0 had broken deps.

pnpm add -D @restormel/keys-cli

If you only need checks (no Keys scaffolding), use the standalone wedge CLIs:

npx @restormel/doctor
npx @restormel/validate

Commands

| Command | Description | |--------|-------------| | keys init | Detect framework, generate config, suggest packages | | keys add <provider> | Prompt for API key, validate, store (openai | anthropic | google) | | keys list | Show stored keys (masked) | | keys validate | Wrapper for restormel-validate (exit 1 if invalid — CI-friendly) | | keys doctor [--report] | Wrapper for restormel-doctor (setup/health checks); --report prints a pre-filled GitHub issue URL when checks fail | | keys estimate <model> --input <n> --output <n> | Cost estimate for a model | | keys login | Device login: browser-approved Gateway key in the terminal (OAuth-style device flow) | | keys patch | One-command patch upgrade for installed Restormel packages + optional catalog verification | | keys catalog fetch | Fetch public GET /keys/dashboard/api/catalog (summary or --json; optional --base-url, paging, --include-unhealthy, --skip-allowlist) |

Canonical catalog (public feed)

Verify connectivity and inspect contract version (uses RESTORMEL_KEYS_BASE or https://restormel.dev):

npx @restormel/keys-cli catalog fetch
npx @restormel/keys-cli catalog fetch --json | jq .contractVersion

One-command patch upgrades

npx @restormel/keys-cli patch

This command detects your package manager, updates installed @restormel/* packages to latest patch-compatible versions, and verifies the canonical provider/model catalog endpoint (/keys/dashboard/api/catalog) when possible.

  • In pnpm workspaces, running from the workspace root uses a recursive upgrade (pnpm up -r) so you do not hit root add checks.
  • If you prefer a preview first, use npx @restormel/keys-cli patch --dry-run.

Config and storage

  • Config (restormel.config.json): framework and provider list only — no secrets.
  • Key store (.restormel/key-store.json): holds API keys for local use. Add .restormel/ to .gitignore; never commit.

Gate

In a fresh Next.js (App Router) project, npx @restormel/doctor should run and report framework and package status. Run keys init first to create config; then restormel-doctor exits 0 when setup is OK.