Gathering detailed insights and metrics for graphiql-explorer
Gathering detailed insights and metrics for graphiql-explorer
Gathering detailed insights and metrics for graphiql-explorer
Gathering detailed insights and metrics for graphiql-explorer
gatsby-graphiql-explorer
GraphiQL IDE with custom features for Gatsby users
@graphiql/plugin-explorer
This package provides a plugin that integrates the [`GraphiQL Explorer`](https://github.com/OneGraph/graphiql-explorer) into the GraphiQL UI.
@netlify/content-engine-graphiql-explorer
GraphiQL IDE with custom features for content-engine users
@graphiql/plugin-doc-explorer
## API
npm install graphiql-explorer
Typescript
Module System
Node Version
NPM Version
94.3
Supply Chain
95.9
Quality
79.5
Maintenance
100
Vulnerability
100
License
JavaScript (97.07%)
Shell (2.93%)
Total Downloads
6,933,453
Last Day
1,681
Last Week
41,031
Last Month
220,509
Last Year
1,959,623
MIT License
914 Stars
169 Commits
100 Forks
19 Watchers
24 Branches
11 Contributors
Updated on Jun 24, 2025
Minified
Minified + Gzipped
Latest Version
0.9.0
Package Id
graphiql-explorer@0.9.0
Unpacked Size
1.22 MB
Size
222.09 kB
File Count
7
NPM Version
7.18.1
Node Version
16.4.0
Cumulative downloads
Total Downloads
32
Interactive explorer plugin for GraphiQL.
Try it live at https://www.onegraph.com/graphiql.
OneGraph provides easy, consistent access to the APIs that underlie your business--all through the power of GraphQL.
Sign up at https://www.onegraph.com.
See the example repo for how to use OneGraph's GraphiQL Explorer in your own GraphiQL instance.
Read the rationale on the OneGraph blog.
The default styling matches for the Explorer matches the default styling for GraphiQL. If you've customized your GraphiQL styling, you can customize the Explorer's styling to match.
The Explorer accepts a colors
prop as a map of the class names in GraphiQL's css to hex colors. If you've edited the GraphiQL class names that control colors (e.g. cm-def
, cm-variable
, cm-string
, etc.) use those same colors in the colors map. The naming of the keys in the colors map tries to align closely with the names of the class names in GraphiQL's css (note that the Explorer can't just apply the classes because of conflicts with how the css file styles inputs).
Example style map:
1<Explorer colors={{ 2 keyword: '#B11A04', 3 // OperationName, FragmentName 4 def: '#D2054E', 5 // FieldName 6 property: '#1F61A0', 7 // FieldAlias 8 qualifier: '#1C92A9', 9 // ArgumentName and ObjectFieldName 10 attribute: '#8B2BB9', 11 number: '#2882F9', 12 string: '#D64292', 13 // Boolean 14 builtin: '#D47509', 15 // Enum 16 string2: '#0B7FC7', 17 variable: '#397D13', 18 // Type 19 atom: '#CA9800', 20}} />
The explorer accepts props for setting custom checkboxes (for leaf fields) and arrows (for object fields).
The props are arrowOpen
, arrowClosed
, checkboxChecked
, and checkboxUnchecked
. You can pass any react node for those props.
The defaults are
arrowOpen
1 <svg width="12" height="9"> 2 <path fill="#666" d="M 0 2 L 9 2 L 4.5 7.5 z" /> 3 </svg>
arrowClosed
1 <svg width="12" height="9"> 2 <path fill="#666" d="M 0 0 L 0 9 L 5.5 4.5 z" /> 3 </svg>
checkboxChecked
<svg
style={{marginRight: '3px', marginLeft: '-3px'}}
width="12"
height="12"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z"
fill="#666"
/>
</svg>
checkboxUnchecked
<svg
style={{marginRight: '3px', marginLeft: '-3px'}}
width="12"
height="12"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z"
fill="#CCC"
/>
</svg>
You can modify the styles for the buttons that allow you to create new operations.
Pass the styles
prop when you create the component. It's an object with two keys, explorerActionsStyle
and buttonStyle
.
Example styles map:
1<Explorer 2 styles={{ 3 buttonStyle: { 4 fontSize: '1.2em', 5 padding: '0px', 6 backgroundColor: 'white', 7 border: 'none', 8 margin: '5px 0px', 9 height: '40px', 10 width: '100%', 11 display: 'block', 12 maxWidth: 'none', 13 }, 14 15 explorerActionsStyle: { 16 margin: '4px -8px -8px', 17 paddingLeft: '8px', 18 bottom: '0px', 19 width: '100%', 20 textAlign: 'center', 21 background: 'none', 22 borderTop: 'none', 23 borderBottom: 'none', 24 }, 25 }} 26/>
No vulnerabilities found.
Reason
no vulnerabilities detected
Reason
license file detected
Details
Reason
tokens are read-only in GitHub workflows
Reason
no dangerous workflow patterns detected
Reason
all dependencies are pinned
Details
Reason
no binaries found in the repo
Reason
GitHub code reviews found for 15 commits out of the last 30 -- score normalized to 5
Details
Reason
0 commit(s) out of 30 and 0 issue activity out of 30 found in the last 90 days -- score normalized to 0
Reason
no badge detected
Reason
security policy file not detected
Reason
no update tool detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2022-08-15
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-45.8%
1,681
Compared to previous day
Last Week
-47.6%
41,031
Compared to previous week
Last Month
0.7%
220,509
Compared to previous month
Last Year
16.4%
1,959,623
Compared to previous year