NSFW Content Detection ML Frameworks

Tools and models for detecting, classifying, and filtering sexually explicit or adult content in images and text. Includes pre-trained models, APIs, and libraries across multiple frameworks and languages. Does NOT include general content moderation for other violation types (violence, hate speech) or datasets without detection functionality.

There are 32 nsfw content detection frameworks tracked. 1 score above 70 (verified tier). The highest-rated is infinitered/nsfwjs at 76/100 with 8,818 stars and 86,557 monthly downloads. 1 of the top 10 are actively maintained.

Get all 32 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ml-frameworks&subcategory=nsfw-content-detection&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Framework Score Tier
1 infinitered/nsfwjs

NSFW detection on the client-side via TensorFlow.js

76
Verified
2 alex000kim/nsfw_data_scraper

Collection of scripts to aggregate image data for the purposes of training...

51
Established
3 mdietrichstein/tensorflow-open_nsfw

Tensorflow Implementation of Yahoo's Open NSFW Model

51
Established
4 GantMan/nsfw_model

Keras model of NSFW detector

48
Emerging
5 infinitered/nsfwjs-mobile

NSFWjs in React Native

46
Emerging
6 TheHamkerCat/NSFW_Detection_API

Rest API Written In Python To Classify NSFW Images.

45
Emerging
7 lovoo/NSFWDetector

A NSFW (aka porn) detector with CoreML

44
Emerging
8 rlleshi/phar

deep learning sex position classifier

43
Emerging
9 NsfwSpy/NsfwSpy.NET

A .NET image and video classifier used to identify explicit/pornographic...

40
Emerging
10 steelcityamir/safe-content-ai

A fast accurate API for detecting NSFW images.

40
Emerging
11 NsfwSpy/NsfwSpy.js

A JavaScript image classifier used to identify explicit/pornographic content...

36
Emerging
12 ebroky/nsfw

🔍 Detect NSFW content with this lightweight HTTP API. Ideal for CPU...

35
Emerging
13 lakshaychhabra/NSFW-Detection-DL

This repo contains Deep learning Implementation for identifying NSFW images.

31
Emerging
14 guptashrey/Content-Moderation-for-Social-Media

Classifier for social media images with 3 categories namely neutral, nsfw...

31
Emerging
15 qeeqbox/image-analyzer

Interface for Image-Related Deep Learning Models (E.g. NSFW, MAYBE and SFW)

31
Emerging
16 M1chlCZ/nsfw_sherlock

Simple drop in API to determine if image is NSFW using TensorFlow

29
Experimental
17 ccuetoh/nsfw

Nudity detection and clasification for Go

27
Experimental
18 mileszim/nsfw-rb

Port of nsfwjs - Use a pre-trained model and the ONNX Runtime to verify the...

27
Experimental
19 AdityaTheDev/NudityDetection-Using-Deeplearning

Nudity/pornography detection using deeplearning. This model is trained using...

27
Experimental
20 ZygoteCode/NsfwSharp

So far, the best C#.NET 9.0 open-source library that uses YOLOv11 with...

27
Experimental
21 doppeltilde/sensitive_content_analysis

Dart package for detecting and alerting users to nudity in images and videos...

25
Experimental
22 SumitM0432/Explicit-Content-Classifier-using-ResNet

The objective of this project is to classify explicit content that contains...

22
Experimental
23 atrifat/nsfw-detector-api

A Simple PoC (Proof of Concept) of NSFW Detector API Server. A core...

22
Experimental
24 thefcraft/nsfw-prompt-detection-sd

NSFW Prompt Detection for Stable Diffusion

21
Experimental
25 darkwaves-ofc/nude-detect

NudeDetect is a Python-based tool for detecting nudity and adult content in...

21
Experimental
26 api4ai/nsfw-examples

API4AI is cloud-native computer vision & AI platform for startups,...

20
Experimental
27 ArshCypherZ/NSFWDetection

Anti-NSFW Project in python using pre-trained model.

19
Experimental
28 OurBigAdventure/Swift_NSFW_Detector

An NSFW image detector for Swift built as an extension on UIImage.

16
Experimental
29 chijete/crafynsfwjs

NSFW.js implementation for image, gif and video. NSFW detection on the...

13
Experimental
30 shane-chris-barker/rust-nsfw-image-checker

A Rust-powered microservice that uses an ONNX model and the nsfw crate to...

12
Experimental
31 jamesponddotco/bonk

[READ-ONLY] CLI tool that uses machine learning to detect nudity in images.

12
Experimental
32 Sylver-Icy/nsfw-classifier

Modular NSFW Text Classification Pipeline A fully modular text...

11
Experimental