Getting Started
Getting Started
Capyseo is a framework-agnostic SEO toolkit that helps you find and fix SEO issues in your website.
Installation
CLI (Recommended)
Library
SvelteKit Adapter
Basic Usage
Analyze a Directory
Analyze all HTML files in a directory:
Analyze a Live Site
Crawl and analyze a live website:
Enable AI Features
Use Gemini AI to generate meta descriptions and alt text:
Configuration
Create a config file to customize rules:
This creates capyseo.config.js:
CI Integration
Use in your CI pipeline:
Exit codes:
0- Analysis passed1- Score below minimum or errors found
Output Formats
| Format | Description |
|---|---|
console |
Human-readable terminal output |
json |
Detailed JSON report |
sarif |
SARIF format for GitHub Code Scanning |
html |
Standalone HTML report |
csv |
CSV for spreadsheet analysis |
What's Checked
Capyseo includes 30+ built-in rules:
- Meta Tags: Title, description, viewport, charset
- Images: Alt text, lazy loading, dimensions
- Headings: H1 presence, hierarchy
- Technical: Canonical URLs, robots meta, hreflang
- Social: Open Graph, Twitter Cards
- Structured Data: JSON-LD validation
- Links: Broken links, redirect chains
- Content: Word count, readability
- Mobile: Viewport, touch targets
- Security: HTTPS, security headers