npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ai-content-moderation

v1.1.0

Published

AI-powered content moderation system with subscription management

Downloads

22

Readme

AI Content Moderation System

Overview

The AI Content Moderation System is a comprehensive Node.js package that provides content moderation capabilities powered by AI. This system is designed to be easily integrated into existing applications to provide robust content moderation features.

Key Features

  1. AI-Powered Content Moderation: Utilizes advanced AI models to moderate text, image, and video content.
  2. License-based Usage: Uses license keys for access control and usage tracking.
  3. Flexible API: Provides a simple API for easy integration with various applications.
  4. Multiple License Types: Supports different license types to accommodate various usage levels.
  5. Rate Limiting: Prevents API abuse and ensures fair usage.
  6. Caching: Improves performance and reduces unnecessary AI API calls.
  7. Webhook Notifications: Allows real-time updates for moderation results.
  8. Usage Analytics: Helps users track and manage their content moderation usage.

Installation

npm install ai-content-moderation

Quick Start

import { initContentModeration, ModerationConfig } from 'ai-content-moderation'

const config = {
  aiProviders: {
    textAI: 'https://your-text-ai-endpoint.com',
    imageAI: 'https://your-image-ai-endpoint.com',
    videoAI: 'https://your-video-ai-endpoint.com',
  },
  licenseSecretKey: 'your-license-secret-key',
  backendUrl: 'https://your-backend-url.com',
  rateLimitPoints: 100,
  rateLimitDuration: 60,
  cacheTTL: 3600,
}

const licenseKey = 'your-license-key'
const moderationService = initContentModeration(config, licenseKey)

// Moderate content
moderationService
  .moderateContent({
    type: 'text',
    data: 'Content to moderate',
  })
  .then((result) => console.log(result))
  .catch((error) => console.error(error))

// Set webhook URL
moderationService.setWebhookUrl('https://your-webhook-url.com')

// Get usage report
moderationService.getUsageReport().then(console.log).catch(console.error)

License Types

  1. Individual Plan
  2. Small Business Plan
  3. Enterprise Plan
  4. Pay-as-you-go Option

Documentation

For detailed usage instructions, please refer to the INSTRUCTIONS.md file.

For API documentation, please see the API_DOCUMENTATION.md file.

Changelog

For a list of changes and version history, please see the CHANGELOG.md file.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For any questions or support needs, please contact our support team at [email protected].