# Kong/httpsnippet

HTTP Request snippet generator for many languages & libraries

Repository: https://github.com/Kong/httpsnippet
Canonical: https://ross.abutalabs.com/products/httpsnippet
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: hacktoberfest
Last push: 2026-03-25T19:03:42+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 76, longevity 100
- inputs: {"age_days": 4228, "days_push": 161, "days_rel": 161, "gap_med": 14, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1210, forks 241 (observed 2026-08-28T04:03:59.990290+00:00)

## What it is
HTTPSnippet is a TypeScript library and CLI that converts HTTP requests described in HAR format into executable code snippets for many languages and libraries such as cURL, HTTPie, Python, Go, and Swift. It supports extensible targets and clients with per-client formatting options.

## Use cases
- generate curl command from a HAR file
- convert HTTP request to python requests code
- generate code samples for API docs in multiple languages
- turn captured HAR requests into httpie snippets
- generate client code snippets for javascript, go, java, php from an HTTP request

## When to choose
- you need to show the same HTTP request as code in many languages
- you have HAR captures and want reproducible request snippets
- you're building API documentation or an API embed service

## When to avoid
- you need to actually execute HTTP requests rather than generate snippets
- your target language or HTTP client isn't among the supported generators

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, cli
- domain: developer-tools, apis
- platform: cli, cross-platform
- tags: http, har, snippet-generator, api-documentation, typescript, code-generation, command-line, nodejs

## Member repositories
- Kong/httpsnippet (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.990290+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-30T06:18:06.275546+00:00, confidence not recorded.
  - readme: https://github.com/Kong/httpsnippet (fetched 2026-08-28T04:03:59.990290+00:00, sha 70501a68638e)
  - registry_npm: https://registry.npmjs.org/httpsnippet (fetched 2026-08-29T12:26:12.749667+00:00, sha bfd970dd2587)
- Data as of 2026-08-30T08:39:29.467469+00:00.
