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

@rayfold/cli

v0.2.1

Published

Rayfold command line: check, lock, hash, explain, gen, shapes, import from OpenAPI or GraphQL, a mock server, a language server, and a dev server with the explorer.

Readme

@rayfold/cli

The rayfold command: validate schemas, catch breaking changes before they ship, see how a query will run, and generate types.

npm install --save-dev @rayfold/cli
npx rayfold check schema.rayfold

| Command | What it does | |---|---| | check <schema> [--against <old schema or lock file>] [--strict] | Validates the schema. With --against, lists every change and fails on breaking ones (a removed field before its sunset date, a narrowed type, ...). | | check <schema> --resolvers <module> | Do the resolvers cover the schema? Every operation wired, a loader for every field that takes arguments, and a warning for a resolver the schema no longer has. | | check <schema> --unused <usage.json> [--since 30d] | Reads a usage snapshot from a running server and lists the operations and fields no client asked for in the window. "Unused" means no traffic was seen, never that nothing can reach it. | | lock <schema> [--out rayfold.lock.json] | Records field ordinals and the schema hash. Commit it and check later versions against it. | | hash <schema> | Prints the schema hash. | | explain <schema> <op> [--shape "{...}"] [--args '{...}'] | Shows the plan: cost, depth, one loader call per level, and which policies push down to the data source. | | gen ts\|kotlin\|java\|graphql <schema> [--out file] [--package pkg] [--class Name] | Generates TypeScript types, Kotlin data classes, Java records (one file, one class), or a GraphQL schema. For GraphQL, what it cannot express is listed on stderr. | | shapes <schema> <file> | Prints the shape id of each shape in the file, for registering trusted shapes. | | import openapi\|graphql <file> [--out schema.rayfold] | Reads a first draft of a schema from an OpenAPI document or a GraphQL SDL. What the source cannot say is listed on stderr. | | mock <schema.rayfold> [--port 4500] | Serves the schema with data the schema itself describes, and the explorer beside it, before any resolver exists. The same call always gives the same answer. | | lsp | Runs the language server for .rayfold over stdin and stdout: errors as you type, completion, hover, go to definition and an outline, for any editor that speaks LSP. | | dev <dir> [--port 4400] | Runs an example from a Rayfold repository checkout (a folder whose src/index.ts exports createBookstore()) with the explorer, WebSocket and MCP. |

In CI, rayfold check schema.rayfold --against rayfold.lock.json exits non-zero on a breaking change.

Apache-2.0.