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

@graphox/cli

v0.3.4

Published

Graphox CLI - High-performance GraphQL toolset

Readme

@graphox/cli

NPM package for installing the Graphox CLI - a high-performance GraphQL toolset for TypeScript monorepos.

Installation

pnpm add @graphox/cli
# or
npm install @graphox/cli
# or
yarn add @graphox/cli

Usage

Once installed, you can use the Graphox command:

# Start the Language Server
pnpm graphox lsp

# Validate GraphQL files
pnpm graphox check

# Generate TypeScript types
pnpm graphox codegen
pnpm graphox codegen --clean
pnpm graphox codegen --watch

# Run performance benchmarks
pnpm graphox benchmark

Global Installation

pnpm add -g @graphox/cli

# Now you can use it directly
graphox lsp
graphox check
graphox codegen

Supported Platforms

This package automatically downloads the correct binary for your platform:

  • macOS: x86_64 (Intel) and ARM64 (Apple Silicon)
  • Linux: x86_64 and ARM64
  • Windows: x86_64 and ARM64

Features

  • Language Server (LSP): Real-time GraphQL validation, autocomplete, go-to-definition, hover docs, and more
  • Type Generation: TypeScript type generation from GraphQL operations
  • Validation: Granular diagnostics for GraphQL schemas and operations
  • Fragment Tracking: Automatic fragment dependency resolution across packages

Configuration

Create a graphox.yaml file in your project root. See the main documentation for details.

Editor Support

To get validation and autocomplete in your editor, add the following line at the top of your graphox.yaml file:

# yaml-language-server: $schema=node_modules/@graphox/cli/graphox.schema.json

Or, if you use VS Code with the YAML extension, you can add the following to your workspace settings:

{
  "yaml.schemas": {
    "node_modules/@graphox/cli/graphox.schema.json": "graphox.yaml"
  }
}

Local Development

If you're developing the CLI itself, you can use a local build instead of downloading from releases:

Option 1: Using Environment Variable (Recommended)

# Build the CLI locally
cd /path/to/graphox
cargo build --release

# Set environment variable to point to your local build
export GRAPHOX_LOCAL_BUILD=/path/to/graphox/target/release/graphox

# Now install the npm package - it will use your local build
cd /path/to/your/project
pnpm add /path/to/graphox/npm/graphox-cli

The install script will copy your local binary instead of downloading from GitHub releases.

Option 2: Using pnpm link

# In the graphox repository, build the binary
cargo build --release

# Set up the local binary
./scripts/setup-npm-dev.sh

# Link globally
cd npm/graphox-cli
pnpm link --global

Manual Binary Download

If automatic installation fails, you can manually download binaries from the releases page.

Environment Variables

  • GRAPHOX_LOCAL_BUILD: Path to a local binary to use instead of downloading (useful for development)
  • GRAPHOX_DOWNLOAD_URL: Override the download URL for the binary (useful for mirrors or custom builds)

Repository

https://github.com/soundtrackyourbrand/graphox