explaingit

sindresorhus/got

14,903TypeScript

TLDR

Got is a Node.js library for making HTTP and HTTPS requests from JavaScript or TypeScript code.

Mindmap

A visual breakdown will appear here once this repo is fully enriched.

In plain English

Got is a Node.js library for making HTTP and HTTPS requests from JavaScript or TypeScript code. The README tagline calls it a human-friendly and powerful HTTP request library, which means it gives developers a tidy way to fetch web pages, call APIs, post JSON, stream files, and handle the surrounding details like retries, timeouts, and errors. Up front the README is unusually candid: the maintainers tell most readers to use Ky from the same author instead, because Ky works in browsers too and is built on the standard Fetch API. Got still gets a lot of use, but it is Node.js only and is shipped as a native ES module package, so projects still using CommonJS need to convert to ESM before installing it. Version 11 of Got is no longer maintained. The README shows a short example: import got, call got.post with a URL and a json option, then chain a .json() call on the returned promise to parse the response. By default Got retries failed requests automatically, and that behavior can be turned off through an options setting. The documentation index lists what Got can do: a promise API, a stream API, a pagination API, advanced HTTPS options, HTTP/2 support, detailed timeout and retry handling, errors with metadata, hooks, reusable instances, progress events, plugins, RFC-compliant caching, proxy support, Unix domain socket connections, integration with Node's diagnostics channel, and TypeScript types. The README also lists community plugins built on Got (for AWS, GitHub, GitLab, GraphQL, web scraping, and SSRF protection), migration guides from Request, Axios, and the built-in Node HTTP module, and a feature comparison table against other Node HTTP clients.

Open on GitHub → Explain another repo

Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.