# alufers/mitmproxy2swagger

Automagically reverse-engineer REST APIs via capturing traffic

Repository: https://github.com/alufers/mitmproxy2swagger
Canonical: https://ross.abutalabs.com/products/mitmproxy2swagger
Language: HTML
License Family: other
Topics: mitmproxy, openapi, reverse-engineering, swagger
Last push: 2026-08-24T18:24:23+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 53, longevity 100
- inputs: {"age_days": 1575, "days_push": 9, "days_rel": 100, "gap_med": 528, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9594, forks 372 (observed 2026-08-28T04:10:35.988134+00:00)

## What it is
A CLI tool that converts mitmproxy traffic captures (and HAR files) into OpenAPI 3.0 / Swagger specifications. It lets you reverse-engineer undocumented REST APIs by capturing HTTP traffic and merging results into an existing schema.

## Use cases
- generate openapi spec from captured http traffic
- reverse-engineer an undocumented rest api
- convert mitmproxy flow file to swagger
- create api documentation from har file
- document a mobile app's backend api
- merge multiple traffic captures into one api spec

## When to choose
- you need an OpenAPI spec for an API with no existing documentation
- you can capture the API's traffic via mitmproxy or browser DevTools HAR export
- you want to incrementally extend an existing schema with new captures

## When to avoid
- you need to document GraphQL or non-REST APIs
- you already have hand-written OpenAPI specs and just need editing tooling
- traffic is encrypted and you cannot set up a MITM proxy

## Facets
- artifact type: cli-tool
- maturity: active
- function: reverse-engineering, api-documentation, parser, developer-tools
- domain: apis, developer-tools, reverse-engineering, documentation
- platform: cli, python, cross-platform
- tags: openapi, swagger, mitmproxy, har, traffic-capture, rest-api, docker

## Member repositories
- alufers/mitmproxy2swagger (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:35.988134+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:21:54.148954+00:00, confidence not recorded.
  - readme: https://github.com/alufers/mitmproxy2swagger (fetched 2026-08-28T04:10:35.988134+00:00, sha 07f82669c39d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
