Share your feedback
Your feedback helps us improve the development experience! Join the Devs on Wix Discord community to discuss features, give feedback, and connect with our growing community of developers.
The Wix JavaScript SDK allows you access to Wix business solutions and site data from JavaScript code. For example, you can use the @wix/stores
package to interact with the Wix Stores product catalog and handle site orders.
The JavaScript SDK includes:
Call Wix APIs to integrate custom functionality, including:
To handle an event with the SDK, use the event's callback registration method. For example, to handle the creation of a new cart, call the onCartCreated()
method.
How you call a callback registration method depends on the framework you're using:
Note: When developing websites, you can only handle events using Velo. Handling site events using the JavaScript SDK isn't currently supported.
You can also use the SDK to process events sent by Wix on your server using webhooks. For more information, see Handle Events With Webhooks.
Service plugins allow your Wix app to extend the functionality of a Wix site by injecting custom logic into existing app flows or introducing entirely new flows. Learn how to add a Wix-hosted service plugin with the CLI or implement a self-hosted service plugin.
Not writing JavaScript code? Check out our REST API as an alternative to using the JavaScript SDK for self-hosted Wix app and Headless development.
Your feedback is important to us.