ts-retrofit

JSON →
library 1.19.1 ·javascript maintenance
verified Jun 7, 2026

ts-retrofit is a declarative HTTP client library for JavaScript and TypeScript, inspired by Java's Retrofit. Built on top of axios, it uses TypeScript decorators like @GET, @POST, @Path, @Body to define API endpoints cleanly. Version 1.19.1 is current, with a stable release cadence (last few releases in 2020-2021). Key differentiators: strong type safety, axios under the hood for flexibility, and a service builder pattern. Compared to alternatives like swagger-typescript-api, it offers simpler setup and runtime decorators.