GraphiQL is an interactive in-browser GraphQL IDE, version 5.2.3. It provides a graphical interface for exploring and testing GraphQL APIs, with features like syntax highlighting, auto-completion, documentation explorer, and history. Released actively, it is the official IDE from the GraphQL Foundation. Key differentiators include full integration with GraphQL language features, extensibility via plugins, and lightweight setup compared to alternatives like GraphQL Playground. Peer dependencies include React 18 or 19 and GraphQL 15-17.
npm install graphiqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic GraphiQL setup with a custom fetcher function, rendering the IDE component with CSS.
Use import { GraphiQL } from 'graphiql'Install @graphiql/react and import from there
Use import 'graphiql/graphiql.css' or 'graphiql/dist/graphiql.css'
Ensure fetcher returns parsed JSON object with { data, errors } etc.Install react, react-dom, and graphql as dependencies
Use import 'graphiql/graphiql.css' (without dist).
Use import { GraphiQL } from 'graphiql'Ensure app and GraphiQL use same React version. Check package.json for multiple react entries.