New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@sellbase/web

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sellbase/web

Sellbase storefront as Web Components: works in any site (HTML, WordPress, Vue, Svelte, Astro, Angular…).

latest
Source
npmnpm
Version
0.3.3
Version published
Maintainers
1
Created
Source

@sellbase/web

Sellbase web components for any site: plain HTML, WordPress, Webflow, Vue, Svelte, Astro or Angular. Shadow DOM, themed with CSS variables, 13 KB gzipped.

<script>
  window.SellbaseConfig = {
    url: 'https://<project>.supabase.co/functions/v1/sellbase-api',
    anonKey: '<anon key>',
  };
</script>
<script type="module" src="https://unpkg.com/@sellbase/web/dist/sellbase.js"></script>

<sellbase-cart-button></sellbase-cart-button>
<sellbase-add-to-cart product="my-product-slug"></sellbase-add-to-cart>
<sellbase-cart-drawer></sellbase-cart-drawer>
<!-- on /checkout: -->
<sellbase-checkout></sellbase-checkout>
<!-- on /gracias: -->
<sellbase-checkout-return></sellbase-checkout-return>

Elements:

  • sellbase-add-to-cart, sellbase-price, sellbase-product-grid;
  • sellbase-product: a full product page (gallery, title, description and buy box). Use product="<slug>", or slug-param="p" to read the slug from ?p= so one producto.html serves every product (set productUrl: '/producto.html?p={slug}' in SellbaseConfig);
  • sellbase-cart-button, sellbase-cart-drawer;
  • sellbase-checkout (shows the consent checkbox the store requires), sellbase-checkout-return;
  • sellbase-order-lookup, sellbase-download.

Theme them with --sellbase-primary, --sellbase-text, --sellbase-border, --sellbase-radius… and ::part().

Part of Sellbase, open source commerce that lives inside your project. MIT licensed.

Keywords

sellbase

FAQs

Package last updated on 28 Sep 2026

Related posts