Official plugin — URL slug, SEO keywords, and meta description with optional auto-fill and an Admin editor panel.
WordPress-style SEO fields · Headless-friendly meta for Next.js themes
- Plugin id:
seo - Version: see
plugin.json
| Field | Description |
|---|---|
slug |
URL alias, accessible at /article/{slug} |
seoKeywords |
meta keywords, comma-separated |
seoDescription |
meta description |
| Scenario | Behavior (when plugin enabled and option on) |
|---|---|
| Slug empty | Generate slug from title |
| SEO description empty | Prefer summary, else truncate body |
| SEO keywords empty | Use title + tag names |
| Hook | Type | Description |
|---|---|---|
article.beforeCreate |
filter | Fill SEO fields on create |
article.beforePublish |
filter | Fill SEO fields on publish |
| Field | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | true |
Master switch |
autoSlug |
boolean | true |
Auto-generate slug |
autoDescription |
boolean | true |
Auto-generate description |
autoKeywords |
boolean | true |
Auto-generate keywords |
descriptionMaxLength |
number | 160 |
Max description length |
descriptionSuffix |
string | … |
Truncation suffix |
pnpm dev(plugins are compiled automatically)- Admin → Plugins → install SEO Enhancement → Enable
- Fill slug, keywords, and description in the SEO Settings panel (leave empty for auto-fill)
- After publish, check
<meta name="description">and<meta name="keywords">on the theme article page
The SEO Settings panel in the article editor is injected via Admin slot article.editor.meta.afterSummary (see src/admin/). The panel unmounts automatically when the plugin is deactivated.
pnpm --filter @reactpressjs/reactpress-plugin-seo run build
pnpm --filter @reactpressjs/reactpress-plugin-seo run typecheckSee ../README.md for the plugin system overview.