@prenta/plugin-ai
v3.0.0
Published
Deterministic content-quality tooling for Prenta CMS: document audit, SEO/readability/accessibility/freshness scores, smart internal links. AI model calls are governed by @prenta/core (Settings > AI).
Readme
@prenta/plugin-ai
Deterministic content-quality tooling for Prenta CMS — document audit, SEO / readability / accessibility / freshness scores, and smart internal-link suggestions.
npm install @prenta/plugin-aiUsage
import { aiPlugin } from '@prenta/plugin-ai'
export default defineConfig({
plugins: [aiPlugin()],
// ...
})aiPlugin() takes no options. AI model access (providers, keys, models,
feature toggles, budgets, brand voice) is configured in Settings → AI in
the admin, or — for zero-config hosts — by setting OPENAI_API_KEY,
ANTHROPIC_API_KEY, or XAI_API_KEY. Every model call runs through
@prenta/core's governed runtime; this package never calls a model itself.
Exports
auditDocument— deterministic content audit (SEO, readability, accessibility, freshness, composite score)calculateSEOScore,getReadabilityScore,calculateAccessibilityScore,calculateFreshnessScore,calculateCompositeScoresuggestInternalLinks— phrase-match internal-link candidates
Release notes
See CHANGELOG.md (shipped with the package) or the GitHub releases.
License
MIT
