NSFWJS
A JavaScript library that checks images for explicit content right inside the user's browser.
- Your data
- Stays on your device
- Coding needed
- Developers only
- Cost
- Free
- Runs on
- Web browser, Server
- Computer
- An ordinary computer is fine
A JavaScript library that checks images for explicit content right inside the user's browser.
NSFWJS helps websites and apps spot inappropriate images. It sorts a picture into five groups, such as neutral, drawing or explicit, and gives a score for each.
It runs in the user's own browser, or in Node.js on a server, so images do not have to be sent elsewhere to be checked. Its makers say it is not perfect but is about 90 percent accurate or more, depending on the model size.
It is often used for content moderation, such as blurring or blocking unsuitable uploads.
Web and app developers who need to filter or moderate user images.
Developers only. A code library for JavaScript developers; there is also an online demo. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?