# beaver-server **Repository Path**: meteor0823/beaver-server ## Basic Information - **Project Name**: beaver-server - **Description**: Beaver IM - Open Source Enterprise IM Platform | 开源企业级即时通讯平台,基于微服务架构,支持实时聊天、跨平台部署 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://wsrh8888.github.io/beaver-docs - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2025-11-02 - **Last Updated**: 2025-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🦫 Beaver IM - Enterprise-Grade Instant Messaging Platform [](LICENSE) [](https://golang.org/) [](https://github.com/zeromicro/go-zero) []() []() [](https://github.com/wsrh8888/beaver-server/stargazers) > 🚀 **Enterprise-Grade Instant Messaging Platform** - Built with Go-Zero microservices, supporting mobile (UniApp), desktop (Electron), and web clients with real-time communication capabilities. [English](README_EN.md) | [中文](README.md) --- ## 🌟 Key Features ### 🔐 **Enterprise Security** - **Multi-factor Authentication** - Email verification, SMS codes, biometric support - **End-to-End Encryption** - Message encryption in transit and at rest - **Role-Based Access Control** - Granular permissions and admin management - **Audit Logging** - Comprehensive security event tracking ### 💬 **Advanced Messaging** - **Real-time Communication** - WebSocket-based instant messaging - **Multi-format Support** - Text, images, files, voice messages, emojis - **Message Status** - Read receipts, typing indicators, delivery confirmation - **Message Search** - Full-text search across conversations - **Message Recall** - Time-limited message deletion ### 👥 **Social Features** - **Contact Management** - QR code scanning, contact import/export - **Group Management** - Create, manage, and moderate group chats - **Friend Requests** - Approval workflow with custom messages - **User Profiles** - Rich profile information with avatars ### 🏗️ **Microservices Architecture** - **15+ Microservices** - Scalable, maintainable service decomposition - **High Availability** - Multi-instance deployment support - **Service Discovery** - ETCD-based service registration - **Load Balancing** - Intelligent request distribution - **Circuit Breaker** - Fault tolerance and resilience ### 📱 **Cross-Platform Support** - **Mobile Apps** - iOS/Android via UniApp framework - **Desktop Apps** - Windows/macOS/Linux via Electron - **API Gateway** - RESTful APIs for third-party integration ## 🛠️ Technology Stack ### Backend Services | Technology | Version | Purpose | |------------|---------|---------| | **Go-Zero** | v1.6.0+ | Microservices framework | | **gRPC** | v1.58+ | Inter-service communication | | **WebSocket** | - | Real-time messaging | | **MySQL** | 8.0+ | Primary data storage | | **Redis** | 6.0+ | Caching & session management | | **ETCD** | 3.5+ | Service discovery & config | | **Docker** | 20.0+ | Containerization | ### Frontend Technologies | Platform | Framework | Features | |----------|-----------|----------| | **Mobile** | UniApp + Vue 3 | Cross-platform mobile apps | | **Desktop** | Electron + Vue 3 | Native desktop experience | ## 📊 Performance Metrics - **Message Latency**: < 100ms average - **Concurrent Users**: 10,000+ supported - **Message Throughput**: 100,000+ messages/second - **Uptime**: 99.9% availability - **Response Time**: < 200ms API response ## 🏗️ Architecture Overview ``` ┌─────────────────┐ ┌─────────────────┐ │ Mobile App │ │ Desktop App │ │ (UniApp) │ │ (Electron) │ └─────────┬───────┘ └─────────┬───────┘ │ │ └──────────────────────┘ │ ┌─────────────┴─────────────┐ │ API Gateway │ │ (Port: 20800) │ └─────────────┬─────────────┘ │ ┌─────────────────────────┼─────────────────────────┐ │ │ │ ┌───────▼────────┐ ┌───────────▼──────────┐ ┌────────▼────────┐ │ Auth Service │ │ User Service │ │ Friend Service │ │ API:20100 │ │ API:20000 │ │ API:20200 │ │ RPC:30100 │ │ RPC:30000 │ │ RPC:30200 │ └────────────────┘ └──────────────────────┘ └─────────────────┘ │ │ │ ┌───────▼────────┐ ┌───────────▼──────────┐ ┌────────▼────────┐ │ Chat Service │ │ Group Service │ │ File Service │ │ API:20300 │ │ API:20500 │ │ API:20600 │ │ RPC:30300 │ │ RPC:30500 │ │ RPC:30600 │ └────────────────┘ └──────────────────────┘ └─────────────────┘ │ │ │ ┌───────▼────────┐ ┌───────────▼──────────┐ ┌────────▼────────┐ │ WS Service │ │ Emoji Service │ │ Feedback Service│ │ API:20400 │ │ API:20700 │ │ API:21400 │ │ RPC:30400 │ │ RPC:30700 │ │ - │ └────────────────┘ └──────────────────────┘ └─────────────────┘ │ └─────────────────────────────────────────────────────────────┐ │ ┌─────────────────────────────────────────────────┴─┐ │ Data Layer │ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │ │ MySQL │ │ Redis │ │ ETCD │ │ │ │ (8.0+) │ │ (6.0+) │ │ (3.5+) │ │ │ └─────────────┘ └─────────────┘ └─────────────┘ │ └───────────────────────────────────────────────────┘ ``` ## 📚 Documentation & Resources - 📖 **Comprehensive Documentation**: [https://wsrh8888.github.io/beaver-docs/](https://wsrh8888.github.io/beaver-docs/) - 🎥 **Video Tutorials**: [Bilibili Channel](https://space.bilibili.com/269553626/lists) - 📱 **Demo APK**: [Beaver IM Android Demo](https://github.com/wsrh8888/beaver-docs/releases/download/lastest/latest.apk) - 💬 **QQ Group**: [1013328597](https://qm.qq.com/q/82rbf7QBzO) ## 🔗 Related Projects | Project | Repository | Description | |---------|------------|-------------| | **beaver-server** | [GitHub](https://github.com/wsrh8888/beaver-server) \| [Gitee](https://gitee.com/dawwdadfrf/beaver-server) | Backend microservices | | **beaver-mobile** | [GitHub](https://github.com/wsrh8888/beaver-mobile) \| [Gitee](https://gitee.com/dawwdadfrf/beaver-mobile) | Mobile applications | | **beaver-desktop** | [GitHub](https://github.com/wsrh8888/beaver-desktop) \| [Gitee](https://gitee.com/dawwdadfrf/beaver-desktop) | Desktop applications | ## 📱 Feature Showcase ### 🔐 Authentication & Security