# Axios vs Got: source lines of code compared

The Axios vs Got comparison on OctoCounts shows side-by-side source line counts for axios/axios and sindresorhus/got, counted with the same engine and analysis options on the dates shown in the methodology line: files, total lines, code lines, comment lines, blank lines, and per-language totals, pinned to the exact commits listed below.

As of 2026-09-16, axios/axios contains 27,704 total lines (18,395 code) across 120 files, while sindresorhus/got contains 12,162 total lines (7,722 code) across 32 files as of 2026-09-16. axios/axios is about 2.4x the size of sindresorhus/got by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

| Metric | [axios/axios](https://octocounts.com/github/axios/axios) | [sindresorhus/got](https://octocounts.com/github/sindresorhus/got) |
| --- | ---: | ---: |
| Files | 120 | 32 |
| Total lines | 27,704 | 12,162 |
| Code lines | 18,395 | 7,722 |
| Comment lines | 6,034 | 2,510 |
| Blank lines | 3,275 | 1,930 |
| Languages counted | 5 | 4 |

Top languages in axios/axios: JSON (54.3% of code), JavaScript (36.7% of code), TypeScript (7.2% of code). Top languages in sindresorhus/got: TypeScript (97.8% of code), JSON (2.2% of code), SVG (0.0% of code). JSON, TypeScript, Markdown appear in both top language lists; JavaScript, HTML appear only in axios/axios's top languages; SVG appears only in sindresorhus/got's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. axios/axios was counted at ref ba0f3a0c568e68de5e7d455ae8c566ed43525550 (commit ba0f3a0c568e) on 2026-09-16; sindresorhus/got was counted at ref 687eb7dcc100ea3e548ebba227173b886789e670 (commit 687eb7dcc100) on 2026-09-16. See the [counting methodology](https://octocounts.com/docs/methodology) for ignored directories and analysis options.
## About this comparison

axios/axios counts the Axios repository: a promise-based HTTP client that runs in both browsers and Node.js, with its type definitions, tests, and examples. sindresorhus/got counts the Got repository: an HTTP client that targets Node.js specifically, with its own tests and documentation. The two are comparable as single-library source trees, counted on the dates in the methodology line above.

The per-language tables show both repositories written in JavaScript with TypeScript definition files, so the counted difference is scope rather than implementation language: Axios maintains one client codebase across browser and Node.js environments, while Got targets Node.js only.

Both trees devote a large share of their lines to tests, documentation, and examples — for focused libraries, that supporting material can rival the client code itself, which the totals together with the language tables make visible.

_Line count does not track bundle weight, request throughput, or feature coverage; a smaller repository is not a lighter or faster HTTP client for any given workload._

Sources: [axios/axios repository](https://github.com/axios/axios) · [sindresorhus/got repository](https://github.com/sindresorhus/got). Statements verified 2026-09-16.

Evidence and next steps:

- [axios/axios SLOC report](https://octocounts.com/github/axios/axios)
- [sindresorhus/got SLOC report](https://octocounts.com/github/sindresorhus/got)
- [Compare axios/axios and sindresorhus/got interactively](https://octocounts.com/compare?left=https%3A%2F%2Fgithub.com%2Faxios%2Faxios&right=https%3A%2F%2Fgithub.com%2Fsindresorhus%2Fgot)

Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.

## Compare FAQ

### Which has more lines of code, axios/axios or sindresorhus/got?

axios/axios has more code: 18,395 code lines versus 7,722 for sindresorhus/got, about 2.4x as much, based on cached OctoCounts reports as of 2026-09-16.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for axios/axios, sindresorhus/got, or any repository.

### How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. axios/axios was counted at ref ba0f3a0c568e68de5e7d455ae8c566ed43525550 (commit ba0f3a0c568e) on 2026-09-16; sindresorhus/got was counted at ref 687eb7dcc100ea3e548ebba227173b886789e670 (commit 687eb7dcc100) on 2026-09-16. See the counting methodology for ignored directories and analysis options.

### Can I compare a different branch, tag, or commit?

Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.

## Related OctoCounts pages

- [Interactive repository comparison](https://octocounts.com/compare)
- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [OctoCounts API docs](https://octocounts.com/docs/api)
