Node Package Manager (npm) is a registry of reusable JavaScript code. npm calls each library of reusable code a package.
Wix provides its own npm packages that you can use to access Wix APIs, business solutions, and platform features from a site's code. You can also install packages written by 3rd-party developers to add functionality without building it yourself.
After you install a package, you can import it in a site's frontend components, including ERCs, or backend code.
Here are some examples of Wix and non-Wix packages you could use:
@wix/data: Manage data in Wix CMS.@wix/stores: Manage products and inventory for Wix Stores.@wix/ecom: Access Wix eCommerce APIs.@wix/editor-react-types: Use type definitions for ERC props and manifest fields.lodash: Manipulate strings, arrays, and optimize common operations.@sendgrid/mail: Send emails using the SendGrid service.axios: Make HTTP requests from a browser or Node.js environment.Tip:
Common packages including react, react-dom, typescript, @wix/data, @wix/stores, and @wix/editor are pre-installed in your project. You can import them directly without running npm install.
When you install a non-Wix package, make sure you understand the package's functionality, appropriate use cases, and limitations. Note that certain types of packages aren't supported, including private packages, packages requiring specific hardware, and packages that may pose a security risk.
Here are some important considerations for using non-Wix npm packages:
Importing npm packages in frontend code increases the page's response size and may affect a site's performance.
Non-Wix packages you install must be compatible with Wix's runtime environment.
.nvmrc in the Code tab, or by running node --version in the terminal. The current version is Node.js 22.Last updated: 2 November 2026