npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openclaw-profanity

v1.0.3

Published

Content moderation plugin for OpenClaw (formerly Moltbot/Clawdbot) - Profanity detection in 24 languages for AI agents

Readme

openclaw-profanity

Part of glin-profanity - Content moderation plugin for OpenClaw (formerly Moltbot / Clawdbot)

npm version glin-profanity License: MIT

The official glin-profanity plugin for OpenClaw AI agents. Provides 24-language profanity detection across WhatsApp, Telegram, Discord, Slack, iMessage, and all other supported platforms.

Note: This package wraps glin-profanity for seamless OpenClaw integration. For standalone use, install glin-profanity directly.

Features

  • 24 Language Support - Arabic, Chinese, Czech, Danish, Dutch, English, Esperanto, Finnish, French, German, Hindi, Hungarian, Italian, Japanese, Korean, Norwegian, Persian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, Turkish
  • Multiple Integration Methods - Skills, Plugin API, Hooks, and MCP
  • Leetspeak Detection - Catches obfuscated profanity like "f0ck", "sh1t"
  • Unicode Normalization - Detects homoglyph attacks like "fück"
  • Context-Aware - Understands when words are used appropriately (gaming, quotes)
  • Platform Agnostic - Works across all OpenClaw-supported messaging platforms

Installation

# Via npm
npm install openclaw-profanity

# Via OpenClaw CLI
openclaw plugins install openclaw-profanity

# For hooks
openclaw hooks install openclaw-profanity

Quick Start

Option 1: Skills (Simplest)

Skills are automatically available after installation. Just ask your OpenClaw agent:

"Check this message for profanity: Hello world"
"Censor this text: What the fuck is this?"
"Is this appropriate to send?"

Option 2: Plugin API (TypeScript)

// In your OpenClaw plugin
import { registerProfanityTools } from 'openclaw-profanity';

export default function(api) {
  registerProfanityTools(api);
}

Or use individual tools:

import { profanityTools } from 'openclaw-profanity';

export default function(api) {
  api.registerTool(profanityTools.checkProfanity);
  api.registerTool(profanityTools.censorText);
}

Option 3: Hooks (Auto-Moderation)

# Enable the profanity guard hook
openclaw hooks enable profanity-guard

Configure via environment variables:

export PROFANITY_MODE=moderate     # strict | moderate | lenient
export PROFANITY_BLOCK=false       # Block profane messages
export PROFANITY_CENSOR=true       # Censor profane words
export PROFANITY_LANGUAGES=english,spanish,french

Option 4: MCP (Model Context Protocol)

// openclaw.config.json5
{
  mcp: {
    servers: {
      "glin-profanity": {
        command: "npx",
        args: ["-y", "openclaw-profanity", "mcp-server"]
      }
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | check_profanity | Check text for profanity in 24 languages | | censor_text | Censor profanity with custom replacement | | batch_check_profanity | Check multiple texts at once | | analyze_profanity_context | Context-aware analysis | | get_supported_languages | List all 24 supported languages |

Skills

| Skill | Description | |-------|-------------| | profanity_check | Check messages for inappropriate content | | censor_message | Automatically censor profanity | | content_guard | Proactive content moderation |

Hooks

| Hook | Description | |------|-------------| | profanity-guard | Auto-moderate all messages |

Configuration

Moderation Modes

  • Strict: No tolerance, blocks all profanity
  • Moderate: Context-aware, allows appropriate usage
  • Lenient: Only flags severe profanity

Multi-Language Example

import { createProfanityGuard } from 'openclaw-profanity';

const guard = createProfanityGuard({
  mode: 'moderate',
  languages: ['english', 'spanish', 'french', 'german'],
  censorProfanity: true,
  censorReplacement: '[CENSORED]',
});

Platform Support

Works with all OpenClaw-supported platforms:

  • WhatsApp (via WhatsApp Web / Baileys)
  • Telegram (Bot API / grammY)
  • Discord (Bot API)
  • Slack
  • iMessage (imsg CLI)
  • Microsoft Teams
  • Matrix
  • Google Chat
  • Signal
  • And more...

API Reference

Plugin Functions

// Register all tools
registerProfanityTools(api: OpenClawAPI): void

// Individual tools
profanityTools.checkProfanity
profanityTools.censorText
profanityTools.batchCheck
profanityTools.analyzeContext
profanityTools.getSupportedLanguages

Hook Functions

// Create custom guard
createProfanityGuard(config: ProfanityGuardConfig): ProfanityGuard

// Quick one-time check
quickGuard(message: string, options?: GuardOptions): HookResult

MCP Functions

// Create MCP handler
createMCPHandler(): MCPHandler

// Execute tool directly
executeMCPTool(toolName: string, args: Record<string, unknown>): Promise<MCPToolResult>

Compatibility

This plugin is compatible with:

  • OpenClaw v1.x+ (current)
  • Moltbot (legacy name, January 2026)
  • Clawdbot (original name, December 2025)

Contributing

Contributions are welcome! Please see the main repository for guidelines.

Related Projects

License

MIT


Built with glin-profanity - The most comprehensive profanity detection library for JavaScript/TypeScript.