NSWF.js is a library to identify indecent images.
Simply pass the model an image or canvas element and it will return information on whether the content is provocative or indecent.
As this is using machine learning in the browser, with TensorFlow.js, the files never actully have to leave the client’s machine. This is a big bonus of using machine learning in the browser. As the creator Gant Laborde states - 'Just like client-side form validation causes less work for your server, client-side content checking can cause less work for your team.'
Try it out here