This is a simple example of using GraphiQL directly from a CDN, including the GraphiQL Explorer plugin.
It loads the latest GraphiQL version from esm.sh, an ESM-based CDN that serves npm packages as ES modules.
No installation or build step is required — just open the index.html
file in your browser:
-
macOS:
open index.html
-
Linux:
firefox index.html # or chromium index.html