Skip to content

Performance Optimization

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

Performance Optimization

Power-SEO is designed for minimal bundle impact.

Bundle Size

All packages are:

  • Tree-shakeable - Only import what you use
  • Dual ESM + CJS - Works with any bundler
  • Optimized - No unnecessary dependencies

Typical Bundle Sizes

@power-seo/core            ~5 KB (gzipped)
@power-seo/react           ~8 KB (gzipped)
@power-seo/schema          ~12 KB (gzipped)
@power-seo/content-analysis ~15 KB (gzipped)
@power-seo/audit           ~18 KB (gzipped)

Zero Dependencies

Core packages have zero runtime dependencies:

{
  "name": "@power-seo/core",
  "peerDependencies": {},
  "dependencies": {}
}

Best Practices

  1. Import only what you need

    // ✅ Good - tree-shaken
    import { validateTitle } from '@power-seo/core';
    
    // ❌ Avoid - pulls entire package
    import * as PowerSEO from '@power-seo/core';
  2. Lazy load analysis

    const { analyzeContent } = await import('@power-seo/content-analysis');
  3. Use async for heavy operations

    const result = await analyzeContent(input);

All packages include "sideEffects": false for optimal tree-shaking.

Clone this wiki locally