The official in-browser GraphQL IDE, as React components
open sourceMITfree
GraphiQL (pronounced "graphical") is the reference in-browser GraphQL IDE, an official GraphQL Foundation project. It ships as React components (GraphiQL, or GraphiQLProvider and GraphiQLInterface separately) that you add to your server or app, or load from a CDN in a single HTML file, and point at your API with a fetcher or transport, including subscriptions and multipart responses. It supports the full GraphQL spec language with syntax highlighting, schema-aware type-ahead, real-time error highlighting for queries and variables, automatic completion and leaf-field insertion, a searchable documentation explorer, history and state kept in localStorage, and a plugin API (doc explorer, history, query builder, code exporter, collections). Its monorepo also holds the GraphQL language service, LSP server and CLI, and CodeMirror and Monaco modes. MIT.
Problems it solves
- add an interactive GraphQL explorer to my API server
- a GraphQL IDE with autocomplete from my schema
- browse my GraphQL schema documentation in the browser
- embed a GraphQL query editor in my React app
- try GraphQL queries against my endpoint with variables and headers
Features
- Full GraphQL spec language support with syntax highlighting
- Schema-aware type-ahead and automatic completion
- Real-time error highlighting for queries and variables
- Automatic leaf field insertion
- Documentation explorer with search and Markdown
- Persisted state in localStorage
- Plugin API: doc explorer, history, query builder, code exporter, collections
- Fetcher or transport for queries, mutations, subscriptions and multipart responses
- CDN build for a single HTML page
