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

stepzen-graphiql

v2.1.0

Published

Stepzen Graphiql Explorer

Readme

stepzen-graphiql

NPM JavaScript Style Guide

Install

npm install --save stepzen-graphiql

Basic Usage

import { GraphiQLExplorer } from "stepzen-graphiql";
import "stepzen-graphiql/style.css";

function App() {
  const config: GraphiQLConfig = {
    endpoint: "https://your-graphql-endpoint.com/graphql",
  };

  return <GraphiQLExplorer config={config} />;
}

Advanced Usage

You can use the GraphiQLExplorer component directly to customize behavior and layout, including:

Providing a custom GraphQL endpoint via config

Showing/hiding the explorer's URL tab

import { GraphiQLExplorer, GraphiQLConfig } from "stepzen-graphiql";
import "stepzen-graphiql/style.css";

function App() {
  const config: GraphiQLConfig = {
    endpoint: "https://your-graphql-endpoint.com/graphql",
    showExplorerHeader: true, // Enables the explorer's URL input tab with toggle
    theme: "g100", // Sets the theme for the GraphiQL interface (white, g10, g90, g100)
  };

  function fetchCostData(query: string) {
    console.log("Fetching cost data: " + query);
  }

  function queryCompleted(result: string) {
    console.log("Fetched data: " + result);
  }

  return (
    <GraphiQLExplorer
      config={config}
      onEditQuery={fetchCostData}
      onFetchResult={queryCompleted}
    >
    </GraphiQLExplorer>
  );
}

export default App;

Configuration

| Prop | Type | Description | | -------------------- | ---------- | -------------------------------------------------------------------------------| | endpoint | string | GraphQL endpoint to be used in the explorer | | showExplorerHeader | boolean | Toggles visibility of the URL tab with hide/show functionality | | theme | string | Theme configuration for the GraphiQL interface ('white', 'g10', 'g90', 'g100') | | onEditQuery | function | Callback triggered when the query is edited | | onFetchResult | function | Callback triggered when the query result is fetched |

Styling and Fonts

Custom Font Configuration

This package uses a custom font setup to replace GraphiQL's default fonts (Roboto and Fira Code) with IBM Plex Sans.

src/styles/graphiql-no-fonts.css

This file contains the complete GraphiQL styles without the embedded font definitions. It's a modified version of the original GraphiQL stylesheet where the @font-face declarations for Roboto and Fira Code have been removed.

Purpose:

  • Reduces bundle size by excluding font files
  • Allows custom font substitution
  • Maintains all GraphiQL styling and layout

src/styles/font-override.css

This file overrides the font family references to use IBM Plex Sans instead of Roboto:

* {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

Why this approach?

  • Provides consistent branding with IBM Plex Sans
  • Falls back to system fonts if IBM Plex Sans is unavailable
  • Ensures all GraphiQL components use the same font family

Note: Make sure IBM Plex Sans fonts are available in your project. You can install them via:

npm install @ibm/plex

And import them in your application's entry point or global styles.