Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

custom-graphiql

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-graphiql

GraphiQL IDE with extra option for creating stub mutation and save queries to localStorage

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

CustomGraphiQL

A custom wrapper around graphiql package which offers more utility button and a component which allows to query any graphql endpoint. Inspired from graphiql-app but within browser without requirement for an app.

npm

Try it out here: https://graphiql-ide.netlify.com/

Getting started

npm install --save custom-graphiql
# OR
yarn add custom-graphiql

CustomGraphiQL is React component which wraps existing GraphiQL component. It can be directly hosted on your server. Check the example directory for how to setup CustomGraphiQL on any endpoint of your express server.

Build for the web with webpack or browserify, or use the pre-bundled custom-graphiql.js file. See the example in the git repository to see how to use the pre-bundled file. Alternatively you can get custom-graphiql.js or custom-graphiql.min.js from the releases page.

Don't forget to include the CSS file on the page! If you're using npm, you can find it in node_modules/custom-graphiql/custom-graphiql.css, or you can download it from the releases page.

It can be directly hosted on your server. Check out the example in thie repository for how to setup CustomGraphiQL on any endpoint of your express server.

Features

  • Generates stub mutation by scanning you schema.
  • Share current query using Get or Set query button.

Usage

CustomGraphiQL exports a single React component and it can further customized.

import CustomGraphiQL from 'custom-graphiql';

<CustomGraphiQL />

CustomGraphiQL supports all the props and children accepted by GraphiQL except the fetcher prop. The fetch function is implemented within the component and hence no fetcher props is required for CustomGraphiQL component. Check here for description of available props and children and their example usage.

Contributing

  1. Fork this repo by using the "Fork" button in the upper-right

  2. Check out your fork

    git clone git@github.com:yournamehere/graphiql.git
    
  3. Install or Update all dependencies

    yarn
    
  4. Run development server

    yarn dev
    
  5. Push your changes and raise a PR.

Keywords

FAQs

Package last updated on 19 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc