Function Library Resources Reference

The resources section of a function library manifest points to the library's implementation code. On the published site, Wix loads this code and calls a connected function when its slot is triggered.

Example

The following example points to the implementation for a generated price-formatting library:

Copy

Resources fields

A resources section has the following fields:

FieldRequiredDescription
clientYesThe library's implementation.
moduleSpecifierNoModule identifier for the library.

The moduleSpecifier is one of the following:

  • If your library isn't published as an npm package, set moduleSpecifier to <codeIdentifier>-<library-name>, where <codeIdentifier> is companionApp, the same identifier that prefixes the manifest's type.
  • If your library is published as an npm package, set moduleSpecifier to that package's name.

Client resource

The client field points to the library implementation that runs on the live site:

FieldRequiredDescription
urlYesPath to the library's implementation file. Each function is a named export matching its key in functions.

See also

Last updated: 2 November 2026

Did this help?