@svelte-vitals/core
v0.39.0
Published
Shared, runtime-agnostic core for svelte-vitals (types, rule engine, scorer, reporter).
Maintainers
Readme
@svelte-vitals/core
Runtime-agnostic core for svelte-vitals: shared types, the rule engine, scorer, and reporters, plus the full rule set across five categories — SEO, Performance, Correctness, Security, Architecture.
This package is mode-independent and contains no I/O — it operates on a normalized ResolvedHead[] intermediate representation, so the same rules run unchanged whether heads come from static source analysis (the svelte-vitals CLI) or from prerendered HTML (the @svelte-vitals/vite plugin). It has zero runtime dependencies and no node: imports.
Most users don't depend on this directly — install
svelte-vitalsinstead. This package is for building tools on top of the shared engine.
ESM-only (Node 22.13+). Ships ES modules only;
require()is unsupported by design.
