Presets
Built-in Presets
Web Guard includes three built-in presets that configure which pillars to run, minimum scores, and severity filters. Use them with the --preset flag or the preset config option.
lenient
Minimal checks for projects getting started with quality auditing. Runs only core pillars with relaxed thresholds.
| Setting | Value |
|---|---|
| Pillars | performance, a11y, seo |
| Min Score | 60 |
| Ignored Severities | minor, moderate |
| Device | mobile |
bash
npx web-guard --url https://your-site.com --preset lenientrecommended
Balanced checks for most projects. Runs 5 pillars with standard thresholds based on industry best practices.
| Setting | Value |
|---|---|
| Pillars | performance, a11y, seo, schema, security |
| Min Score | 80 |
| Ignored Severities | minor |
| Device | mobile |
bash
npx web-guard --url https://your-site.com --preset recommendedstrict
Full coverage for production-grade projects. Runs all 6 pillars with high thresholds and no severity filters.
| Setting | Value |
|---|---|
| Pillars | All 6 (performance, a11y, seo, schema, security, ux) |
| Min Score | 90 |
| Ignored Severities | none |
| Device | mobile |
bash
npx web-guard --url https://your-site.com --preset strictExtending Presets
Presets can be combined with custom config. Your config values override the preset:
typescript
// web-guard.config.tsexport default { preset: "recommended",
// Override specific pillar thresholds performance: { minScore: 70, // More lenient for image-heavy pages lcp: 3000, },
// Add extra pillars beyond the preset pillars: ["performance", "a11y", "seo", "schema", "security", "ux"],};Presets provide sensible defaults. Start with a preset and adjust individual pillar thresholds based on your project's needs.