This repo contains example widgets built for the BigCommerce platform. They aren’t meant to be used standalone — you’ll need a BigCommerce store to actually install them — but you can review and test them locally.
-
Clone the repo
git clone https://github.com/AMagicianNamedGob/big-commerce-widgets.git cd big-commerce-widgets -
Install dependencies
npm install
-
Create a
.envfile in the root of the project with your store details:CLIENT_ID=your_client_id ACCESS_TOKEN=your_api_token STORE_HASH=your_store_hash API_PATH=https://api.bigcommerce.com/stores/${STORE_HASH}/v3/
⚠️ Make sure your API account has theContent Modifyscope enabled. -
Start the local preview (via BigCommerce Widget Builder)
npx @bigcommerce/widget-builder start
-
Open the provided localhost URL in your browser to review the widgets.
- BigCommerce Widgets Docs: developer.bigcommerce.com/docs/storefront/widgets