GraphQL Playground is a powerful GraphQL IDE for better development workflows, featuring context-aware autocompletion, interactive multi-column schema documentation, real-time GraphQL Subscriptions support, query history, HTTP header configuration, tabs, and schema reloading. Current stable version is 1.3.17 (released 2018). It is built on top of GraphiQL but adds significant features like subscription support, automatic schema reloading, and a desktop app with graphql-config integration. The package provides a React component and server middleware for Express, Hapi, Koa, and AWS Lambda. It requires React 16 and includes TypeScript type definitions. Note: This package is deprecated in favor of GraphiQL 2.x or newer alternatives like Apollo Studio Explorer or GraphQL IDE.
npm install graphql-playgroundNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Renders the GraphQL Playground React component with endpoint and subscription endpoint, including required CSS import.
Migrate to @graphiql/react or Apollo Studio Explorer.
Use with React 16 or wrap in compatibility layer.
Set subscriptionEndpoint prop explicitly using wss:// or ws://.
Add import 'graphql-playground/playground.css' to your entry point.
Install the appropriate middleware package (e.g., graphql-playground-middleware-express).
Ensure import 'graphql-playground/playground.css' is in your code.
Install React 16: npm install react@16 react-dom@16.
Pass endpoint prop to Playground component. Example: <Playground endpoint="https://example.com/graphql" />
Set subscriptionEndpoint prop with wss:// URL. Example: subscriptionEndpoint="wss://example.com/graphql"