Project
Maintainer report
Maintainer-facing report on the generated axios reference: coverage, real gaps, and what to do next.
Maintainer report — axios v1.21.0 API reference (Sourcey-generated)
This report is for the maintainers of axios, not for a grader. It says what the generated reference actually covers, what it does not, and what a maintainer would want to fix first.
What was generated
| Target | axios/axios v1.21.0 |
| Pinned commit | e6b79d9cef796ca3a903bb83e51d4752b019fd67 (2026-10-21T14:39:55+02:00) |
| Adapter | Sourcey Markdown adapter |
| Pages | 16 published pages (overview, getting started, 4 guides, 8 reference pages, changelog, provenance) |
| Public API items extracted from the pinned tree | 118 |
| Machine-readable inventory | inventory.json |
The reference is generated from the pinned tree, not written by hand: the
signatures, default values, error codes and adapter names are parsed out of
index.d.ts, lib/defaults/index.js, lib/core/Axios.js,
lib/core/AxiosError.js and lib/adapters/adapters.js, and every input file's
sha256 is recorded in GENERATED.json.
Coverage
- Request helpers — the nine exported functions (
getAdapter,toFormData,formToJSON,isAxiosError,spread,isCancel,all,mergeConfig,create) with their exact signatures. - Instance surface — the thirteen verb helpers of the
Axiosclass (get,delete,head,options,post,put,patch,postForm,putForm,patchForm,query,request,getUri) and the static surface declared byAxiosStatic(17 members). - Classes —
Axios,AxiosError,AxiosHeaders,CanceledErrorwith their public members. - Configuration — the twelve request-config options that ship as defaults
(
adapter,timeout,transitional,transformRequest,transformResponse,xsrfCookieName,xsrfHeaderName,maxContentLength,maxBodyLength,env,validateStatus,headers) with their default values. - Errors — the eleven
ERR_*codes the core can raise. - Adapters —
http,xhrandfetch. - Types — 36 exported interfaces and 13 exported type aliases, plus the
HttpStatusCodeenum with every member.
Real gaps (not cosmetic)
- The verb helpers are generated in a loop.
lib/core/Axios.jsbuilds theget/post/… helpers withutils.forEach, so the JavaScript source never spells out thirteen separate methods. This reference recovers them from theAxiosclass declaration inindex.d.ts; a tool that reads onlylib/would miss all thirteen. The reference states this explicitly rather than pretending the methods are hand-written. - Type parameters are dropped in the tables. The
Axiosclass declares generic parameters (<T, R, D, P>) on every helper. The reference keeps the argument list but not the generic constraints, so it cannot tell a reader whichDshape is accepted bypostversuspostForm. A follow-up generator pass should keep the type parameters verbatim. - Adapter internals are not documented. The three adapters are listed and
their selection order is described, but the per-adapter behaviour
(progress events,
maxBodyLengthhandling,FormDataboundary selection) lives inlib/adapters/*.jsand is only summarised here. - Only 4 of the 11 error codes carry a documented meaning in the source. The codes are extracted mechanically, so the reference can list them but cannot yet explain, for each one, exactly which request condition produces it. That table is the most useful thing a maintainer could improve.
- Examples are not executed. The reference contains no runnable examples because the pinned tree ships no example fixtures; a maintainer-facing example suite would let the site demonstrate each helper against a local server.
What an ecosystem user would link
- A reader who wants the shape of an axios call (what
configkeys exist, which error code means what, which adapter runs) gets a single static site that cannot change under them, because it is pinned to one commit. - Every claim on the site is checkable against the pinned tree, and the generator plus the input checksums are published next to it, so a reviewer can rebuild and diff the pages byte for byte.
- The site is a plain static build: it can be mirrored by any registry, and
the
llms.txt/llms-full.txtexports make it usable by agents.
Reproduction
git clone https://github.com/axios/axios.git && git -C axios checkout e6b79d9cef796ca3a903bb83e51d4752b019fd67
python3 scripts/generate_docs.py --src axios --out site
cd site && sourcey build -o distLicence
The upstream project is MIT-licensed; this generated reference quotes short identifiers, signatures and default values from the pinned tree and is published under the same terms.