Skip to content

cenetex/cosyworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CosyWorld - Unified AI Community Management Platform

A next-generation community management system that unifies Discord, X (Twitter), Telegram, and other platforms with built-in AI agents


What is CosyWorld?

CosyWorld is a comprehensive platform for managing modern online communities across multiple social platforms simultaneously. It combines traditional community management tools with AI-powered agents that can autonomously interact, moderate, engage, and create content across Discord, X, Telegram, and more.

The Problem CosyWorld Solves

Modern communities are fragmented across multiple platforms:

  • Discord for real-time chat and community building
  • X (Twitter) for announcements and broader reach
  • Telegram for group discussions and notifications
  • Forums for long-form discussions

Managing presence across all these platforms requires:

  • โŒ Multiple tools and dashboards
  • โŒ Constant manual posting and cross-posting
  • โŒ Different moderation systems
  • โŒ Inconsistent community experience
  • โŒ High operational overhead

The CosyWorld Solution

CosyWorld provides a unified interface to manage your entire community ecosystem:

  • โœ… Single Dashboard - Control all platforms from one place
  • โœ… AI Agents - Autonomous entities that engage naturally across platforms
  • โœ… Cross-Platform Posting - Post once, publish everywhere
  • โœ… Unified Moderation - Consistent rules across all channels
  • โœ… Intelligent Automation - AI handles routine tasks while maintaining authenticity
  • โœ… Analytics & Insights - Understand your community across all platforms

๐ŸŽฏ Core Use Cases

1. Multi-Platform Community Management

Manage Discord servers, X accounts, Telegram channels, and more from a single interface. Schedule posts, monitor engagement, and respond to community members across all platforms without switching tools.

2. AI-Powered Community Engagement

Deploy AI agents that:

  • Respond to common questions automatically
  • Welcome new members with personalized messages
  • Generate engaging content and announcements
  • Moderate conversations and flag issues
  • Initiate conversations to boost engagement

3. Content Distribution & Amplification

Create content once and intelligently distribute it:

  • Automatically adapt content for each platform's format
  • Schedule strategic cross-posting
  • Generate platform-specific variations (threads, images, videos)
  • Track performance and engagement metrics

4. Decentralized Community Operations

Run community operations with:

  • AI agents that act autonomously but stay on-brand
  • Persistent "personalities" that community members recognize
  • Multi-agent coordination for complex scenarios
  • NFT-based agent ownership and customization

5. Community Analytics & Growth

Understand your community with:

  • Cross-platform engagement tracking
  • Member activity and sentiment analysis
  • Content performance metrics
  • Growth trend analysis and forecasting

๐Ÿš€ Key Features

๐Ÿค– AI Agent System

  • Persistent AI Personalities: Create unique AI agents with distinct personalities, knowledge bases, and communication styles
  • Multi-Platform Presence: Each agent can operate across Discord, X, Telegram simultaneously
  • Autonomous Engagement: Agents respond to mentions, participate in conversations, and initiate discussions
  • Learning & Memory: Agents remember past interactions and evolve based on community feedback
  • Custom Abilities: Define specific tools and actions for each agent (moderation, welcoming, FAQ, etc.)

๐ŸŒ Platform Integration

Discord Integration

  • Full bot integration with channels, threads, and DMs
  • Role-based permissions and moderation
  • Slash commands and reactions
  • Webhook support for rich message formatting
  • Channel activity monitoring and analytics

X (Twitter) Integration

  • OAuth authentication for secure posting
  • Automated tweet scheduling and posting
  • Media upload (images, videos)
  • Thread creation and management
  • Engagement tracking (likes, retweets, replies)

Telegram Integration

  • Global bot configuration
  • Channel and group management
  • Media posting with AI-generated captions
  • Rate limiting and spam prevention

๐Ÿ“Š Unified Dashboard

  • Web Interface: Modern, responsive UI built with Tailwind CSS
  • Real-time Monitoring: Track activity across all platforms in real-time
  • Content Calendar: Schedule and manage posts across platforms
  • Analytics Dashboard: Visualize engagement metrics and growth trends
  • Agent Management: Configure and monitor AI agent behavior
  • Guild Settings: Platform-specific configuration per community

๐Ÿ›ก๏ธ Moderation & Security

  • Cross-Platform Moderation: Unified rules and actions across all platforms
  • AI-Powered Detection: Automatic spam, toxicity, and threat detection
  • Risk Assessment: User risk profiling and behavioral analysis
  • Rate Limiting: Prevent spam and abuse with intelligent rate limits
  • Content Filtering: Block specific keywords, patterns, or media types

๐ŸŽจ Content Creation

  • AI-Generated Media:
    • ๐Ÿ–ผ๏ธ Images via Replicate, Google Imagen
    • ๐ŸŽฅ Videos via Google Veo 3.1 (with audio!)
    • ๐Ÿ“ Text content with multiple AI models
  • Platform Optimization: Automatically format content for each platform
  • Media Storage: S3-compatible storage with CloudFront CDN
  • Caption Generation: AI-powered descriptions and hashtags

