{"id":17713742,"url":"https://github.com/duart38/relay","last_synced_at":"2025-08-08T01:12:02.862Z","repository":{"id":130906653,"uuid":"283845700","full_name":"duart38/Relay","owner":"duart38","description":"Deno Middleware server","archived":false,"fork":false,"pushed_at":"2021-03-26T10:17:27.000Z","size":82,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T23:18:46.717Z","etag":null,"topics":["deno","framework","middleware","relay","server","serves","typesafe","typescript"],"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/duart38.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":"2020-07-30T18:13:00.000Z","updated_at":"2022-09-17T21:02:31.000Z","dependencies_parsed_at":"2023-06-01T21:15:42.073Z","dependency_job_id":null,"html_url":"https://github.com/duart38/Relay","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duart38%2FRelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duart38%2FRelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duart38%2FRelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duart38%2FRelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duart38","download_url":"https://codeload.github.com/duart38/Relay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243485988,"owners_count":20298431,"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","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":["deno","framework","middleware","relay","server","serves","typesafe","typescript"],"created_at":"2024-10-25T10:22:23.202Z","updated_at":"2025-03-13T21:32:56.511Z","avatar_url":"https://github.com/duart38.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/duart38/Relay/master/relaylogo.svg\" width=\"250px\"\u003e\n\n# Relay\n**Relay** is a middleware server built on top of Deno. The idea of **Relay** is to act like a relay server where any request sent to it will be forwarded to a different server that houses the concrete implementation.\n\nThis means that **Relay** can be used to encapsulate a network, thus meaning you do not need multiple machines to host multiple servers and or web applications.\n\nRelay can:\n1. Encapsulate a network and only forward 1 server that talks to servers internally.\n2. Filter out incoming requests and decide what will be forwarded or not.\n3. Eliminate the need to buy multiple certificates.\n4. Serve websites and or web-apps.\n5. Organise HTTP requests in so called models.\n6. Decode incoming / outgoing requests.\n7. **_Reload the models without needing to restart the server_**\n8. Hide long URL names \u0026 params under a simple 2 sub route url.\n9. Manipulate incoming requests before forwarding (eg. append headers)\n\nPlease view the [DOCS](https://github.com/duart38/Relay/wiki) for more information\n\n\n# Running from the CLI\nInstall deno, clone, and run with:\n```bash\ndeno run --allow-read --allow-net server.ts\n```\n## Changing the configuration from the command line\n\n- -m ./path/to/models/folder\n\n- -v VERBOSITY(see below)\n```TypeScript\nexport enum Verbosity {\n  SILENT, // nothing is printed\n  LOW, // prints when a request is received and it's method\n  MEDIUM, // prints when a request is received, about to be sent, and some performance measuring (errors included)\n  HIGH, // prints everything... i feel bad for your terminal emulator ....\n}\n```\n\n- -p port_number\n\n- -c cert file -k key file \n\u003e The above need to be used together for serving over TLS\n\n## Changing the default configuration\nOpen up config.json.. write some stuff.. done\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduart38%2Frelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduart38%2Frelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduart38%2Frelay/lists"}