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
- Host: GitHub
- URL: https://github.com/rmosolgo/graphiql-rails
- Owner: rmosolgo
- License: mit
- Created: 2016-01-05T02:54:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-05-16T15:08:32.000Z (7 months ago)
- Last Synced: 2025-12-06T02:16:34.111Z (6 days ago)
- Language: Ruby
- Homepage:
- Size: 5.81 MB
- Stars: 453
- Watchers: 11
- Forks: 142
- Open Issues: 12
- Releases: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
readme.md
GraphiQL-Rails

Mount the GraphiQL IDE in Ruby on Rails.

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, defaultfalse): iftrue, the GraphQL query string will be persisted the page's query params -
initial_query(string, defaultnil): if provided, it will be rendered in the query pane for a visitor's first visit -
title(string, defaultnil): if provided, it will be rendered in the page tag -
logo(string, defaultnil): if provided, it will be the text logo -
csrf(boolean, defaulttrue): includeX-CSRF-Tokenin GraphiQL's HTTP requests -
header_editor_enabled(boolean, defaultfalse): 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, defaultfalse): if provided, the deprecated arguments will be rendered -
should_persist_headers(boolean, defaultnil): iftrue, the headers in the editor will be persisted. Iffalse, the toggle for 'Persist headers' will not be shown in the settings
Development
- Tests:
rake test - Build JS:
yarn run build
Owner metadata
- Name: Robert Mosolgo
- Login: rmosolgo
- Email: rdmosolgo@gmail.com
- Kind: user
- Description:
- Website: http://rmosolgo.github.io
- Location: Charlottesville, VA
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/2231765?u=3a7cc7f1a74a605f80bfd6cedda333df6c61a927&v=4
- Repositories: 142
- Last ynced at: 2025-10-30T00:39:14.883Z
- Profile URL: https://github.com/rmosolgo
GitHub Events
Total
- Issues event: 2
- Watch event: 13
- Delete event: 2
- Issue comment event: 13
- Push event: 10
- Pull request event: 7
- Fork event: 6
- Create event: 4
Last Year
- Issues event: 1
- Watch event: 12
- Delete event: 2
- Issue comment event: 10
- Push event: 10
- Pull request event: 7
- Fork event: 5
- Create event: 4
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 | 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:
- shopify.com: 3
- yandex.ru: 1
- advanced-analytics.eu: 1
- pocke.me: 1
- wistia.com: 1
- petergundel.de: 1
- instructure.com: 1
- gja.in: 1
- edu.esiee.fr: 1
- grandrounds.com: 1
- elpassion.com: 1
- samesystem.com: 1
- schibsted.com: 1
- gho.st: 1
- cpan.org: 1
- github.com: 1
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
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
- Total packages: 4
-
Total downloads:
- rubygems: 116,597,922 total
- Total docker downloads: 868,414,730
- Total dependent packages: 11 (may contain duplicates)
- Total dependent repositories: 3,169 (may contain duplicates)
- Total versions: 60
- Total maintainers: 2
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
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
- 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