There was an error while loading. Please reload this page.
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);
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);
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.