# google/martian

Martian is a library for building custom HTTP/S proxies

Repository: https://github.com/google/martian
Canonical: https://ross.abutalabs.com/products/martian
Language: Go
License: Apache-2.0
License Family: permissive
Topics: http, proxy, golang, testing, middleware
Archived: true
Last push: 2024-12-18T22:05:20+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4096, "days_push": 623, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2041, forks 254 (observed 2026-08-28T04:06:08.565168+00:00)

## What it is
Martian is a programmable HTTP/S proxy library written in Go, designed primarily for testing. It lets developers intercept, inspect, and modify HTTP requests and responses at the network layer via configurable modifiers.

## Use cases
- mock external services at the network layer during tests
- verify that requests are sent over HTTPS
- inject or modify HTTP headers and cookies in transit
- capture HAR logs of all proxied traffic
- unwrap encrypted HTTPS traffic for inspection
- verify that analytics pingbacks fire as expected

## When to choose
- you need a programmable, scriptable HTTP proxy for integration testing
- you want to mock or mutate HTTP traffic at the network layer rather than in application code
- you need HAR capture of requests and responses
- you want a Go library you can embed or cross-compile anywhere

## When to avoid
- you need a general-purpose end-user proxy with a GUI like Charles or Fiddler
- you need high-throughput production proxying rather than testing
- you are not working in Go or comfortable with JSON-based runtime configuration

## Facets
- artifact type: library
- maturity: maintenance
- function: http-server, middleware, testing, mocking, proxy
- domain: developer-tools, testing, networking, web-development
- platform: go, cross-platform, cli
- tags: http-proxy, traffic-inspection, har-logging, network-mocking, https-interception

## Member repositories
- google/martian (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:08.565168+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-30T02:58:20.027192+00:00, confidence not recorded.
  - readme: https://github.com/google/martian (fetched 2026-08-28T04:06:08.565168+00:00, sha 1ca0ac90d1c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
