@zedtech/zedkit-seo
Derive descriptions, slugs, and localized fields
@zedtech/zedkit-seo — beta
beta
At a glance
- Who: Developers normalizing CMS or user content for URLs and meta tags.
- What: Resolve descriptions with fallback, normalize slugs, and pick localized field values.
- Use when: At render time, when content may be missing, over-long, or untranslated.
- Avoid when: For validating editor input — validate at edit time instead of fixing at render.
- See also: Build localized page metadata, Validate editor-entered title/description lengths
Install
pnpm add @zedtech/zedkit-seoLatest: 0.1.3 (via changesets).
Example
import { normalizeSlug, resolveDescription } from "@zedtech/zedkit-seo";
const slug = normalizeSlug(title);
const description = resolveDescription({ custom: seo.metaDescription, bodyText, title });Wraps: (none)