Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A decoupled Gatsby theme for WooCommerce with React frontend, WordPress backend, GraphQL, PWA and offline support.

Next.js ecommerce starter built as a web programming final exam, using MongoDB, Prisma, Tailwind CSS, and JWT auth.
Electra is a Gatsby theme that builds a WooCommerce storefront on a decoupled architecture, pairing a React frontend with a WordPress backend via GraphQL.
Electra is an open-source Gatsby theme for WooCommerce e-commerce sites that separates the frontend and backend. It takes a WordPress site running WooCommerce as its data source and produces a static, progressive web app with product pages, search, cart, checkout, and a customer account area. The theme is maintained by Imran Sayed and uses gatsby-source-wordpress@v4 BETA to pull content into Gatsby.
npm run build to generate a production-ready static site.site package or the gatsby-woocommerce-theme package.npm run build and output directory site/public for hosting.After cloning the repository and installing dependencies, you add WordPress plugins (including wp-graphql, wp-graphql-woocommerce, and wp-gatsby) and set up menu locations and widgets. Then you create .env and .env.development/.env.production files with your WordPress URL and IDs. Running npm run dev starts a local server at http://localhost:8000 with a GraphQL playground at http://localhost:8000/___graphql.
Yes, the theme is open source and available on GitHub. There are no paid tiers mentioned in the repository documentation.
The setup requires: Headless CMS, WooCommerce, WP GraphQL, WP GraphQL WooCommerce, WP Gatsby, Yoast SEO, WP GraphQL Yoast SEO, and WP GraphQL JWT Authentication. All are provided as zips in the repository's wordpress/plugins folder.
Yes, the theme is built as a PWA. Product search with pagination and the wishlist feature work even when there is no network connection.
The theme uses gatsby-source-wordpress@v4 BETA, which means it is built against a beta release of the source plugin. You should check for updates or issues when using it in production.
You can deploy to Vercel by importing the project and adding the build command npm run build with output directory site/public. Environment variables such as WORDPRESS_SITE_URL must be added to the project settings.
