{"id":13517316,"url":"https://github.com/rmosolgo/graphiql-rails","last_synced_at":"2025-10-08T19:08:29.041Z","repository":{"id":3309691,"uuid":"49037917","full_name":"rmosolgo/graphiql-rails","owner":"rmosolgo","description":"Mount the GraphiQL query editor in a Rails app","archived":false,"fork":false,"pushed_at":"2025-05-16T15:08:32.000Z","size":6097,"stargazers_count":456,"open_issues_count":12,"forks_count":141,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-10-05T11:04:12.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmosolgo.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-01-05T02:54:57.000Z","updated_at":"2025-10-05T04:01:29.000Z","dependencies_parsed_at":"2024-01-13T19:23:52.563Z","dependency_job_id":"248c2633-e488-4b90-bb1f-6e8702aa784c","html_url":"https://github.com/rmosolgo/graphiql-rails","commit_stats":{"total_commits":100,"total_committers":38,"mean_commits":"2.6315789473684212","dds":0.54,"last_synced_commit":"1d4c70055c0e3b601e18c8c8d69892bf6bb8e0c2"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/rmosolgo/graphiql-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmosolgo%2Fgraphiql-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmosolgo%2Fgraphiql-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmosolgo%2Fgraphiql-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmosolgo%2Fgraphiql-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmosolgo","download_url":"https://codeload.github.com/rmosolgo/graphiql-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmosolgo%2Fgraphiql-rails/sbom","scorecard":{"id":779114,"data":{"date":"2025-08-11","repo":{"name":"github.com/rmosolgo/graphiql-rails","commit":"41c98ace618c824b141cf3f79824ed7d208e156e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 4/15 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/rmosolgo/graphiql-rails/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/rmosolgo/graphiql-rails/test.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T04:27:14.845Z","repository_id":3309691,"created_at":"2025-08-23T04:27:14.845Z","updated_at":"2025-08-23T04:27:14.845Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278944994,"owners_count":26073423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:32.466Z","updated_at":"2025-10-08T19:08:28.988Z","avatar_url":"https://github.com/rmosolgo.png","language":"Ruby","funding_links":[],"categories":["Ruby","JavaScript"],"sub_categories":[],"readme":"# GraphiQL-Rails [![Gem Version](https://badge.fury.io/rb/graphiql-rails.svg)](https://badge.fury.io/rb/graphiql-rails) [![Tests](https://github.com/rmosolgo/graphiql-rails/actions/workflows/test.yml/badge.svg)](https://github.com/rmosolgo/graphiql-rails/actions/workflows/test.yml)\n\nMount the [GraphiQL IDE](https://github.com/graphql/graphiql) in Ruby on Rails.\n\n![image](https://cloud.githubusercontent.com/assets/2231765/12101544/4779ed54-b303-11e5-918e-9f3d3e283170.png)\n\n## Installation\n\nAdd to your Gemfile:\n\n```ruby\nbundle add graphiql-rails\n```\n\n## Usage\n\n### Mount the Engine\n\nAdd the engine to `routes.rb`:\n\n```ruby\n# config/routes.rb\nRails.application.routes.draw do\n  # ...\n  if Rails.env.development?\n    mount GraphiQL::Rails::Engine, at: \"/graphiql\", graphql_path: \"/your/endpoint\"\n  end\nend\n```\n\n- `at:` is the path where GraphiQL will be served. You can access GraphiQL by visiting that path in your app.\n- `graphql_path:` is the path to the GraphQL endpoint. GraphiQL will send queries to this path.\n\n### Configuration\n\nYou can override `GraphiQL::Rails.config` values in an initializer (eg, `config/initializers/graphiql.rb`). The configs are:\n\n- `query_params` (boolean, default `false`): if `true`, the GraphQL query string will be persisted the page's query params\n- `initial_query` (string, default `nil`): if provided, it will be rendered in the query pane for a visitor's first visit\n- `title` (string, default `nil`): if provided, it will be rendered in the page \u003ctitle\u003e tag\n- `logo` (string, default `nil`): if provided, it will be the text logo\n- `csrf` (boolean, default `true`): include `X-CSRF-Token` in GraphiQL's HTTP requests\n- `header_editor_enabled` (boolean, default `false`): if provided, the header editor will be rendered\n- `headers` (hash, `String =\u003e Proc`): procs to fetch header values for GraphiQL's HTTP requests, in the form `(view_context) -\u003e { ... }`. For example:\n\n    ```ruby\n    GraphiQL::Rails.config.headers['Authorization'] = -\u003e (context) { \"bearer #{context.cookies['_graphql_token']}\" }\n    ```\n\n- `input_value_deprecation` (boolean, default `false`): if provided, the deprecated arguments will be rendered\n- `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\n\n### Development\n\n- Tests: `rake test`\n- Build JS: `yarn run build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmosolgo%2Fgraphiql-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmosolgo%2Fgraphiql-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmosolgo%2Fgraphiql-rails/lists"}