A schema search plugin for GraphiQL that allows developers to browse and search types, fields, and root operations with virtual scrolling, deep-linking via URL hash, and browser back/forward support. Version 1.2.0 is the current stable release. This package integrates seamlessly with GraphiQL (v3+) using the plugins system. Key differentiators include full-text search, filtering by kind and section, type detail views, and URL hash-based navigation for deep-linking. It requires peer dependencies: @graphiql/react >= 0.20, graphql >= 15, react >= 17, and react-dom >= 17. The package ships TypeScript type definitions.
npm install graphiql-schema-searchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to integrate the schema search plugin into a basic GraphiQL application. It imports React, GraphiQL, and the plugin, initializes the plugin, and passes it to the GraphiQL component via the plugins prop.
Update to GraphiQL v3 and use the plugins prop instead of the legacy extensions API.
Call getSchemaSearchPlugin('myprefix_') to prefix hash parameters.Install @graphiql/react >= 0.20: npm install @graphiql/react@^0.20
Add import 'graphiql-schema-search/dist/index.css'; after importing the plugin.
Use import syntax and set "type": "module" in package.json or use .mjs extension.
Run: npm install graphiql-schema-search
Change to: import { getSchemaSearchPlugin } from 'graphiql-schema-search';Add the import: import 'graphiql-schema-search/dist/index.css';
Install required peer deps: npm install @graphiql/react graphql
Ensure the plugin is passed as a value to the plugins prop of the <GraphiQL> component.