Pure infrastructure
One publish, one LLM call, five new fields.
Adds a summary, key topics, auto-tags, a reading level estimate, and a tweet draft to post metadata - one LLM call per publish, choose which enrichments you need. Skips anything under 100 words. Never fails a publish, whatever the API does.
Sample output with every enrichment on, rendered the way a theme might show it
A look at how static sites evolved from plain HTML to full content platforms, and what that means for publishers choosing a stack today.
static site generators · content management · web performance
Grade 9
Static sites grew up. Here's what changed and why it matters for your next project.
Sample output. No UI of its own - your theme decides how to show it.
Setup
Install and register
npm install @plugdash/enrichkitimport { enrichkitPlugin } from "@plugdash/enrichkit" // in emdash plugins array: enrichkitPlugin({ provider: "anthropic", apiKey: process.env.ANTHROPIC_API_KEY, })
Set an API key at build time or later from the admin. After that, every published post over 100 words gets enriched automatically - nothing to do per post.
It looks right. But it's yours to change.
Config options
| option | type | default | description |
|---|---|---|---|
provider | "anthropic" | "openai" | Required - which LLM API to call | |
apiKey | string | Required - API key for the chosen provider | |
model | string | provider default | claude-haiku-4-5 (Anthropic) or gpt-4o-mini (OpenAI) |
enrichments.summary | boolean | true | 2-3 sentence summary of the main argument |
enrichments.keyTopics | boolean | true | 3-5 main topics as short noun phrases |
enrichments.readingLevel | boolean | false | Estimated grade level (e.g. "Grade 8") |
enrichments.autoTags | boolean | true | 3-8 lowercase, hyphenated discovery tags |
enrichments.tweetDraft | boolean | true | Tweet draft under 280 characters |
Pairs well with
the tweetDraft enrichkit writes is exactly what an agent needs to post automatically - sharepost covers the human share path, autobuild gets the new metadata live within a minute.