A summary of data about the Ruby ecosystem.

https://github.com/rmosolgo/graphiql-rails

Mount the GraphiQL query editor in a Rails app
https://github.com/rmosolgo/graphiql-rails

Keywords from Contributors

graphql-ruby relay activejob activerecord mvc rubygems rubocop rspec sinatra rack

Last synced: about 5 hours ago
JSON representation

Repository metadata

Mount the GraphiQL query editor in a Rails app

readme.md

GraphiQL-Rails Gem Version Tests

Mount the GraphiQL IDE in Ruby on Rails.

image

Installation

Add to your Gemfile:

bundle add graphiql-rails

Usage

Mount the Engine

Add the engine to routes.rb:

# config/routes.rb
Rails.application.routes.draw do
  # ...
  if Rails.env.development?
    mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/your/endpoint"
  end
end
  • at: is the path where GraphiQL will be served. You can access GraphiQL by visiting that path in your app.
  • graphql_path: is the path to the GraphQL endpoint. GraphiQL will send queries to this path.

Configuration

You can override GraphiQL::Rails.config values in an initializer (eg, config/initializers/graphiql.rb). The configs are:

  • query_params (boolean, default false): if true, the GraphQL query string will be persisted the page's query params

  • initial_query (string, default nil): if provided, it will be rendered in the query pane for a visitor's first visit

  • title (string, default nil): if provided, it will be rendered in the page tag

  • logo (string, default nil): if provided, it will be the text logo

  • csrf (boolean, default true): include X-CSRF-Token in GraphiQL's HTTP requests

  • header_editor_enabled (boolean, default false): if provided, the header editor will be rendered

  • headers (hash, String => Proc): procs to fetch header values for GraphiQL's HTTP requests, in the form (view_context) -> { ... }. For example:

    GraphiQL::Rails.config.headers['Authorization'] = -> (context) { "bearer #{context.cookies['_graphql_token']}" }
    
  • input_value_deprecation (boolean, default false): if provided, the deprecated arguments will be rendered

  • should_persist_headers (boolean, default nil): if true, the headers in the editor will be persisted. If false, the toggle for 'Persist headers' will not be shown in the settings

Development

  • Tests: rake test
  • Build JS: yarn run build

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 116
Total Committers: 39
Avg Commits per committer: 2.974
Development Distribution Score (DDS): 0.526

Commits in past year: 16
Committers in past year: 3
Avg Commits per committer in past year: 5.333
Development Distribution Score (DDS) in past year: 0.438

Name Email Commits
Robert Mosolgo r****o@g****m 55
Ray Zane r****e@g****m 6
Robert Mosolgo r****o@g****m 4
Tieg Zaharia t****a@g****m 4
FUJI Goro (gfx) g****i@c****g 4
David Schwartz d****z@s****m 3
gregology g****g@g****t 3
scott-knight d****t@g****m 2
Sam Bostock s****k@s****m 2
Jared Armstrong j****g@g****m 2
Erik Pellizzon e****n@g****m 2
Max Brosnahan m****n@s****m 2
Povilas Jurcys p****s@s****m 1
Grzegorz Jesionowski g****i@e****m 1
Abdulwahaab Ahmed a****0@g****m 1
Andrew Ray a****y@g****m 1
Bodhish Thomas b****h@g****m 1
Chedli Bourguiba c****a@e****r 1
Evan Barger e****r@g****m 1
exAspArk e****k@g****m 1
Yuji Yaginuma y****a@g****m 1
Tejas Dinkar t****s@g****n 1
Stanisław Chmiela s****a@g****m 1
Ryan Taylor r****r@i****m 1
Ryan Foster t****k@g****m 1
Rufus Post r****t@g****m 1
Robert Saunders r****s@o****m 1
Peter Gundel m****l@p****e 1
Pavel Pachkovsky p****y@g****m 1
OUDON t****1@g****m 1
and 9 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 6 days ago

Total issues: 57
Total pull requests: 74
Average time to close issues: about 2 years
Average time to close pull requests: 5 months
Total issue authors: 56
Total pull request authors: 50
Average comments per issue: 4.63
Average comments per pull request: 1.57
Merged pull request: 53
Bot issues: 0
Bot pull requests: 0

Past year issues: 2
Past year pull requests: 9
Past year average time to close issues: about 23 hours
Past year average time to close pull requests: 16 days
Past year issue authors: 2
Past year pull request authors: 4
Past year average comments per issue: 0.5
Past year average comments per pull request: 0.67
Past year merged pull request: 7
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/rmosolgo/graphiql-rails

