Libraries & Dependencies

Libraries are specialized items that are not visible in the Storefront. Instead, they are available for other publishers to reference inside their scripts.

Creating a Library

Creating a library works the same way as creating a script (seeStep By Step Guide).

The only difference is that a library requires a Library ID.

  • The Library ID is a unique identifier used by scripts to reference your library.

  • Without it, other publishers cannot include your library as a dependency.

You can create and assign a Library ID in the General tab:

Once published and approved, your library becomes available for others to use as a dependency.

Referencing Libraries

When your script references a library, the library is automatically loaded alongside your script at runtime.

To add a library dependency:

  1. Go to the Dependencies tab.

  2. Click Add dependency.

  3. Find the library you want to reference and click Add.

  4. The library will appear in your dependencies list.

It is recommended to reference a specific version of a library rather than always pulling the latest. This ensures your script continues to work even if the library author publishes breaking changes later.

Last updated