storefront-widget

Develop customer-facing storefront widgets with Preact and Rspack.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/nhson2612/__ --skill storefront-widget-nhson2612
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storefront-widget
Source: https://github.com/nhson2612/__/tree/main/.claude/skills/scripttag
Command: npx skills add https://github.com/nhson2612/__ --skill storefront-widget-nhson2612

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical need for high-performance, lightweight customer-facing widgets on e-commerce storefronts, ensuring minimal impact on page load times and user experience.

Core Features & Use Cases

  • Performance Optimization: Focuses on reducing bundle size and implementing lazy loading for efficient widget delivery.
  • Preact Implementation: Utilizes Preact for its small footprint and fast rendering.
  • Use Case: Integrate a custom-styled product recommendation widget that only loads when a user scrolls to a specific section of the page, without slowing down the initial page load.

Quick Start

Use the storefront-widget skill to create a new Preact component for a customer-facing widget.

Frequently Asked Questions about storefront-widget

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build lightweight storefront widgets without slowing down page load?

To build lightweight storefront widgets, use Preact and Rspack for minimal bundle size and fast loading. This approach focuses on performance optimization and lazy loading to ensure efficient widget delivery without impacting initial page speed.

What is the best way to lazy load a Preact storefront widget?

The best way to lazy load a Preact storefront widget is by implementing performance optimization patterns that delay loading until needed, such as when a user scrolls to a specific section. This prevents the widget from slowing down the initial page load.

How does scripttag loading work with Theme App Extensions for storefront widgets?

Scripttag loading via Theme App Extensions handles how storefront widgets are injected and delivered to the storefront. This mechanism ensures widgets are loaded efficiently and integrated seamlessly without requiring direct theme modifications.

Can I use SCSS and BEM for efficient styling in Preact storefront widgets?

Yes, you can use SCSS and BEM for efficient styling in Preact storefront widgets. This combination allows for structured, maintainable styling while keeping the widget footprint small and ensuring fast rendering on the storefront.

How do I reduce bundle size when developing customer-facing e-commerce widgets?

To reduce bundle size when developing customer-facing e-commerce widgets, utilize Preact for its small footprint and Rspack for bundling. Focusing on performance optimization and lazy loading further minimizes the delivered payload.

Does this approach provide patterns for component sharing and request interception?

Yes, this approach provides patterns for both request interception and component sharing. These patterns help manage data fetching and reuse UI components efficiently across different storefront widgets.