{"repo":"KOKOSde/localmod","free":true,"listed":false,"github":"https://github.com/KOKOSde/localmod","clone":"git clone https://github.com/KOKOSde/localmod.git","description":"Self-hosted content moderation API that outperforms Amazon Comprehend. 100% offline, your data never leaves your server. Text + Image moderation.","language":"Python","stars":121,"topics":["content-moderation","docker","fastapi","image-moderation","llm-security","machine-learning","nsfw-detection","offline-first","pii-detection","privacy"],"license":"MIT","category":"machine-learning","readme_excerpt":"LocalMod Fully offline content moderation API — Free, self-hosted, and private. Your data never leaves your infrastructure. --- Benchmark Results Toxicity Detection Benchmarked using CHI 2025 \"Lost in Moderation\" methodology (HateXplain, Civil Comments, SBIC datasets): System Balanced Accuracy Type -------- ------------------ ------ OpenAI Moderation API 0.83 Commercial Azure Content Moderator 0.81 Commercial LocalMod 0.75 ⭐ Open Source Amazon Comprehend 0.74 Commercial Perspective API 0.62 Commercial Feature System Precision Recall F1 FP FN n Dataset Eval accuracy (balanced acc) --- --- ---: ---: ---: ---: ---: ---: --- ---: PII LocalMod 1.0000 1.0000 1.0000 0 0 2000 synthetic pii v1 (balanced) 1.0000 Toxicity LocalMod 0.6007 0.8373 0.6973 1213 355 5924 HateXplain (1924) + Civil Comments (2000) + SBIC (2000); macro-avg P/R/F1, summed FP/FN 0.6500 Prompt Injection LocalMod 0.9324 0.8525 0.8907 65 155 2101 S-Labs/prompt-injection-dataset (test, threshold=0.10) 0.8953 Spam LocalMod 0.9861 1.0000 0.9930 1 0 500 ucirvine/sms spam (train) 0.9988 NSFW Text LocalMod 0.6034 0.9533 0.7390 188 14 600 Proxy: Maxx0/Texting sex (NSFW) vs ag news (SFW), balanced (threshold=0.60) 0.6633 NSFW Image LocalMod 1.0000 0.9500 0.9744 0 2 80 Proxy: x1101/nsfw (pos) vs cifar10 (neg), balanced 0.9750 --- Installation Quick Start Python Usage API Server Docker Discord Bot 🆕 Features: Real-time text & image moderation, auto-delete, timeout, logging. --- Classifiers Text Moderation Classifier Detects M","default_branch":null,"files":null,"tree":[],"storefront":"/r/KOKOSde","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KOKOSde/localmod/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}