Aerostack
memory

Content Moderator Edge Function — Ai

AI

AI content moderation with configurable rules. Classify text as safe/unsafe, detect categories (spam, hate, nsfw), cache decisions for repeat content.

aerostack @aerostack verified
Updated Mar 13, 2025
GitHub

Edge function Content Moderator AI content moderation with configurable rules. Classify text as safe/unsafe, detect categories (spam, hate, nsfw), cache decisions for repeat content.. Deployed on Cloudflare Workers — zero cold starts, globally distributed. Mount it via your Aerostack workspace to call it from any AI agent.

terminal — aerostack cli
$ npx aerostack add aerostack/content-moderator
smart_toy

Use with AI Assistants

MCP

Connect Claude, Cursor, or any MCP-compatible client — then call this function by slug

① Add MCP Server

Add this once — access all Aerostack functions from your AI tool.

claude_desktop_config.json
{
  "mcpServers": {
    "aerostack": {
      "url": "https://mcp.aerostack.dev",
      "type": "http"
    }
  }
}

② Call this function

Ask your AI to use the call_function tool with this slug:

call_function
call_function({
  slug: "content-moderator",
  args: {}
})

Content Moderator

AI-powered content moderation API. Classify user-generated content and cache decisions.

Endpoints

Method Path Description
POST /moderate Classify text content
POST /moderate/batch Moderate multiple items
POST /rules Set custom moderation rules
GET /rules Get current rules
GET /health Status check

Metadata

upgrade Version 1.0.0
gavel License MIT
language Language javascript
cloud Provider cloudflare-worker

Tags

ai moderation safety content kv
deployed_code

Build and publish your own functions

Write a TypeScript function, deploy it to the edge, and share it with thousands of developers — in minutes.

More AI Functions

Browse AI Functions →

Frequently asked questions

What does the Content Moderator function do? +

Content Moderator is a serverless edge function for ai automation written in cloudflare-worker. Deploy it to Cloudflare Workers via your Aerostack workspace.

How do I deploy the Content Moderator function? +

Install the Aerostack CLI and run: ```bash aerostack deploy function @aerostack/content-moderator ``` It will be live on Cloudflare Workers in seconds.

What runtime does Content Moderator use? +

Content Moderator runs on cloudflare-worker on the Cloudflare Workers edge runtime — zero cold starts, globally distributed.

Can I customise the Content Moderator function? +

Yes. Fork the function from your Aerostack dashboard, modify the source, and redeploy. All changes are version-controlled.