LogoLogo
Build appsContact API support
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
  • Introduction to Instant Site development
  • Site templates glossary
  • Develop Site templates
    • Quickstart guide to a working Site template
    • Ecwid (Lightspeed E-Series) Crane CLI tool
    • Build Site templates: project structure
      • template-name.ts
      • section-name.vue
      • content.ts
      • design.ts
      • showcases/1.ts
      • translations.ts
      • layout.ts
  • Launch Site templates
    • Step-by-step publishing guide for Site templates
    • Monetize Site templates
    • Requirements for public Site templates
    • Recommendations for building public Site templates
  • Develop custom sections
    • How to use sections without templates
    • Quickstart with custom sections without building a template

Lightspeed® 2025

On this page
  • Step 1. Sign up with Ecwid
  • Step 2. Set up an application
  • Step 3. Get access scope
  • Step 4. Install Node.js and npm package
  • Step 5. Start a local project with the Crane tool
  • Step 6. Set up a project in IDE
  • Step 7. Deploy example section to Ecwid

Was this helpful?

  1. Develop custom sections

Quickstart with custom sections without building a template

Last updated 18 days ago

Was this helpful?

Custom section is a building block of the website page created by you or your developer. Sections are not limited in their content and therefore can cover any functionality. You can develop and publish sections without building fully functional templates as long as each of your sections has a completed style and functionality.

Sections are based on Typescript language and its Vue framework. You need proper knowledge of TypeScript to uncover the full potential of the feature.

Sections are built locally and then deployed to the Ecwid environment. After deploying, your custom sections will become available in the website editor. To apply any changes deployed to the existing section, remove and then reinstall the section in the editor.

Step 1. Sign up with Ecwid

You need a store on any paid plan to start working with sections.

We will provide you with a free test store with API access if you:

  • Work on a Site customization for one of our clients.

  • Want to develop a public section for Ecwid.

to get a test store.

To customize your working store, build sections in a local environment and test them inside the website Editor without applying any changes. Preview mode in the editor allows it.

Step 2. Set up an application

Working with Site sections requires authorization and access to Ecwid API. We have a platform called application where you can configure permissions called access scopes and authorize different APIs. A private application that gives access to your store API only is called a custom application.

Set up a custom application for your Ecwid store right from the admin, it only takes a few seconds:

Step 3. Get access scope

With the app, you can access store data with API. However, you need to request additional permission to build sections: add_custom_blocks.

Step 4. Install Node.js and npm package

Step 5. Start a local project with the Crane tool

With Crane, you can get a section code working locally and control its deployment with CLI. Use the following commands to set up a project folder, install all dependencies, and get the example section code.

Create a project folder:

mkdir {proj_folder}
cd ~/{proj_folder} 

Install all required modules:

npm install vite
npm install vue
npm install @lightspeed/crane@latest
npm install @lightspeed/eslint-config-crane@latest

Initialize a new app inside the project folder and go into its folder:

npx @lightspeed/crane@latest init --app my-app
cd my-app

Initializing the app automatically inits an example section inside its folder. However, you can add more sections at any time with the following code:

npx @lightspeed/crane@latest init --section my-section

After that, go into the example section folder and install additional dependencies for its example code:

cd example-section
npm install -D sass

Now you have a project folder with all the required files and modules to start section development.

Step 6. Set up a project in IDE

After the changes, your file should look like this:

{
    "app_client_id": "custom-app-1003-1",
    "app_secret_key": "HHLmjx1NQropDPrC5Uzx2BMoUQo4esEmr"
}

Step 7. Deploy example section to Ecwid

From this point, you can start developing custom sections. To start, deploy your example section to Ecwid as it is.

Code example:

'Go to section folder inside the project'
$ cd ~/{proj_folder}/example-section

'Build section on your local machine'
$ npx @lightspeed/crane@latest build

'Deploy built section to Ecwid'
$ npx @lightspeed/crane@latest deploy

After that, check the version in the package.json file. You should see something like this:

{
  "name": "example-section",
  "private": true,
  "version": "0.0.2",
  ...
}

Version value starts with 0.0.1 and iterates automatically with each successful deployment. The value from the package.json file is the next deployment version. We recommend not editing it manually.

Now you can find your custom sections in the website editor in your Ecwid admin. Go to the editor and click the + Add section button in the side menu.

with your application name or client_id and required access scope, so we can update the app for you.

CLI (Command Line Interface) is required to deploy sections to Ecwid. Make sure that your local node version matches the minimum version required by the crane tool. We recommend using at least version 10.7.0 to avoid any npm-related issues. Find instructions on installing node and npm on the .

Crane is a CLI tool for developing Site sections.

We recommend using the free application with Vue and TypeScript extensions. Open the project folder there and check the file structure inside.

First, you need to set up the crane.config.json file, it will connect the sections you build locally with the application on Ecwid side. Open the file and copy the client_id and client_secret from your custom application to the file. Find these values at the bottom of the page.

To do so, make sure your application is installed in the Ecwid admin. Go to and check if your custom app is listed there. After that, run the build and deploy commands in CLI.

You should see a success message in CLI. with details about your application and store if you have any errors in this step.

Sign up with Ecwid
Email us
#develop-apps
Email us
Node.js official website
Learn more about the Crane tool
VS Code
Learn more about the structure
Ecwid admin > #develop-apps > Details
Ecwid admin > My apps
Email us