Zero Runtime DependenciesBring your own adapter or use the built-in fetch adapter. Tiny bundle, tree-shakable, sideEffects-free.
Fluent Immutable ClientEvery configuration call returns a new instance. Safe to derive, fork, and share across requests without mutation bugs.
Middleware PipelineDeclarative enter/leave hooks with skip, terminate, and retry controls. Compose auth, caching, envelope unwrapping, and more.
Pluggable TransportSwap the adapter to use gRPC, WebSocket, axios, XMLHttpRequest, or in-memory mocks. The pipeline stays unchanged.
Unified Error SystemThree-layer error hierarchy (internal, adapter, unknown). Branch on code, not message, with instanceof discrimination.
TypeScript-FirstFull type inference across the pipeline. request<T>() infers response shape from responseType.