A function library is a logical component in Studio Two's component model. It gives Editor React Components (ERCs) reusable, stateless logic through editor binding. Unlike a Data Source, it doesn't hold shared state.
In a Studio Two site project, a function library has a manifest and an implementation:
You add a function library from the Code tab through the Wix Extension Builder. For the file structure and fields, see About Function Libraries in Extension References.
A function library is connected in the editor and runs on the site:
Wix also uses a built-in function library to convert values during editor binding. For example, it can convert a phone number to rich text when the source and ERC prop use different data types.
Last updated: 2 November 2026