# littledivy/mimic

Intercept any app, then call it from Python like a library

Repository: https://github.com/littledivy/mimic
Canonical: https://ross.abutalabs.com/products/littledivy-mimic
Language: Python
License: MIT
License Family: permissive
Last push: 2026-07-26T16:04:20+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 35, longevity 3
- inputs: {"age_days": 51, "days_push": 38, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1550, forks 101 (observed 2026-08-28T04:05:02.118743+00:00)

## What it is
mimic is a Python tool that captures traffic from mobile or web apps via mitmproxy, extracts authentication material, and uses AI to generate a plain Python client library for the app's private API. It also provides a hand-rolled Session class for building requests from captured mitm flows or 'Copy as cURL' data.

## Use cases
- call a mobile app's private API from Python like a library
- generate a Python client for an undocumented API by capturing traffic
- replay app requests with captured bearer tokens and session cookies
- automate actions in an iOS app programmatically
- script against an API that has no official SDK
- capture and reuse auth headers from mitmproxy flows

## When to choose
- you want to script or automate an app whose API is undocumented
- you need a quick Python client generated from real captured traffic
- you're comfortable with mitmproxy certificate setup on iOS or desktop
- you want editable, plain-Python generated clients rather than a black box

## When to avoid
- you need a supported, sanctioned integration with a service that offers an official API
- you can't or won't install a trusted MITM proxy certificate
- the target app uses certificate pinning or heavily rotating request signing
- you need production-grade reliability or legal clearance for API automation

## Facets
- artifact type: library
- maturity: active
- function: http-client, web-scraping, sdk, developer-tools, security
- domain: developer-tools, apis, reverse-engineering
- platform: python, cli
- tags: api-client-generation, traffic-capture, mitmproxy, reverse-engineered-apis, codegen, mobile-apis, automation, macos

## Member repositories
- littledivy/mimic (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:02.118743+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-30T04:30:19.482845+00:00, confidence not recorded.
  - readme: https://github.com/littledivy/mimic (fetched 2026-08-28T04:05:02.118743+00:00, sha b6eb8d16f6cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
