ts-fetch
JSON →A lightweight, type-safe wrapper around the native fetch API that uses TypeScript generics to enforce request and response types. Version 1.1.4 is the latest stable release. It provides opinionated defaults (JSON encoding/decoding, status code validation, timeouts) while allowing full customization. Compared to alternatives like axios or ky, ts-fetch focuses on simplicity and type safety without additional dependencies, returning a discriminated union for success/error/network-error states. The package ships with TypeScript definitions and has a small footprint, suitable for projects wanting typed HTTP requests without heavy abstraction.