๏ฟฝ Advanced AI Capabilities

  • Multi-Model Support: OpenRouter (300+ models), Google AI (Gemini), Ollama (local models)
  • Model Tiers: Legendary, Rare, Uncommon, Common - choose the right AI for each task
  • Context-Aware: Agents understand conversation history and community dynamics
  • Tool Calling: Agents can execute actions (post, moderate, create content) when needed
  • Memory Systems: Short-term context, long-term storage, knowledge graphs

๐Ÿ’ผ Who Should Use CosyWorld?

Community Managers

Managing multiple Discord servers, social media accounts, and communication channels? CosyWorld consolidates everything into one platform with AI assistance.

DAOs & Web3 Projects

Maintain consistent presence across Discord, X, and Telegram while using NFTs to represent AI agents and governance roles.

Content Creators & Influencers

Amplify your reach by automating cross-posting, engagement, and community management while maintaining authentic interactions.

Gaming Communities

Coordinate tournaments, announcements, and player engagement across multiple platforms with AI moderators and assistants.

Developer Communities

Manage technical communities with AI agents that can answer FAQs, share documentation, and moderate discussions.

Marketing Teams

Execute multi-platform campaigns, track engagement, and respond to community feedback from a single dashboard.


๐Ÿ› ๏ธ Technical Architecture

Service-Oriented Design

โ”œโ”€โ”€ Core Services
โ”‚   โ”œโ”€โ”€ DatabaseService (MongoDB)
โ”‚   โ”œโ”€โ”€ ConfigService (Environment + Secrets)
โ”‚   โ”œโ”€โ”€ LoggingService (Winston)
โ”‚   โ””โ”€โ”€ SchedulingService (Periodic tasks)
โ”‚
โ”œโ”€โ”€ AI & Intelligence
โ”‚   โ”œโ”€โ”€ AIService (OpenRouter integration)
โ”‚   โ”œโ”€โ”€ UnifiedAIService (Multi-provider adapter)
โ”‚   โ”œโ”€โ”€ GoogleAIService (Gemini models)
โ”‚   โ”œโ”€โ”€ MemoryService (Vector storage)
โ”‚   โ””โ”€โ”€ KnowledgeService (Knowledge graphs)
โ”‚
โ”œโ”€โ”€ Platform Integrations
โ”‚   โ”œโ”€โ”€ DiscordService (Bot + API)
โ”‚   โ”œโ”€โ”€ XService (Twitter OAuth + posting)
โ”‚   โ”œโ”€โ”€ TelegramService (Bot + messaging)
โ”‚   โ””โ”€โ”€ WebService (Express + REST API)
โ”‚
โ”œโ”€โ”€ Community Management
โ”‚   โ”œโ”€โ”€ AvatarService (AI agent management)
โ”‚   โ”œโ”€โ”€ ModerationService (Content filtering)
โ”‚   โ”œโ”€โ”€ ResponseCoordinator (Conversation orchestration)
โ”‚   โ””โ”€โ”€ PresenceService (Activity tracking)
โ”‚
โ””โ”€โ”€ Content & Media
    โ”œโ”€โ”€ VeoService (Video generation)
    โ”œโ”€โ”€ ImageProcessingService (Media analysis)
    โ”œโ”€โ”€ S3Service (Cloud storage)
    โ””โ”€โ”€ GlobalBotService (Cross-platform personas)

Technology Stack

  • Runtime: Node.js 18+ with ES modules
  • Database: MongoDB with aggregation pipelines
  • AI: OpenRouter, Google AI, Replicate, Ollama
  • Frontend: Vanilla JS + Tailwind CSS
  • APIs: Discord.js, Telegraf, Twitter API v2
  • Storage: S3-compatible (AWS S3, Cloudflare R2, MinIO)
  • Deployment: Docker-ready, Kubernetes-compatible

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18 or higher
  • MongoDB 4.4 or higher
  • Discord Bot Token
  • API keys for desired platforms (X, Telegram, AI services)

Installation

# Clone the repository
git clone https://github.com/cenetex/cosyworld.git
cd cosyworld

# Install dependencies
npm install

# Start the application
npm start

First-Time Setup

  1. Visit the Setup Wizard

    http://localhost:3000/admin/setup
    
  2. Configure Core Services

    • Database connection (MongoDB URI)
    • Encryption keys (auto-generated)
    • Discord bot token
  3. Add Platform Integrations (optional)

    • X (Twitter) API credentials
    • Telegram bot token
    • AI service API keys
  4. Create Your First AI Agent

    • Define personality and behavior
    • Choose AI model tier
    • Enable platforms (Discord, X, Telegram)
    • Configure tools and abilities

Configuration

