ai-content-moderation
v1.1.0
Published
AI-powered content moderation system with subscription management
Downloads
22
Maintainers
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
- AI-Powered Content Moderation: Utilizes advanced AI models to moderate text, image, and video content.
- License-based Usage: Uses license keys for access control and usage tracking.
- Flexible API: Provides a simple API for easy integration with various applications.
- Multiple License Types: Supports different license types to accommodate various usage levels.
- Rate Limiting: Prevents API abuse and ensures fair usage.
- Caching: Improves performance and reduces unnecessary AI API calls.
- Webhook Notifications: Allows real-time updates for moderation results.
- 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
- Individual Plan
- Small Business Plan
- Enterprise Plan
- 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].