Code in Blocks with the SDK

You can now use the Wix JavaScript SDK instead of Velo APIs for most functionality when building apps with Blocks. This marks the beginning of a gradual transition from using Velo APIs to using the next generation SDK.

The Wix JavaScript SDK follows industry standards, using npm modules to make development more accessible for professional web developers. It offers greater stability and aligns with the tools used across Wix CLI and self-hosted apps.

You are encouraged to start using the SDK in all new and ongoing development projects. You may also want to migrate existing code written using Velo APIs to the SDK.

Install the npm package

Before you can import an SDK module in your code, you must install the corresponding npm package to your app.

  • To install the packages in Blocks, go to Code {} > npm > Install packages from npm.
  • To install the package in the Blocks CLI integration, use the command line.

See also

Learn more about the transition from Velo APIs to the SDK.

Did this help?