Skip to content

eCommerce

Power SEO Bot edited this page Feb 27, 2026 · 1 revision

eCommerce Implementation

Product Pages

import { product, validateSchema } from '@power-seo/schema';

const schema = product({
  name: 'Wireless Headphones',
  description: 'Premium wireless headphones',
  image: [{ url: 'https://example.com/headphones.jpg' }],
  offers: {
    price: '199.99',
    priceCurrency: 'USD',
    availability: 'InStock',
  },
  aggregateRating: {
    ratingValue: 4.5,
    reviewCount: 128,
  },
});

// Validate before publishing
const { valid, issues } = validateSchema(schema);

Product Catalog

Generate sitemaps for large catalogs:

import { streamSitemap } from '@power-seo/sitemap';

const products = await fetchAllProducts();
const urls = products.map(p => ({
  loc: `/products/${p.id}`,
  lastmod: p.updatedAt,
  images: [{ loc: p.imageUrl }],
}));

const sitemap = streamSitemap('https://shop.example.com', urls);

Image SEO

Analyze product images:

import { analyzeAltText, analyzeImageFormats } from '@power-seo/images';

const images = await getProductImages();
const altAnalysis = analyzeAltText({ images });
const formatAnalysis = analyzeImageFormats({ images });

See CMS/Blog Use Case for detailed implementation patterns.

Clone this wiki locally