# mholt/curl-to-go

Convert curl commands to Go code in your browser

Repository: https://github.com/mholt/curl-to-go
Canonical: https://ross.abutalabs.com/products/curl-to-go
Homepage: https://mholt.github.io/curl-to-go
Language: JavaScript
License: MIT
License Family: permissive
Topics: curl, curl-commands, golang, go
Last push: 2024-11-26T22:25:56+00:00

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

## Adoption (not part of the score)
Stars 1822, forks 168 (observed 2026-08-28T04:05:41.024974+00:00)

## What it is
A browser-based tool that instantly converts curl commands into Go code using net/http. It handles common flags like headers, data, basic auth, and request methods, though not all curl options.

## Use cases
- convert curl command to go code
- translate api docs curl examples into go
- generate go http client code from curl
- turn curl request into net/http snippet
- convert curl headers and body to golang

## When to choose
- you need quick Go code from curl samples in API documentation
- you want a zero-install tool that runs entirely in the browser
- your curl commands use common flags like -d, -H, -u, -X

## When to avoid
- you need high-fidelity conversion of complex or obscure curl flags
- you need conversions to languages other than Go
- you need production-ready code with full error handling without edits

## Facets
- artifact type: application
- maturity: maintenance
- function: developer-tools, parser, http-client
- domain: developer-tools, web-development, apis
- platform: browser, go
- tags: curl, code-conversion, golang, browser-tool, http-requests

## Member repositories
- mholt/curl-to-go (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.024974+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-30T03:19:55.201421+00:00, confidence not recorded.
  - readme: https://github.com/mholt/curl-to-go (fetched 2026-08-28T04:05:41.024974+00:00, sha f1044b858184)
  - homepage: https://mholt.github.io/curl-to-go (fetched 2026-08-29T10:58:53.044278+00:00, sha 7220d8f15e72)
- Data as of 2026-08-30T08:39:29.467469+00:00.
