How graphql/graphiql works
Project type and purpose
• This is a full-stack monorepo (“GraphQL IDE Monorepo”) that publishes multiple npm packages:
• A core GraphQL language service library
• Editor integrations (CodeMirror 5, CodeMirror 6, Monaco)
• A React-based Web IDE (GraphiQL)
• LSP server & CLI for editors & IDEs
• VSCode extensions (syntax, execution, language integration)
• Utility toolkit and plugins (doc-explorer, code-exporter, history, explorer)
• Example apps and Netlify functions
File structure
• Top-level: configuration, CI, docs, examples, functions, packages, resources, scripts, working-group
• “packages/…”: one folder per published module, each with its own src, tests, build configs
• “examples/…”: front-end demos showing how to wire up each integration
• “functions/graphql.ts”: a Netlify serverless function demo
• Monorepo orchestration: turbo.json (task runner), yarn workspaces, changesets for releases
README for additional insights
• The README describes the ecosystem: language-service core → shared by GraphiQL, CodeMirror, Monaco
• LSP server and CLI layer wrapping the core for IDE use
• VSCode extension consumes the LSP server via IPC or stdio
• Examples illustrate end-to-end flows