graphql / graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.
MIT License
15.9k stars 1.7k forks source link

Plug-ins APIs #2765

Open FluorescentHallucinogen opened 1 year ago

FluorescentHallucinogen commented 1 year ago

Here's the current GraphiQL structure:

graphiql-plugins-before

  1. Is it possible to create plug-ins that (also) use/replace, e.g. one or more panes on the right side of GraphiQL, not only the left pane? E.g.:

graphiql-plugins-after

Use cases:

  1. What about (deep) integration between GraphiQL plug-ins?

Use cases:

FluorescentHallucinogen commented 1 year ago

@acao @thomasheyenbrock @timsuchanek cc.

thomasheyenbrock commented 1 year ago

See also https://github.com/graphql/graphiql/issues/1533#issuecomment-1278879574

There are plenty of use-cases that go beyond GraphiQL, which is just the reference implementation for a GraphQL IDE. We provide all its building blocks with the @graphiql/react package, that would allow you to create your own IDE that implements any of the customizations you linked to here.

That said, my personal take on this is that some of these ideas go beyond what we should build into GraphiQL. They would significantly increase complexity of both code and UI and might only serve a subset of its users that require these specific plugins and functionalities.