{"id":43740492,"url":"https://github.com/friendsofgo/graphiql","last_synced_at":"2026-02-05T11:32:55.885Z","repository":{"id":33814132,"uuid":"156092603","full_name":"friendsofgo/graphiql","owner":"friendsofgo","description":"An adapter on GO to serve the GraphiQL  in-browser IDE.","archived":false,"fork":false,"pushed_at":"2022-01-26T20:37:36.000Z","size":20,"stargazers_count":69,"open_issues_count":4,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-13T20:20:02.615Z","etag":null,"topics":["go","golang","golang-package","graphiql","graphql"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/friendsofgo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-04T14:49:50.000Z","updated_at":"2025-02-05T20:43:01.000Z","dependencies_parsed_at":"2022-07-31T11:08:04.550Z","dependency_job_id":null,"html_url":"https://github.com/friendsofgo/graphiql","commit_stats":null,"previous_names":["ubeep/graphiql"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/friendsofgo/graphiql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofgo%2Fgraphiql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofgo%2Fgraphiql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofgo%2Fgraphiql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofgo%2Fgraphiql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendsofgo","download_url":"https://codeload.github.com/friendsofgo/graphiql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendsofgo%2Fgraphiql/sbom","scorecard":{"id":411582,"data":{"date":"2025-08-11","repo":{"name":"github.com/friendsofgo/graphiql","commit":"29e66de1f516f67d1bc6616cfe1be8c1497e5b0a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"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":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","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":-1,"reason":"No tokens found","details":null,"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Info:   0 out of   1 containerImage 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":"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":"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":"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":"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":"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 4 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-18T22:49:57.025Z","repository_id":33814132,"created_at":"2025-08-18T22:49:57.025Z","updated_at":"2025-08-18T22:49:57.025Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29120640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","golang-package","graphiql","graphql"],"created_at":"2026-02-05T11:32:55.203Z","updated_at":"2026-02-05T11:32:55.877Z","avatar_url":"https://github.com/friendsofgo.png","language":"Go","funding_links":["https://www.buymeacoffee.com/friendsofgo"],"categories":[],"sub_categories":[],"readme":"# Golang GraphiQL\n[![GitHub version](https://badge.fury.io/gh/friendsofgo%2Fgraphiql.svg)](https://badge.fury.io/gh/friendsofgo%2Fgraphiql)\n[![Build Status](https://travis-ci.org/friendsofgo/graphiql.svg?branch=master)](https://travis-ci.org/friendsofgo/graphiql)\n[![codecov](https://codecov.io/gh/friendsofgo/graphiql/branch/master/graph/badge.svg)](https://codecov.io/gh/friendsofgo/graphiql)\n[![Go Report Card](https://goreportcard.com/badge/github.com/friendsofgo/graphiql)](https://goreportcard.com/report/github.com/friendsofgo/graphiql)\n[![CDNJS](https://img.shields.io/cdnjs/v/graphiql.svg)](https://cdnjs.com/libraries/graphiql)\n[![GoDoc](https://godoc.org/graphql.co/graphql?status.svg)](https://godoc.org/github.com/friendsofgo/graphiql)\n\n\u003c/br\u003e\n\u003ca href=\"https://www.buymeacoffee.com/friendsofgo\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: 100px !important;\" \u003e\u003c/a\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"http://bit.ly/2zjRTXF\" alt=\"Golang GraphiQL\"/\u003e\n\u003c/p\u003e\n\nAn utility wrote on Go for using GraphiQL without need to use NPM.\n\n[Try the live demo.](http://graphql.org/swapi-graphql)\n\n## Getting started\nTo install the library, run\n\n```bash\ngo get -u github.com/friendsofgo/graphiql\n``` \n\nTo build graphi's CLI you must run\n```bash\nmake build-cli\n```\nThis will generate a binary in the project's bin directory called graphiql. You can then move this binary to anywhere in your `PATH`.\n\n### Use GraphiQL on your own server\nIf you've a GraphQL server on GO and you want to include the GraphiQL\non it, it's as simple as this:\n\n```go\npackage main\n\nimport(\n\t\"net/http\"\n\t\"github.com/friendsofgo/graphiql\"\n)\n\nfunc main() {\n\t\n\tgraphiqlHandler, err := graphiql.NewGraphiqlHandler(\"/graphql\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t\n\thttp.HandleFunc(\"/graphql\", myGraphQLHandler)\n\thttp.Handle(\"/graphiql\", graphiqlHandler)\n\thttp.ListenAndServe(\":8080\", nil)\n}\n```\n\n### Use GraphiQL standalone\nIf you want launch GraphiQL for use on your GraphQL API but you don't want\ninclude it in your own project you can launch your own GraphiQL Server:\n\n```go\npackage main\n\nimport(\n\t\"net/http\"\n\t\"github.com/friendsofgo/graphiql\"\n)\n\nfunc main() {\n\tgraphiqlHandler, err := graphiql.NewGraphiqlHandler(\"http://localhost:8080/graphql\")\n\tif err != nil {\n    \t\tpanic(err)\n\t}\n    \t\n\t\n\thttp.Handle(\"/graphiql\", graphiqlHandler)\n\thttp.ListenAndServe(\":4040\", nil)\n}\n```\n\n## CLI\nYo can use `graphiql` as command\n```bash\n$ graphiql --help\nusage: graphiql [-version] [OPTIONS]\n        graphiql is an standalone server to use Graphiql, based on https://github.com/graphql/graphiql\n\n  -endpoint string\n        Endpoint where are hosted your API, eg: http://localhost:8080/graphql (default \"http://localhost:8080/graphql\")\n  -graphiql\n        Show the js client of GraphiQL version\n  -port string\n        Port where will be launched the GraphiQL client (default \"4040\")\n  -version\n        Show the graphiql version information\n```\n\nAnd it'll launch a `GraphiQL` server\n```bash\n$ graphiql\n\n2018/11/24 17:10:36 GraphiQL run on http://localhost:4040/graphiql...\n2018/11/24 17:10:36 GraphQL endpoint http://localhost:8080/graphql\n2018/11/24 17:10:36 Use (ctrl+c) to terminate the execution\n```\n\n## Docker\nThe application is also available through [Docker](https://hub.docker.com/r/friendsofgo/graphiql), just run:\n\n```bash\ndocker run -it --rm -p 4040:4040 friendsofgo/graphiql\n```\n\nRemember to use the [-p](https://docs.docker.com/engine/reference/run/) flag to expose the container port where the application is listening (4040 by default).\n\n## Contribute\n[Contributions](https://github.com/friendsofgo/graphiql/issues?q=is%3Aissue+is%3Aopen) are more than welcome, if you are interested please fork this repo and send your Pull Request.\n\n## License\nMIT License, see [LICENSE](https://github.com/friendsofgo/graphiql/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofgo%2Fgraphiql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendsofgo%2Fgraphiql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofgo%2Fgraphiql/lists"}