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 🙏

© 2024 – Pkg Stats / Ryan Hefner

graphiql-plus

v1.0.1

Published

GraphiQL IDE with custom features for static hosting on the web

Downloads

4

Readme

GraphiQL Plus

The most ✔️ fully-featured, 🔋 batteries-included, ⚡ supercharged, GraphiQL IDE for 🧩 querying any GraphQL endpoint 🔥.

This package extends the default GraphiQL IDE with the most useful features. This repo is the source for building a static html/js standalone web GraphiQL instance.

Note: accessible at http://localhost:8245/ after running npm run serve

You can use this right away at https://unpkg.com/graphiql-static/index.html.

Features

  • 🔍GraphiQL Explorer - an interactive explorer plugin to visually create and interact with the GraphQL schema
  • 📜Graphiql Code Exporter - a codegen tool to take your GraphQL queries and plug them into your app
  • 🗄️ Persists your queries and headers into browser's local storage whenever you close the window. This data is keyed by endpoint so you don't mix up queries for different endpoints. Also saves your layout preferences regardless of endpoint. Remembers the last endpoint you used if none provided in headers.
  • ✈️ Offline support - for when you need to work on your excellent GraphQL app on a plane, train, or elsewhere off the grid
  • (coming soon) 👮 Authentication helpers for AWS AppSync APIs
  • All the expected features you know and love from GraphiQL

How to use

Build this app with npm build and host it on your favorite static hosting service.

Pass in the following URL parameters at the end of your URL (after ?, before #) to provide inputs to the GraphiQL IDE.

  • endpoint: Sets the endpoint to send GraphQL queries to. Default: hostname
  • headers: Sets headers to include in requests to the GraphQL endpoint as URL-Encoded JSON. Default (always included): { "Content-Type": "application/json" }
  • query: Sets the default query to include in the Query pane. Default: The GraphiQL default
  • variables: Sets the default query to include in the Variables pane. Default: none
  • operationName: Sets the default operation to execute and display in the Output pane. Default: none

The values of these parameters will be persisted to browser localStorage whenever the window is closed. Including these parameters in the request to load the page will ignore the localStorage values. The page URL will be continuously updated with these parameters so you can easily share the IDE state.

License

MIT