The foundation everything is built on. Typed requests, predictable errors, automatic retries with backoff, request/response interceptors, query params, in-flight de-duping, response caching and cursor pagination — built on the platform fetch. A tiny axios / ky alternative that runs on Node, browsers, edge and React Native.
Install
$ npm install @lacspace/api
Quick example
@lacspace/apits
api.get("users/me")
Returns { id, name, … }
Tips
Zero-dependency and isomorphic — safe to import on the server, in the browser, on the edge and in React Native. It tree-shakes, so you only ship what you import.
Looking for the complete API and more examples? The npm page and GitHub README carry the full reference — or grab the PDF.