# @apimatic/core

> This package provides the core HTTP request orchestration, response handling, and API call coordination.

Latest version **0.10.30** (published 2026-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @apimatic/core
pnpm add @apimatic/core
yarn add @apimatic/core
bun add @apimatic/core
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.10.30 |
| Published | 2026-07-09 |
| First published | 2021-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.15.0 \|\| >=16.0.0 |
| Dependencies | 14 |
| Unpacked size | 235.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | APIMatic Ltd. |
| Maintainers | apimaticdev, mehdi991, hamzamahmood, asadali214 |

## Links

- npm: https://www.npmjs.com/package/@apimatic/core
- Repository: https://github.com/apimatic/apimatic-js-runtime
- Homepage: https://github.com/apimatic/apimatic-js-runtime#readme
- Issues: https://github.com/apimatic/apimatic-js-runtime/issues
- npm.io page: https://npm.io/package/@apimatic/core

## Dependencies (14)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [form-data](https://npm.io/package/form-data.md) ^4.0.1
- [detect-node](https://npm.io/package/detect-node.md) ^2.1.0
- [tiny-warning](https://npm.io/package/tiny-warning.md) ^1.0.3
- [detect-browser](https://npm.io/package/detect-browser.md) ^5.3.0
- [lodash.flatmap](https://npm.io/package/lodash.flatmap.md) ^4.5.0
- [@apimatic/schema](https://npm.io/package/@apimatic/schema.md) ^0.7.21
- [lodash.defaultsdeep](https://npm.io/package/lodash.defaultsdeep.md) ^4.6.1
- [@apimatic/http-query](https://npm.io/package/@apimatic/http-query.md) ^0.3.9
- [@apimatic/json-bigint](https://npm.io/package/@apimatic/json-bigint.md) ^1.2.0
- [@apimatic/file-wrapper](https://npm.io/package/@apimatic/file-wrapper.md) ^0.3.9
- [@apimatic/http-headers](https://npm.io/package/@apimatic/http-headers.md) ^0.3.8
- [@apimatic/core-interfaces](https://npm.io/package/@apimatic/core-interfaces.md) ^0.2.14
- [@apimatic/convert-to-stream](https://npm.io/package/@apimatic/convert-to-stream.md) ^0.1.9

## Recent versions

- 0.10.30 (latest) — 2026-07-09
- 0.10.29 — 2025-12-24
- 0.10.28 — 2025-11-04
- 0.10.27 — 2025-09-30
- 0.10.27-alpha.2 — 2025-09-29
- 0.10.27-alpha.1 — 2025-09-29
- 0.10.27-alpha.0 — 2025-09-04
- 0.10.26 — 2025-09-04
- 0.10.25 — 2025-09-02
- 0.10.24 — 2025-08-13
- 0.10.23 — 2025-07-30
- 0.10.22 — 2025-07-30
- 0.10.21 — 2025-07-15
- 0.10.20 — 2025-07-11
- 0.10.19 — 2025-05-15
- … 39 more at https://npm.io/package/@apimatic/core/versions

## README

# APIMatic Core Library for JavaScript SDKs

This package provides the core HTTP request orchestration, response handling, and API call coordination.

The exported functionality includes:

* **Request Building**: Create fully-configured HTTP requests with dynamic URL construction, query serialization, header management, and support for multiple body formats including JSON, XML, form data, and file uploads.
* **Request Adapters**: Utilities to convert incoming requests, such as Express.js requests, into core HttpRequest objects.
* **Authentication Integration**: Seamlessly incorporate API key, bearer token, and custom authentication schemes into request execution.
* **Response Processing**: Validate and transform API responses into strongly-typed objects, with support for JSON, XML, text, and streams.
* **Interceptor System**: Extend request/response pipelines with authentication injection, retry strategies, logging, and schema-based validation.
* **Error Management**: Handle and classify API errors with detailed request/response context, including validation and HTTP-specific errors.
* **Utility Functions**: Common helpers for path templating, query string handling, file streaming, and secure logging.

This library is used by JavaScript SDKs generated by the [APIMatic Code Generator](http://www.apimatic.io). For details on supported platforms and build artifacts, see the [Build and Usage Section](https://github.com/apimatic/apimatic-js-runtime?tab=readme-ov-file#builds-and-usage).

---
_Source: https://npm.io/package/@apimatic/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