Top Issue Authors

  • hugoh59 (2)
  • raysuelzer (1)
  • nvenn-athn (1)
  • ababich (1)
  • leosoaivan (1)
  • bleonard (1)
  • eddiecheung-shopify (1)
  • mrcasals (1)
  • alec-c4 (1)
  • chaffeqa (1)
  • the-codetrane (1)
  • robert-damoc (1)
  • joroshiba (1)
  • AntoineParent (1)
  • swelther (1)

Top Pull Request Authors

  • rmosolgo (9)
  • gregology (5)
  • tiegz (4)
  • gfx (3)
  • peterfication (2)
  • igor-drozdov (2)
  • scott-knight (2)
  • pachkovsky (2)
  • OUDON (2)
  • sambostock (2)
  • rzane (2)
  • caiosba (1)
  • cdeliens (1)
  • irminsul (1)
  • chaadow (1)

Top Issue Labels

Top Pull Request Labels


Package metadata

gem.coop: graphiql-rails

Use the GraphiQL IDE for GraphQL with Ruby on Rails. This gem includes an engine, a controller and a view for integrating GraphiQL with your app.

  • Homepage: http://github.com/rmosolgo/graphiql-rails
  • Documentation: http://www.rubydoc.info/gems/graphiql-rails/
  • Licenses: MIT
  • Latest release: 1.10.5 (published 7 months ago)
  • Last Synced: 2025-12-09T02:31:34.348Z (3 days ago)
  • Versions: 29
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 58,299,168 Total
  • Docker Downloads: 434,207,365
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.195%
    • Docker downloads count: 0.322%
    • Downloads: 0.458%
  • Maintainers (1)
rubygems.org: graphiql-rails

Use the GraphiQL IDE for GraphQL with Ruby on Rails. This gem includes an engine, a controller and a view for integrating GraphiQL with your app.

  • Homepage: http://github.com/rmosolgo/graphiql-rails
  • Documentation: http://www.rubydoc.info/gems/graphiql-rails/
  • Licenses: MIT
  • Latest release: 1.10.5 (published 7 months ago)
  • Last Synced: 2025-12-08T20:31:52.033Z (3 days ago)
  • Versions: 29
  • Dependent Packages: 11
  • Dependent Repositories: 3,169
  • Downloads: 58,293,502 Total
  • Docker Downloads: 434,207,365
  • Rankings:
    • Docker downloads count: 0.387%
    • Downloads: 0.441%
    • Dependent repos count: 0.552%
    • Average: 1.332%
    • Dependent packages count: 1.745%
    • Forks count: 2.174%
    • Stargazers count: 2.695%
  • Maintainers (1)
gem.coop: graphiql-rails-fork

Use the GraphiQL IDE for GraphQL with Ruby on Rails. This gem includes an engine, a controller and a view for integrating GraphiQL with your app.

  • Homepage: http://github.com/rmosolgo/graphiql-rails
  • Documentation: http://www.rubydoc.info/gems/graphiql-rails-fork/
  • Licenses: MIT
  • Latest release: 1.4.11 (published about 7 years ago)
  • Last Synced: 2025-12-07T18:01:55.529Z (4 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 2,626 Total
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 30.325%
    • Downloads: 90.974%
  • Maintainers (1)
rubygems.org: graphiql-rails-fork

Use the GraphiQL IDE for GraphQL with Ruby on Rails. This gem includes an engine, a controller and a view for integrating GraphiQL with your app.

  • Homepage: http://github.com/rmosolgo/graphiql-rails
  • Documentation: http://www.rubydoc.info/gems/graphiql-rails-fork/
  • Licenses: MIT
  • Latest release: 1.4.11 (published about 7 years ago)
  • Last Synced: 2025-12-07T18:01:54.762Z (4 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 2,626 Total
  • Rankings:
    • Forks count: 2.062%
    • Stargazers count: 2.509%
    • Dependent packages count: 15.706%
    • Average: 32.374%
    • Dependent repos count: 46.782%
    • Downloads: 94.812%
  • Maintainers (1)

Dependencies

.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • ruby/setup-ruby v1 composite
Gemfile rubygems
graphiql-rails.gemspec rubygems
  • codeclimate-test-reporter ~> 0.4 development
  • minitest ~> 5 development
  • minitest-focus ~> 1.1 development
  • minitest-reporters ~> 1.0 development
  • rails >= 0 development
  • rake >= 0 development
  • sqlite3 >= 0 development
  • railties >= 0
  • sprockets-rails >= 0

Score: 30.513767683205664