Plugin for integrating axios HTTP client into Piral microfrontend applications. Current stable version: 1.11.0. Released as part of the Piral ecosystem, with regular updates aligned to Piral releases. Key differentiator: provides a pre-configured axios instance on the pilet API that is automatically wired with authentication and base URL settings, simplifying HTTP requests in pilets. Alternatives include sharing axios as a shared dependency.
npm install piral-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to integrate piral-axios into a Piral instance and use the axios object in a pilet with a relative URL.
Update to latest version and adjust options object if needed.
Use per-request configuration instead of mutating the shared instance.
Use the pilet API parameter to obtain the axios instance.
Ensure all API requests go to the base URL or manually attach tokens.
Install piral-core as a dependency: npm install piral-core
Use import instead of require, or ensure ESM is enabled.
Ensure createAxiosApi is included in the plugins array when creating the Piral instance.