A package that renders the HTML for the GraphQL Playground IDE, used by middleware integrations (Express, Koa, etc.). Current stable version is 1.6.30. Low release cadence (maintenance mode). Key differentiator: provides an interactive GraphQL IDE with subscriptions, docs, and collaboration features. Security: severe XSS vulnerability in versions before 1.6.22 requires sanitization of user input passed to renderPlaygroundPage().
npm install graphql-playground-htmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates the GraphQL Playground HTML page with endpoint, subscription, and configuration options.
Update to >=1.6.22 and sanitize any user input passed to renderPlaygroundPage (package includes built-in sanitization via xss).
Ensure endpoint option is a string. If omitted, it defaults to undefined, which may cause issues.
Set schema.data to null unless using a static schema.
Provide a valid string endpoint in the options object.
Update to >=1.6.22 which uses xss library to sanitize inputs.