GraphiQL vs GraphQL Ruby
GraphiQL
graphiql.devGraphQL Ruby
graphql-ruby.orgSide by side
| Figure | GraphiQL | GraphQL Ruby |
|---|---|---|
| Price from | Free | $91.67/mo |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| API | — | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 3 |
| Spec score · GraphQL Tools | 8.4 (#3) | 7.8 (#11) |
| Installation | The package installation instructions list React, React DOM, and GraphQL as peer dependencies. | The open-source gem is installed from RubyGems by adding graphql to an application's Gemfile and running bundle install. |
| License | The GraphiQL repository describes the code as open source under the MIT license. | RubyGems lists the graphql gem license as MIT, while GraphQL::Pro and GraphQL::Enterprise use special commercial licenses. |
| Purpose | GraphiQL is an interactive, in-browser IDE for GraphQL. | The graphql gem implements the GraphQL Server Specification in Ruby and adds a GraphQL API to Ruby or Rails applications. |
Plans
GraphQL Ruby
- GraphQL Ruby gemFree
- GraphQL::Pro$1,100 a year
- GraphQL::Enterprise$2,400 a year
In their own words
GraphiQL
GraphiQL is a free, interactive, in-browser IDE for GraphQL. Its editor supports the latest GraphQL specification, with syntax highlighting, type-aware suggestions, query and variable completion, and real-time error highlighting. A searchable documentation explorer can display Markdown, and the built-in query history and documentation explorer are available as plugins. GraphiQL can preserve state in browser localStorage and provides a plugin API for extending its interface. It is also a React package for embedding the IDE in an application; a component needs a fetcher function that sends requests to a GraphQL API. The toolkit fetcher supports HTTP, multipart incremental delivery, and subscriptions through graphql-ws or the legacy WebSocket protocol. Developers can customize the interface with React props and children, while CSS variables are the supported way to change its appearance. GraphiQL is open source under the MIT license. Its project offers a progressive web app demo and examples for CDN, Webpack, Create React App, and Parcel.
GraphQL Ruby
GraphQL Ruby is a free, self-hosted Ruby gem that implements the GraphQL Server Specification for Ruby or Rails applications. It provides a self-documenting, strongly typed schema and serves queries, mutations, subscriptions, streaming responses, and multiplexed queries. Configurable depth and complexity validation can reject deeply nested or overly complex requests. Authorization tools handle schema visibility and checks on application objects during execution, while authentication is generally left to the application controller. GraphQL::Dataloader batches external data access and caches results per query; AsyncDataloader supports parallel I/O. Documentation covers Relay, Apollo Client, GraphQL.js Client, GraphiQL, urql, and custom JavaScript, plus monitoring integrations. The open-source gem is installed through RubyGems and uses the MIT license. The GraphQL Ruby gem costs nothing. GraphQL::Pro costs $1,100 a year, and GraphQL::Enterprise costs $2,400 a year under commercial licenses.