The Azion Libraries provide a suite of tools to interact with various Azion services, including Purge, Object Storage, and Image Processor. Each library is configurable and supports debug mode and environment variable-based configuration.
These libraries are designed to be versatile and can be used both within and outside of the Azion Runtime environment. When used outside of the Azion Runtime, the libraries will interact with Azion services via REST APIs. However, when used within the Azion Runtime, the libraries will leverage internal runtime capabilities for enhanced performance and efficiency.
Installing Azion Libraries
You can install the package using NPM or Yarn:
npm install azionyarn add azionUsing Azion Libraries
For more information about how to use Azion Libraries, check the documentation on NPM.
Go to Azion Libraries `Client` Go to Azion Libraries `Config`Available libraries
The azion package bundles several modules, so you can adopt only what your project needs, including:
- Purge — invalidate cached content on demand.
- Object Storage — manage buckets and objects in Azion’s storage.
- Image Processor — transform and optimize images on a distributed architecture.
- Additional clients such as Application, Cookies, and AI for interacting with other Azion services.
Because every library supports debug mode and environment variable-based configuration, you can use the same toolkit across local development and production on a distributed architecture.