If you need a JavaScript library to moderate user-generated content and keep your site family-friendly, NSFW JS is a good option. The library can run indecency detection models directly in the browser, protecting privacy while sidestepping potentially disturbing imagery. It's got high accuracy and can handle camera input and blur protection, too, so it's a good option for content moderation.
For a more general-purpose foundation to build social networks and activity feeds, Stream offers more-advanced moderation tools along with APIs for chat messaging, activity feeds and video/audio streaming. Its architecture is designed to scale, and its ranking features are customizable, too, so it's a good foundation for a social media site that's reliable and family friendly. The company offers several pricing tiers and integration and customization resources.