# infinitered/nsfwjs

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/infinitered-nsfwjs).**

8,908 stars · 590 forks · TypeScript · MIT

## Links

- GitHub: https://github.com/infinitered/nsfwjs
- Homepage: https://nsfwjs.com/
- awesome-repositories: https://awesome-repositories.com/repository/infinitered-nsfwjs.md

## Topics

`content-management` `javascript` `machine-learning` `machinelearning` `node-module` `nsfw-recognition` `tensorflow-js` `tensorflowjs`

## Description

NSFW detection on the client-side via TensorFlow.js

## Tags

### Artificial Intelligence & ML

- [NSFW Classifications](https://awesome-repositories.com/f/artificial-intelligence-ml/image-classification/nsfw-classifications.md) — Ships a pre-trained model that classifies images into five NSFW categories for content moderation. ([source](https://github.com/infinitered/nsfwjs/wiki/FAQ:-NSFW-JS))
- [Client-Side Inference](https://awesome-repositories.com/f/artificial-intelligence-ml/client-side-inference.md) — Executes a pre-trained convolutional neural network entirely in the browser using TensorFlow.js.
- [NSFW Classifiers](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/image-classification-models/nsfw-classifiers.md) — Classifies images as safe or not safe for work directly in the browser using a pre-trained TensorFlow.js model.
- [TensorFlow.js Models](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/image-classification-models/tensorflow-js-models.md) — A pre-trained neural network that categorizes images into NSFW and safe content classes using TensorFlow.js.
- [Image Classification](https://awesome-repositories.com/f/artificial-intelligence-ml/image-classification.md) — Provides a pre-trained neural network that assigns NSFW category labels to images with confidence scores. ([source](https://cdn.jsdelivr.net/gh/infinitered/nsfwjs@master/README.md))
- [Image Data Preprocessing](https://awesome-repositories.com/f/artificial-intelligence-ml/image-data-preprocessing.md) — Converts raw image data into normalised tensor inputs with resizing and channel reordering for the neural network.
- [Bundled Weight Embeddings](https://awesome-repositories.com/f/artificial-intelligence-ml/large-scale-model-training/vision-transformer-pre-training/pre-trained-model-checkpoints/vision-model-weight-loading/bundled-weight-embeddings.md) — Ships pre-trained model weights embedded in the package for instant offline classification.
- [Client-Side Model Loading](https://awesome-repositories.com/f/artificial-intelligence-ml/pre-trained-model-application/client-side-model-loading.md) — Loads a pre-trained neural network model from bundled definitions, hosted URLs, or local paths for classification. ([source](https://cdn.jsdelivr.net/gh/infinitered/nsfwjs@master/README.md))
- [Model Lifecycle Management](https://awesome-repositories.com/f/artificial-intelligence-ml/in-database-model-execution/model-lifecycle-management.md) — Provides explicit load, predict, and dispose methods to control memory and tensor resource allocation.
- [Model Architecture Selection](https://awesome-repositories.com/f/artificial-intelligence-ml/model-architecture-selection.md) — Offers multiple bundled model architectures like MobileNetV2 and InceptionV3 for users to choose from. ([source](https://cdn.jsdelivr.net/gh/infinitered/nsfwjs@master/README.md))
- [NSFW Content Filters](https://awesome-repositories.com/f/artificial-intelligence-ml/on-device-models/on-device-speech-to-text-sdks/on-device-model-runtimes/on-device-compilation/nsfw-content-filters.md) — Integrates NSFW image classification into React Native mobile apps for on-device content filtering.

### Data & Databases

- [NSFW Classifiers](https://awesome-repositories.com/f/data-databases/data-categorization/classification-labelers/image-classifiers/nsfw-classifiers.md) — Classifies images as porn, hentai, sexy, neutral, or drawing using a TensorFlow.js model running in the browser.
- [Model Weight Caching](https://awesome-repositories.com/f/data-databases/data-caching/local-data-caches/model-weight-caching.md) — Caches loaded model artifacts in IndexedDB to skip re-downloading on subsequent page visits. ([source](https://cdn.jsdelivr.net/gh/infinitered/nsfwjs@master/README.md))

### Content Management & Publishing

- [Content Moderation Tools](https://awesome-repositories.com/f/content-management-publishing/content-moderation-tools.md) — Moderates image content directly in the browser without sending images to a server for analysis.

### Graphics & Multimedia

- [NSFW Classifiers](https://awesome-repositories.com/f/graphics-multimedia/node-js-image-processing/nsfw-classifiers.md) — Classifies images for NSFW content on the server side using TensorFlow.js Node backend.
- [NSFW Classification](https://awesome-repositories.com/f/graphics-multimedia/server-side-image-processing/nsfw-classification.md) — Runs NSFW image classification on a Node.js backend for API or server-side content moderation workflows.
- [Server-Side Image Processing](https://awesome-repositories.com/f/graphics-multimedia/server-side-image-processing.md) — Runs NSFW classification model on the server using TensorFlow.js Node backend for API workflows. ([source](https://github.com/infinitered/nsfwjs/wiki/FAQ:-NSFW-JS))

### Part of an Awesome List

- [Pre-trained Models](https://awesome-repositories.com/f/awesome-lists/ai/pre-trained-models.md) — Loads and selects between different pre-trained model architectures like MobileNetV2 or InceptionV3 for image classification.
- [Deep Learning Frameworks](https://awesome-repositories.com/f/awesome-lists/ai/deep-learning-frameworks.md) — Client-side NSFW detection using TensorFlow.js.

### Mobile Development

- [NSFW Detection Libraries](https://awesome-repositories.com/f/mobile-development/mobile-binary-compilation/mobile-framework-libraries/nsfw-detection-libraries.md) — Detects adult content in images on mobile devices using TensorFlow.js for React Native applications.
- [On-Device Classifications](https://awesome-repositories.com/f/mobile-development/react-native-applications/on-device-classifications.md) — Integrates the NSFW classifier into React Native mobile apps for on-device content filtering. ([source](https://github.com/infinitered/nsfwjs/wiki/FAQ:-NSFW-JS))

### User Interface & Experience

- [Confidence Scoring](https://awesome-repositories.com/f/user-interface-experience/visitor-identification/confidence-scoring.md) — Returns a ranked list of category labels with floating-point confidence values from the softmax output layer.
