{"id":15753742,"url":"https://github.com/idrinth/simple-gateway","last_synced_at":"2026-05-18T15:07:57.510Z","repository":{"id":150222403,"uuid":"586453699","full_name":"Idrinth/simple-gateway","owner":"Idrinth","description":"A simple and fast nodejs gateway","archived":false,"fork":false,"pushed_at":"2024-04-23T12:17:30.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T06:30:55.454Z","etag":null,"topics":["api-gateway","dockerfile","gateway","microservice","openapi","rest","rest-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Idrinth.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,"zenodo":null}},"created_at":"2023-01-08T07:27:31.000Z","updated_at":"2024-04-23T12:17:33.000Z","dependencies_parsed_at":"2025-08-09T23:25:15.298Z","dependency_job_id":"947b6fb2-4087-4339-8381-f56fc913d23d","html_url":"https://github.com/Idrinth/simple-gateway","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Idrinth/simple-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idrinth%2Fsimple-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idrinth%2Fsimple-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idrinth%2Fsimple-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idrinth%2Fsimple-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Idrinth","download_url":"https://codeload.github.com/Idrinth/simple-gateway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Idrinth%2Fsimple-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33181840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["api-gateway","dockerfile","gateway","microservice","openapi","rest","rest-api"],"created_at":"2024-10-04T07:41:53.880Z","updated_at":"2026-05-18T15:07:57.492Z","avatar_url":"https://github.com/Idrinth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Gateway\n\nThis gateway reduces the configuration to a minimum by removing features that will not be required when starting to use a gateway. I'm open to expanding upon functionality on request, please just open an issue.\n\nDocker image available at [Docker Hub](https://hub.docker.com/r/idrinth/simple-gateway).\n\n## Support\n\nYou can get support via discord at [Idrinth's Server](https://discord.gg/xHSF8CGPTh).\n\n## Pre-Defined Routes\n\n### GET /\n\nThe route provides a quick json overview over the gateway.\n\n### HEAD /alive\n\nThis route is meant to allow for easy pull-based uptime checks. It returns a 204 Status Code on success.\n\n### GET /open-api\n\nThis route aggregates the open-api definitions of registered services and displays a unified scheme for usage in postman for example.\n\n## Configuration\n\nConfiguration from different sources will be merged, with ENVs overwriting file based route definitions.\n\n### ENVs\n\nConfiguring via the environment requires setting up the following values:\n\n- SERVICE_OPEN_API_MERGING will enable updating of the open-api document if set to `TRUE`\n- SERVICE_OPEN_API_FREQUENCY defauls to 60000ms and sets the update frequency\n- REQUIRED_COOKIE_NAME will set a cookie name to check for is restrict is set to cookie\n- ROUTES_TARGET_ORIGIN will set an Access-Control-Allow-Origin header and defaults to *\n- ROUTES_TARGET_METHODS will set the Access-Control-Allow-Methods header and filling it activates the CORS responses for all routes\n- /ROUTE_[A-Z0-9_]+/i defines the request root, where requests from the gateway will be send\n- /RESTRICT_[A-Z0-9_]+/i is optional and can be any of none(standard), api-key, cookie or authorization\n- /OPEN_API_[A-Z0-9_]+/i defines a route to retrieve the service's open-api document from. It will default to {host}/open-api\n\n### File (routes.idrinth.json)\n\nThis file contains a json object defining all routes, it will look similar to the following:\n\n```json\n{\n    \"test\": {\n        \"target\": \"http://example.com\",\n        \"require\": {\n            \"api-key\": false,\n            \"cookie\": false,\n            \"authorization\": false\n        },\n        \"open-api\": \"http://example.com/open-api\"\n    }\n}\n```\n\nAnything besides the key(that defines the path the gateway will route) and the target are optional.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidrinth%2Fsimple-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidrinth%2Fsimple-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidrinth%2Fsimple-gateway/lists"}