{"library":"balena-request","type":"library","category":null,"description":"balena-request is a low-level HTTP client specifically designed for making requests to Balena servers. It is not intended for direct use by end-users, but rather as an internal dependency for other Balena-io modules, such as the balena SDK. The current stable version is 14.2.0, with frequent patch and minor releases, indicating active development. Key differentiators include its tight integration with the Balena ecosystem, requiring an instantiated `balena-auth` instance for authentication, and providing features like request interceptors, streaming capabilities, and automatic handling of authorization. It supports both Node.js (requiring `>=18.0.0`) and browser environments, though the `isBrowser` option has been deprecated in recent versions. The module exposes a factory function to create a request instance, enabling configurable behavior like debug logging and retries.","language":"javascript","status":"active","version":"14.2.0","tags":["javascript","balena","request","http","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install balena-request","imports":["import balenaRequest from 'balena-request';","import type { Interceptor } from 'balena-request';","import { BalenaRequestError } from 'balena-request';"]},{"cmd":"yarn add balena-request","imports":[]},{"cmd":"pnpm add balena-request","imports":[]}],"homepage":"https://balena.io","github":"https://github.com/balena-io-modules/balena-request","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/balena-request","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/balena-request/compatibility"}}