{"id":23034267,"url":"https://github.com/thebeachmaster/go-graphql-gateway","last_synced_at":"2026-04-30T03:32:35.119Z","repository":{"id":265781367,"uuid":"613011495","full_name":"TheBeachMaster/go-graphql-gateway","owner":"TheBeachMaster","description":"A dead-simple GraphQL gateway for all your federated Golang GraphQL server needs ","archived":false,"fork":false,"pushed_at":"2023-03-12T19:12:40.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-20T11:09:32.000Z","etag":null,"topics":["federation","fiber","fiber-framework","gateway","gateway-api","go","golang","graphql","nautilus"],"latest_commit_sha":null,"homepage":"","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/TheBeachMaster.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-12T16:31:00.000Z","updated_at":"2023-03-12T22:22:25.000Z","dependencies_parsed_at":"2024-11-30T22:56:27.800Z","dependency_job_id":"ea9fa494-6ce8-4d0b-a7ce-58534fd50235","html_url":"https://github.com/TheBeachMaster/go-graphql-gateway","commit_stats":null,"previous_names":["thebeachmaster/go-graphql-gateway"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheBeachMaster/go-graphql-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBeachMaster%2Fgo-graphql-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBeachMaster%2Fgo-graphql-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBeachMaster%2Fgo-graphql-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBeachMaster%2Fgo-graphql-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheBeachMaster","download_url":"https://codeload.github.com/TheBeachMaster/go-graphql-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheBeachMaster%2Fgo-graphql-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32453746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["federation","fiber","fiber-framework","gateway","gateway-api","go","golang","graphql","nautilus"],"created_at":"2024-12-15T16:31:04.359Z","updated_at":"2026-04-30T03:32:35.102Z","avatar_url":"https://github.com/TheBeachMaster.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go GraphQL Gateway\n\n- A dead-simple GraphQL gateway for all your federated Go GraphQL server needs.\n\nUses [Nautilus](https://github.com/nautilus/gateway) and [Fiber](https://github.com/gofiber/fiber)\n\n## TLDR;\n\nIf you're just looking for a quick and dirty implementation of a federated gateway, paste this code into your `main.go` file, package and ship.\n\n```go \npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\n\t\"github.com/nautilus/gateway\"\n\t\"github.com/nautilus/graphql\"\n)\n\nfunc main() {\n\t// change this to point to your GraphQL servers\n\tschemas, err := graphql.IntrospectRemoteSchemas(\n\t\t\"http://localhost:4000/graphql\",\n\t\t\"http://localhost:4001/graphql\",\n        \"http://as.many.urls.as.you.want:6969/graphql\"\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// create the gateway instance\n\tgw, err := gateway.New(schemas)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n    // your GraphQL endpoint is http(s)://host(:port)/graphql \u003c- executes queries on POST\n    // navigating to this url on the browser will show the GraphQL playground UI\n\thttp.HandleFunc(\"/graphql\", gw.PlaygroundHandler)\n\n\t// start the server\n\tfmt.Println(\"Starting server\")\n\terr = http.ListenAndServe(\":8082\", nil)\n\tif err != nil {\n\t\tfmt.Println(err.Error())\n\t}\n}\n```\n\n\n## Usage\n\n- Create a new `.env` file based on `.env.example` file\n\t- `GRAPHQL_ENDPOINTS` variable should be in the format `\"http://yourendpoint1\",\"http://youendpoint2\",...`\n\t- `USE_FILE_CONFIG` variable should be set to `true` if you want to set/use your configs inside `config/config.yaml` file (useful for K8s-like deployments).\n\n- Your app will be running on port `8082` and your endpoint will be `api/graphql` and `api/playground` for the playground\n\n- Build the binary `make build` or `make build-mac` for Mac OS\n\n \u003e Alternatively you can build a Docker image with the Dockerfile provided\n\n-  Health check endpoint `/ruok` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebeachmaster%2Fgo-graphql-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebeachmaster%2Fgo-graphql-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebeachmaster%2Fgo-graphql-gateway/lists"}