{"id":33185660,"url":"https://github.com/devem-tech/echo","last_synced_at":"2026-01-18T11:16:53.641Z","repository":{"id":65353724,"uuid":"590236379","full_name":"devem-tech/echo","owner":"devem-tech","description":"Powerful API emulation with reverse proxy and easy json configuration.","archived":false,"fork":false,"pushed_at":"2024-03-15T00:54:50.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-28T05:04:30.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devem-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-01-18T00:07:07.000Z","updated_at":"2024-02-10T22:31:27.000Z","dependencies_parsed_at":"2023-10-15T09:35:24.299Z","dependency_job_id":"12612ccf-b411-4769-8bfe-0214d43021f5","html_url":"https://github.com/devem-tech/echo","commit_stats":null,"previous_names":["devem-tech/echo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devem-tech/echo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devem-tech%2Fecho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devem-tech%2Fecho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devem-tech%2Fecho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devem-tech%2Fecho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devem-tech","download_url":"https://codeload.github.com/devem-tech/echo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devem-tech%2Fecho/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285731803,"owners_count":27222214,"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-11-22T02:00:05.934Z","response_time":64,"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":"2025-11-16T05:00:20.098Z","updated_at":"2025-11-22T04:01:29.266Z","avatar_url":"https://github.com/devem-tech.png","language":"Go","funding_links":[],"categories":["\u003ca name=\"networking\"\u003e\u003c/a\u003eNetworking"],"sub_categories":[],"readme":"```\n  ___    _         \n | __|__| |_  ___  \n | _|/ _| ' \\/ _ \\ \n |___\\__|_||_\\___/                 \n```\n\n---\n\n![Build Status](https://github.com/devem-tech/echo/workflows/build/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/devem-tech/echo)](https://goreportcard.com/report/github.com/devem-tech/echo)\n\n**Echo** -- easy-to-use mock server that accelerates api emulation with json.\n\n### Features\n\n- simple json format\n- response latency\n- reverse proxy mode\n- request and response logs\n\n## How to use\n\n### Create a mock file\n\nThe json format is as follows:\n\n- **key** -- route\n- **value** -- response\n\nThe **key** is a colon-separated string which contains 3 parts:\n\n| # | Part        | Required | Default |\n|---|-------------|:--------:|:-------:|\n| 1 | Method      |    *     |         |\n| 2 | Endpoint    |    *     |         |\n| 3 | Status code |          |   200   |\n\n#### Mapping example\n\n| Key               | Method | Endpoint  | Status code |\n|-------------------|:------:|-----------|:-----------:|\n| GET:/orders       |  GET   | /orders   |     200     |\n| POST:/orders:201  |  POST  | /orders   |     201     |\n| GET:/orders/1:404 |  GET   | /orders/1 |     404     |\n| GET:/orders/2:500 |  GET   | /orders/2 |     500     |\n\n### Example\n\n```json\n{\n  \"GET:/v1/orders/1\": {\n    \"id\": 1,\n    \"status\": \"confirmed\"\n  },\n  \"POST:/v1/orders:201\": {\n    \"success\": true\n  }\n}\n```\n\n### Go\n\n```bash\necho routes.json\n```\n\n```bash\nOptions:\n  --port PORT, -p PORT   port [default: 8080]\n  --color, -c            color output [default: true]\n  --latency LATENCY, -l LATENCY\n                         response latency [default: 0]\n  --print PRINT          string specifying what the output should contain:\n    'H' request headers\n    'B' request body\n    'h' response headers\n    'b' response body\n  --verbose, -v          verbose output\n  --help, -h             display this help and exit\n  --version              display version and exit\n```\n\n### Testing\n\n```bash\ncurl 127.0.0.1:8080/v1/orders/1\n```\n\n```bash\ncurl -X POST 127.0.0.1:8080/v1/orders\n```\n\n## Reverse proxy mode\n\nRedirect all non-defined routes to the specified host:\n\n```json\n{\n  \"*\": \"https://jsonplaceholder.typicode.com\"\n}\n```\n\nOverride a specific route:\n\n```json\n{\n  \"*\": \"https://jsonplaceholder.typicode.com\",\n  \"GET:/todos/1\": {\n    \"id\": 1,\n    \"userId\": 1,\n    \"title\": \"default\",\n    \"completed\": false\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevem-tech%2Fecho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevem-tech%2Fecho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevem-tech%2Fecho/lists"}