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

@bestcodetools/graphql-playground

v1.1.2

Published

A standalone GraphQL Playground package with a custom dark UI, schema explorer, smart editors, workspace import/export, and Docker support.

Downloads

566

Readme

GraphQL Playground

A standalone GraphQL Playground package with a custom dark UI, schema explorer, smart editors, workspace import/export, and Docker support.

What This Package Is For

This package serves a browser-based GraphQL playground that helps developers:

  • write and run GraphQL queries, mutations, and subscriptions
  • inspect the schema in a side panel
  • edit variables and headers with guided autocomplete
  • view formatted JSON responses with syntax highlighting
  • save, import, and export full workspaces with multiple tabs

It is designed to be embedded into an Express application or run as a standalone local server.

Features

  • standalone Express server for quick local usage
  • custom schema viewer with search and hover details
  • query editor with GraphQL autocomplete and inline tooltips
  • variables editor with schema-aware suggestions
  • headers editor with common header suggestions
  • response viewer with JSON syntax highlighting and visible selection states
  • collapsible blocks in the query editor, variables editor, headers editor, and response viewer
  • cURL import support for shell-style multiline commands
  • multi-tab workspace with import/export support
  • Docker image support for a compiled runtime

Installation

npm install @bestcodetools/graphql-playground

Standalone Usage

For development:

npm run standalone

The playground will be available at:

http://localhost:3000/playground

You can change the port with:

PLAYGROUND_PORT=4000 npm run standalone

Compiled Runtime

To run the compiled standalone server without ts-node-dev:

npm run build
npm start

Docker Usage

Build the image:

docker build -t graphql-playground .

Run the container:

docker run -p 3000:3000 graphql-playground

Then open:

http://localhost:3000/playground

Available Scripts

  • npm run standalone: starts the standalone server with ts-node-dev
  • npm run build: transpiles TypeScript into dist
  • npm start: runs the transpiled standalone server
  • npm test: runs the Jest test suite
  • npm run transpile:sass:watch: watches and transpiles Sass files

Testing

This package includes a basic integration test for the standalone server.

Run:

npm test

The test verifies that the standalone server starts on an automatically assigned port and responds with 200 on the configured playground path.

Notes

  • The standalone runtime disables live reload in production mode.
  • Workspace export sanitizes sensitive header values such as authorization, token, and key headers by replacing them with placeholders.

License

ISC