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.
- ๐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
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 defaultvariables
: Sets the default query to include in the Variables pane. Default: noneoperationName
: 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.
MIT