Svelte Commerce screenshot

Svelte Commerce

Author Avatar Theme by Itswadesh
Updated: 21 May 2025
1684 Stars

The open-source storefront for any ecommerce. Built with a PWA and headless approach, using a modern JS stack. Works with Litekart, Medusa. WIP for Woocommerce, Bigcommerce and Shopify.

Categories

Overview

Svelte Commerce is an open-source frontend for any eCommerce platform. It is built with a PWA (Progressive Web App) and headless approach, leveraging a modern JavaScript stack. The project aims to provide a flexible solution for connecting with various eCommerce backends through APIs, including MedusaJS, WooCommerce, Bigcommerce, and Shopify. Svelte Commerce offers both server-side rendering (SSR) and single-page application (SPA) capabilities, ensuring fast performance. It is free and open source, allowing users to download and modify the code to suit their specific needs. With Svelte Commerce, users can easily integrate essential eCommerce features with their existing backend without making a significant investment.

Features

  • SSR and SPA: Combines the advantages of server-side rendering and single-page application architecture.
  • Superfast: Emphasizes performance for a seamless user experience.
  • API Integration: Can connect with any eCommerce backend that provides a REST API.
  • Free and Open Source: Users can download and modify the code according to their requirements.
  • Essential eCommerce Features: Offers pre-integrated features necessary for eCommerce functionality.
  • Easy Integration: Can be attached to an existing backend without a major overhaul.
  • Headless Architecture: Separates the frontend from the backend, allowing for more flexibility and interoperability.
  • Adaptable: Works with various eCommerce platforms such as MedusaJS, WooCommerce, Bigcommerce, and Shopify.

Installation

To install Svelte Commerce, follow these steps:

  1. Clone the Svelte Commerce repository from GitHub:

    git clone <repository-url>
    
  2. Navigate to the cloned repository:

    cd svelte-commerce
    
  3. Install the dependencies:

    npm install
    
  4. Configure the necessary settings in the following files:

    • src/lib/config/: Update non-secret and application-wide configurations according to your requirements.
    • .env: Store secret configurations.
    • src/lib/services/index.ts: Choose which eCommerce service to use.
  5. Start the development server:

    npm run dev
    
  6. Open your browser and navigate to http://localhost:3000 to access the Svelte Commerce app.

To deploy Svelte Commerce, you can use Netlify or Vercel. It requires zero configuration. Alternatively, you can use Docker by pulling the latest Docker image and deploying it.

Summary

Svelte Commerce is an open-source frontend for eCommerce platforms, built with a PWA and headless approach. It offers a range of features including SSR and SPA capabilities, API integration, and easy customization. With its flexible architecture and support for various eCommerce platforms, Svelte Commerce provides a seamless solution for integrating eCommerce functionality into existing backends. It is free and open source, making it accessible to developers who want to modify the code according to their specific requirements.