The wizard handles most configuration, but you can also use environment variables:

# Core
NODE_ENV=production
MONGO_URI=mongodb://localhost:27017/cosyworld
ENCRYPTION_KEY=auto-generated-by-wizard

# Discord
DISCORD_BOT_TOKEN=your_bot_token

# X (Twitter)
X_API_KEY=your_api_key
X_API_SECRET=your_api_secret

# Telegram
TELEGRAM_GLOBAL_BOT_TOKEN=your_bot_token
TELEGRAM_GLOBAL_CHANNEL_ID=@your_channel

# AI Services
OPENROUTER_API_TOKEN=your_token
GOOGLE_AI_API_KEY=your_key

# Storage
S3_API_ENDPOINT=your_endpoint
S3_API_KEY=your_key
S3_API_SECRET=your_secret

๏ฟฝ Documentation


๐ŸŽฎ Example Use Cases

Web3 DAO Community

โœ… Discord server for governance discussions
โœ… X account for announcements
โœ… Telegram for quick updates
โœ… AI moderators handling spam and questions
โœ… Automated meeting reminders across all platforms
โœ… Voting results posted simultaneously everywhere

Gaming Clan

โœ… Discord for voice chat and coordination
โœ… X for tournament announcements
โœ… Telegram for mobile notifications
โœ… AI assistants tracking player stats
โœ… Automated match schedules and results
โœ… Cross-platform recruitment campaigns

Developer Community

โœ… Discord for support and discussions
โœ… X for sharing updates and tips
โœ… Telegram for quick questions
โœ… AI bots answering common FAQs
โœ… Automated documentation links
โœ… Code snippet sharing across platforms

๐Ÿ”ฎ Roadmap

Current (v0.0.11 - Beta)

  • โœ… Discord, X, Telegram integration
  • โœ… AI agent system with multiple models
  • โœ… Web-based configuration wizard
  • โœ… Cross-platform content posting
  • โœ… Unified moderation system

Coming Soon (v0.1.0)

  • ๐Ÿ”„ WhatsApp Business integration
  • ๐Ÿ”„ Farcaster protocol support
  • ๐Ÿ”„ Advanced analytics dashboard
  • ๐Ÿ”„ Campaign management tools
  • ๐Ÿ”„ A/B testing for content

Future (v0.2.0+)

  • ๐Ÿ“‹ Reddit integration
  • ๐Ÿ“‹ LinkedIn for professional communities
  • ๐Ÿ“‹ Custom integration SDK
  • ๐Ÿ“‹ Mobile companion app
  • ๐Ÿ“‹ Marketplace for AI agent templates

๐Ÿค Contributing

We welcome contributions! CosyWorld is open-source and community-driven.

Ways to Contribute

  • ๐Ÿ› Report bugs and issues
  • ๐Ÿ’ก Suggest features and improvements
  • ๐Ÿ“ Improve documentation
  • ๐Ÿ”ง Submit pull requests
  • ๐Ÿงช Test new features and provide feedback

Development Setup

# Clone and install
git clone https://github.com/cenetex/cosyworld.git
cd cosyworld
npm install

# Run in development mode
NODE_ENV=development npm start

# Run tests
npm test

# Lint code
npm run lint

๐Ÿ“Š System Requirements

Minimum

  • CPU: 2 cores
  • RAM: 4GB
  • Storage: 20GB
  • OS: Linux, macOS, or Windows with WSL2

Recommended

  • CPU: 4+ cores
  • RAM: 8GB+
  • Storage: 50GB SSD
  • OS: Linux (Ubuntu 22.04+) or macOS

For Production

  • CPU: 8+ cores
  • RAM: 16GB+
  • Storage: 100GB SSD
  • Network: High bandwidth for media processing
  • Monitoring: Prometheus, Grafana recommended

๏ฟฝ Security & Privacy

  • Encrypted Storage: All API keys and secrets encrypted with AES-256-GCM
  • Rate Limiting: Built-in protection against spam and abuse
  • Content Moderation: AI-powered detection of harmful content
  • Audit Logs: Track all actions and changes
  • GDPR Compliant: User data handling and deletion tools
  • Open Source: Full transparency and community review

๏ฟฝ License

CosyWorld is licensed under the MIT License. See LICENSE for details.


๐Ÿ™ Acknowledgments

Built with:

Special thanks to our community contributors and testers!


๐Ÿ“ž Support & Community


โš ๏ธ Status

Current Version: 0.0.11 (Beta)

CosyWorld is actively developed and suitable for testing and production use with appropriate monitoring. While core features are stable, expect continued improvements and new features.

Production Readiness:

  • โœ… Core platform integrations stable
  • โœ… AI agent system battle-tested
  • โœ… Security features in place
  • โš ๏ธ Scale testing ongoing
  • โš ๏ธ Advanced analytics in development

CosyWorld - Building the future of AI-powered community management ๐ŸŒŸ

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages