@air/api-core
v0.1.2
Published
Core HTTP engine for Air API SDK
Downloads
300
Maintainers
Keywords
Readme
@air/api-core
Core HTTP engine for the Air API SDK.
This package provides the low-level HTTP client, pagination, error classes, and retry logic used by @air/api-rest and @air/api-sdk.
Installation
Most users should install @air/api-sdk instead, which includes this package:
npm install @air/api-sdkIf you only need the core HTTP primitives:
npm install @air/api-coreWhat's included
AirClient— HTTP client with automatic retries, timeouts, and header managementPagePromise/CursorPage— async-iterable pagination- Error classes —
APIError,BadRequestError,AuthenticationError,NotFoundError,RateLimitError,ConnectionError,TimeoutError, etc. - Retry logic with exponential backoff for transient failures
Documentation
- Air Developer Docs — API reference and guides
- GitHub Repository — source code and examples
License
MIT
