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.

SettingValue
Pillarsperformance, a11y, seo
Min Score60
Ignored Severitiesminor, moderate
Devicemobile
bash
npx web-guard --url https://your-site.com --preset lenient

Balanced checks for most projects. Runs 5 pillars with standard thresholds based on industry best practices.

SettingValue
Pillarsperformance, a11y, seo, schema, security
Min Score80
Ignored Severitiesminor
Devicemobile
bash
npx web-guard --url https://your-site.com --preset recommended

strict

Full coverage for production-grade projects. Runs all 6 pillars with high thresholds and no severity filters.

SettingValue
PillarsAll 6 (performance, a11y, seo, schema, security, ux)
Min Score90
Ignored Severitiesnone
Devicemobile
bash
npx web-guard --url https://your-site.com --preset strict

Extending Presets

Presets can be combined with custom config. Your config values override the preset:

typescript
// web-guard.config.ts
export 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.