http-api-orm is an API ORM library for TypeScript, inspired by database ORMs. Version 1.3.0. It treats each API endpoint as a model, with Axios under the hood for HTTP requests. Key differentiators: it provides an ApiModel base class to configure request parameters, manage response data, and chain interceptors in order. Includes a Params class with proxyData() for reactive Vue 3 integration. Requires axios > 0.22.0 and lodash-es > 4.0.0 as peer dependencies.
npm install http-api-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define an API model with URL, params, and data, then make a request.
Use api.params.data.id instead of api.params.id
Wrap with reactive() when using in Vue: const api = reactive(new MyApi());
Use import type { ApiResponseMid } from 'http-api-orm/types/lib/ApiModel'Install axios@^0.22.0
Set moduleResolution to 'node' or 'node16' in tsconfig.json.
Use api.params.data.id to set parameters.
Use new Params(() => ({})).proxyData()