{"id":40934687,"url":"https://github.com/coyote240/hector","last_synced_at":"2026-01-22T04:14:35.625Z","repository":{"id":40312040,"uuid":"191444011","full_name":"coyote240/hector","owner":"coyote240","description":"Generate swagger files from mitmproxy output.","archived":false,"fork":false,"pushed_at":"2022-06-25T23:47:11.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-13T16:19:28.260Z","etag":null,"topics":["addons","mitmproxy","openapi-specification","swagger"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coyote240.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}},"created_at":"2019-06-11T20:24:28.000Z","updated_at":"2023-10-05T14:46:26.000Z","dependencies_parsed_at":"2022-08-18T01:05:47.563Z","dependency_job_id":null,"html_url":"https://github.com/coyote240/hector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coyote240/hector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coyote240%2Fhector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coyote240%2Fhector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coyote240%2Fhector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coyote240%2Fhector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coyote240","download_url":"https://codeload.github.com/coyote240/hector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coyote240%2Fhector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28653940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["addons","mitmproxy","openapi-specification","swagger"],"created_at":"2026-01-22T04:14:35.568Z","updated_at":"2026-01-22T04:14:35.618Z","avatar_url":"https://github.com/coyote240.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hector\n\n__Hector__ is an addon for the excellent [mitmproxy](https://mitmproxy.org)\napplication, which captures and generates API documentation according to the\n[OpenAPI Specification](https://swagger.io/specification/).\n\n\n## Setup\n\nCreate a virtual environment using your preferred method and install\ndependencies. Python 3 is strongly preferred.\n\n```shell\n$ python3 -mvenv ~/env/hector\n$ pip install -r requirements.txt\n```\n\n\n## Usage\n\n```shell\n$ mitmdump -s ./hector.py --set hector_template=template.yaml \\\n                          --set hector_input=input.yaml \\\n                          --set hector_output=output.yaml\n```\n\n__hector__ will write swagger for every host accessed during your mitmproxy\nsession. At the end of the session all swagger data will be written to a single\nyaml file, separated by `--` per host.\n\n\n## Options\n\n### hector_template _(optional)_\n\nThis option specifies the base yaml that will be used by __hector__. You may\nprovide your own template, or the default, `hector_template.yaml` will be used\n\n### hector output _(optional)_\n\nThis option specifies the file to which the swagger yaml will be written at the\nend of the session. Default: `output.yaml`\n\n### hector input _(optional)_\n\nThis option allows you to load an existing swagger yaml, perhaps to resume a\nprevious session. Default: `None`\n\n\n## TODO\n\n* Add parameter and response details\n* Add option to filter by host or regex\n* Optionally write to multiple files instead of just one\n* Post-process swagger to collapse on base-path\n* Add a command to trigger a write to file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoyote240%2Fhector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoyote240%2Fhector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoyote240%2Fhector/lists"}