# AI Comment Moderation

> A sandboxed EmDash 1.4 plugin for comment moderation using Cloudflare Workers AI.

Source: https://emdashcmseverything.com/plugins/ai-comment-moderation/

- Category: AI
- Status: available
- Version: 2.1.0
- Price: Unknown
- Compatibility: EmDash ^1.4.0
- License: MIT
- Maintainer: jimiryquai
- Download: https://www.npmjs.com/package/emdash-plugin-ai-comment-moderation
- Repository: https://github.com/jimiryquai/emdash-plugin-ai-comment-moderation
- Published: 2026-11-01

A sandboxed EmDash 1.4 plugin for comment moderation using Cloudflare Workers AI.

## Installation

Install the package from npm:

```bash
npm install emdash-plugin-ai-comment-moderation
```

Register the plugin in your Astro config:

```javascript
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import aiCommentModeration from "emdash-plugin-ai-comment-moderation";

export default defineConfig({
  integrations: [
    emdash({
      sandboxed: [aiCommentModeration],
      sandboxRunner: "@emdash-cms/sandbox-workerd/sandbox",
    }),
  ],
});
```

This example uses the Node.js workerd runner: install `@emdash-cms/sandbox-workerd` and `workerd` in the site, or keep your site's existing Cloudflare sandbox runner. A sandbox runner is required.

Version 2.0.0 requires EmDash `^1.4.0` and drops EmDash 0.9 support.

## Details

- **Latest version:** 2.1.0
- **License:** MIT
- **Publisher:** jimiryquai
- **Requires:** EmDash `^1.4.0`
- **Source repository:** [https://github.com/jimiryquai/emdash-plugin-ai-comment-moderation](https://github.com/jimiryquai/emdash-plugin-ai-comment-moderation)
- **npm package:** [emdash-plugin-ai-comment-moderation](https://www.npmjs.com/package/emdash-plugin-ai-comment-moderation)
