@plugdash/enrichkit

Pure infrastructure

One publish, one LLM call, five new fields.

320 words·2min read

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.

npm install @plugdash/enrichkit
alphaGitHub

Sample output with every enrichment on, rendered the way a theme might show it

summary

A look at how static sites evolved from plain HTML to full content platforms, and what that means for publishers choosing a stack today.

keyTopics

static site generators · content management · web performance

autoTags
  • #ssg
  • #cms
  • #performance
  • #web-dev
readingLevel

Grade 9

tweetDraft
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

  1. Install and register

    bash
    npm install @plugdash/enrichkit
    js
    import { 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

optiontypedefaultdescription
provider"anthropic" | "openai"Required - which LLM API to call
apiKeystringRequired - API key for the chosen provider
modelstringprovider defaultclaude-haiku-4-5 (Anthropic) or gpt-4o-mini (OpenAI)
enrichments.summarybooleantrue2-3 sentence summary of the main argument
enrichments.keyTopicsbooleantrue3-5 main topics as short noun phrases
enrichments.readingLevelbooleanfalseEstimated grade level (e.g. "Grade 8")
enrichments.autoTagsbooleantrue3-8 lowercase, hyphenated discovery tags
enrichments.tweetDraftbooleantrueTweet 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.

beta

Readers who want to share your work shouldn't have to work for it.

npm install @plugdash/sharepost
beta

Publish in the admin. Live in 60 seconds.

npm install @plugdash/autobuild
built with plugdash.dev