{"id":25852880,"url":"https://github.com/imposter-project/imposter-go","last_synced_at":"2026-04-02T20:18:14.825Z","repository":{"id":270530480,"uuid":"904979115","full_name":"imposter-project/imposter-go","owner":"imposter-project","description":"A Go implementation of the Imposter Mock Engine.","archived":false,"fork":false,"pushed_at":"2026-03-27T18:29:37.000Z","size":5838,"stargazers_count":6,"open_issues_count":10,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T22:41:30.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://imposter.sh","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/imposter-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-17T23:16:48.000Z","updated_at":"2026-03-27T18:29:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"32a065cb-443b-4c34-a0cf-3c4c1676f176","html_url":"https://github.com/imposter-project/imposter-go","commit_stats":null,"previous_names":["imposter-project/imposter-go"],"tags_count":99,"template":false,"template_full_name":null,"purl":"pkg:github/imposter-project/imposter-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imposter-project%2Fimposter-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imposter-project%2Fimposter-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imposter-project%2Fimposter-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imposter-project%2Fimposter-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imposter-project","download_url":"https://codeload.github.com/imposter-project/imposter-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imposter-project%2Fimposter-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31315416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":[],"created_at":"2025-03-01T14:29:12.320Z","updated_at":"2026-04-02T20:18:14.810Z","avatar_url":"https://github.com/imposter-project.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imposter-go [![CI](https://github.com/imposter-project/imposter-go/actions/workflows/ci.yml/badge.svg)](https://github.com/imposter-project/imposter-go/actions/workflows/ci.yml)\n\nA Go implementation of the [Imposter Mock Engine](https://www.imposter.sh). This project is now considered stable.\n\n## Features\n\n- 💻 Run locally: Lightweight local HTTP mock server\n- 🚀 Run in AWS Lambda: low latency, high throughput, \u003c140ms cold start (see [test results](./examples/lambda/perf-tests))\n- ✅ [REST/HTTP API mock](https://docs.imposter.sh/rest_plugin/) support\n- ✅ [SOAP/WSDL mock](https://docs.imposter.sh/soap_plugin/) support\n- ✅ [OpenAPI/Swagger mock](https://docs.imposter.sh/openapi_plugin/) support\n- ✅ JavaScript [scripting](https://docs.imposter.sh/scripting/)\n- ✅ Support for [steps](https://docs.imposter.sh/steps/)\n- ✅ Support for [simulated delays](https://docs.imposter.sh/performance_simulation/), [simulated errors](https://docs.imposter.sh/failure_simulation/) and [rate limiting](./docs/rate_limiting.md)\n\n## ⚠️ Limitations\n\n- No support for Groovy [scripting](https://docs.imposter.sh/scripting/)\n- No support (yet) for some SOAP styles (https://github.com/imposter-project/imposter-go/issues/7)\n\n## Getting Started\n\nThe recommended way to get started for most users is to use the latest [Imposter CLI](https://github.com/imposter-project/imposter-cli).\n\n\u003e **Note**\n\u003e If you don't have Imposter CLI installed, or you want to use the `imposter-go` binary directly, continue to the [Installation](#Installation) section.\n\nWith Imposter CLI installed, use the `-t golang` option, and pass `-v \u003cversion\u003e`:\n\n```\nimposter up -t golang -v \u003cversion\u003e\n```\n\n...where `version` is from the [Releases](https://github.com/imposter-project/imposter-go/releases/) page, for example:\n\n```\nimposter up -t golang -v 0.15.0\n```\n\n## Installation\n\n### Using Pre-built Binaries\n\nDownload the latest release for your platform from GitHub:\n\n#### macOS\n\n```bash\n# For Intel Macs (amd64)\ncurl -L https://github.com/imposter-project/imposter-go/releases/latest/download/imposter-go_darwin_amd64.tar.gz | tar xz\nsudo mv imposter-go /usr/local/bin/\n\n# For Apple Silicon Macs (arm64)\ncurl -L https://github.com/imposter-project/imposter-go/releases/latest/download/imposter-go_darwin_arm64.tar.gz | tar xz\nsudo mv imposter-go /usr/local/bin/\n```\n\n#### Linux\n\n```bash\n# For amd64 systems\ncurl -L https://github.com/imposter-project/imposter-go/releases/latest/download/imposter-go_linux_amd64.tar.gz | tar xz\nsudo mv imposter-go /usr/local/bin/\n\n# For arm64 systems\ncurl -L https://github.com/imposter-project/imposter-go/releases/latest/download/imposter-go_linux_arm64.tar.gz | tar xz\nsudo mv imposter-go /usr/local/bin/\n```\n\n#### Windows\n\n1. Download the latest release from [GitHub Releases](https://github.com/imposter-project/imposter-go/releases/latest)\n2. Extract the `imposter-go_windows_amd64.zip` file\n3. Add the extracted `imposter-go.exe` to your PATH or move it to a directory in your PATH\n\n## Usage\n\nRun with a directory containing Imposter configuration file(s):\n\n```bash\nimposter-go ./examples/rest/simple\n```\n\nVisit `http://localhost:8080/hello` in your browser or use `curl`:\n\n```bash\ncurl http://localhost:8080/hello\n```\n\n#### Examples\n\nThe repository includes several examples demonstrating different features:\n\n- [Simple REST API](examples/rest/simple) - Basic REST API mocking\n- [SOAP Web Service](examples/soap/simple) - SOAP/WSDL-based service mocking\n- [OpenAPI HTTP API](examples/openapi/v30) - OpenAPI-based service mocking\n- [AWS Lambda](examples/lambda) - Running Imposter in AWS Lambda\n\n---\n\n## Configuration\n\nA subset of the Imposter [environment variables](https://docs.imposter.sh/environment_variables/) are supported. For example:\n\nSet the `IMPOSTER_PORT` environment variable to change the default port:\n```bash\nexport IMPOSTER_PORT=9090  # Default: 8080\n```\n\nEnable recursive directory scanning for configuration files:\n```bash\nexport IMPOSTER_CONFIG_SCAN_RECURSIVE=true  # Default: false\n```\n\nSet the `IMPOSTER_SERVER_URL` environment variable to override the URL reported by the server:\n```bash\nexport IMPOSTER_SERVER_URL=http://example.com  # Default: http://localhost:8080\n```\n\nSet the `IMPOSTER_LOG_LEVEL` environment variable to control logging verbosity:\n```bash\nexport IMPOSTER_LOG_LEVEL=DEBUG  # Available levels: TRACE, DEBUG, INFO, WARN, ERROR\n```\n\nThe default log level is DEBUG. Available log levels:\n- TRACE - Most verbose, logs all messages\n- DEBUG - Detailed information for debugging\n- INFO - General operational messages\n- WARN - Warning messages for potentially harmful situations\n- ERROR - Error messages for serious problems\n\n### Legacy Configuration Support\n\nImposter Go supports legacy configuration formats, for backwards compatibility with older Imposter configurations.\n\nEnable support for legacy configuration format:\n```bash\nexport IMPOSTER_SUPPORT_LEGACY_CONFIG=true\n```\n\nWhen legacy configuration support is enabled, older configuration formats are automatically transformed. For example:\n\n```yaml\n# Legacy format (root-level fields)\nplugin: rest\npath: /hello\ncontentType: text/plain\nresponse:\n  staticData: Hello, World!\n```\n\n```yaml\n# Legacy format (deprecated names for resource-level fields)\nplugin: rest\nresources:\n  - path: /hello\n    contentType: application/json\n    response:\n      staticFile: response.json # Deprecated, use file instead\n      staticData: Hello, World! # Deprecated, use content instead\n      scriptFile: transform.js  # Deprecated, use a script step instead\n```\n\n---\n\n## Development\n\nSee the [Development Guide](docs/development.md) for instructions on building, testing, and contributing to the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimposter-project%2Fimposter-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimposter-project%2Fimposter-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimposter-project%2Fimposter-go/lists"}