Back to Graphiql

GraphiQL CDN Example

examples/graphiql-cdn/README.md

2.0.1534 B
Original Source

GraphiQL CDN Example

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.

Setup

No installation or build step is required — just open the index.html file in your browser:

  • macOS:

    sh
    open index.html
    
  • Linux:

    sh
    firefox index.html
    # or
    chromium index.html