Features
CyberPaste comes with a comprehensive set of features designed to provide a secure, user-friendly, and powerful pastebin experience.
🔐 Authentication & Security
Discord OAuth2 Integration
- Seamless login with Discord account
- Secure authentication flow
- Session management with MongoDB store
- Automatic user profile synchronization
Security Features
- CSRF Protection: All forms protected with Lusca middleware
- Rate Limiting: Configurable limits for API and web requests
- Password Hashing: bcrypt encryption with salt rounds (12 rounds)
- Session Security: Secure cookies with httpOnly and sameSite protection
- Input Validation: Sanitized inputs and file uploads
- File Upload Security: Type and size validation (2MB limit for images)
📝 Paste Management
Core Functionality
- Create Pastes: Simple and intuitive paste creation interface
- Unique Slugs: Auto-generated unique identifiers for each paste
- View Tracking: Real-time view count for each paste
- Content Storage: Efficient storage with MongoDB
Advanced Features
- Password Protection: Protect pastes with passwords (bcrypt hashed)
- View Limits: Set maximum views for pastes (auto-expiration)
- Syntax Highlighting: Automatic code detection with Prism.js
- Line Numbers: Toggle line numbers for better code readability
- Character Counter: Real-time character count with size validation
- Copy to Clipboard: One-click copy functionality
Supported Languages for Syntax Highlighting
- JavaScript/TypeScript
- Python
- Java
- C/C++
- Ruby
- HTML/CSS
- JSON
- SQL
- Bash/Shell
- YAML
- And many more...
🎨 Modern UI/UX
Design Features
- Glassmorphism Design: Modern glassmorphic UI elements
- Animated Backgrounds: Dynamic background effects
- Dark Theme: One Dark Pro color scheme
- Responsive Layout: Fully responsive for desktop and mobile devices
- Smooth Animations: Polished animations and hover effects
User Interface Elements
- Modal Dialogs: Clean modal interface for paste creation
- Toast Notifications: User feedback with toast messages
- Loading States: Visual feedback during operations
- Error Handling: User-friendly error messages
- Custom Theming: Customizable colors and branding
⚙️ Admin Panel
Staff Dashboard
- Real-time Statistics: Live statistics dashboard
- Total pastes
- Total views
- Pastes in last 30 days
- Average paste size
- Most viewed paste
- Average views per paste
- Storage used
Settings Management
-
General Settings:
- Site name and description
- Logo and favicon upload
- Color customization (primary, secondary, text colors)
- Social media links (Discord, YouTube, GitHub, X/Twitter)
-
Security Settings:
- Web rate limiting (requests per window)
- API rate limiting
- Maximum paste size
- API access control
- API key protection
-
Advanced Settings:
- Auto-delete inactive pastes
- Syntax highlighting toggle
- Slug length configuration
- Slug character set options
Administrative Actions
- Clear All Pastes: Bulk delete functionality
- File Uploads: Logo and favicon management
- Rate Limit Configuration: Dynamic rate limit updates
- Debug Mode: Toggle debug logging
🚀 Performance
Optimization Features
- MongoDB: Fast NoSQL database for efficient data storage
- Express.js: High-performance routing and middleware
- Multer: Efficient file upload handling
- Conditional Logging: Production-optimized logging
- Session Storage: MongoDB session store for scalability
- Indexed Queries: Optimized database queries with indexes
Scalability
- Horizontal Scaling: Stateless design for easy scaling
- Database Indexing: Optimized database indexes for fast queries
- Rate Limiting: Prevents abuse and ensures fair usage
- Efficient Storage: Optimized data storage and retrieval
🔧 Configuration
Flexible Configuration
- YAML Configuration: Easy-to-edit YAML configuration file
- Environment-based Settings: Different settings for development/production
- Dynamic Updates: Some settings can be updated via admin panel
- License Management: Integrated license validation system
Customization Options
- Theming: Customizable colors and branding
- Rate Limits: Configurable rate limiting per endpoint
- Paste Limits: Configurable maximum paste size
- Session Duration: Configurable session expiration
- SSL Support: HTTPS/SSL configuration support
📊 Statistics & Analytics
Real-time Metrics
- Total pastes count
- Total views across all pastes
- Pastes created in last 30 days
- Average paste size
- Most viewed paste count
- Average views per paste
- Storage usage (in MB)
Data Insights
- View tracking per paste
- Creation timestamps
- Access patterns
- Storage utilization
🔒 Privacy & Security
Data Protection
- Password Hashing: Secure password storage with bcrypt
- Session Security: Secure session management
- CSRF Protection: Cross-site request forgery protection
- Input Sanitization: Sanitized user inputs
- File Validation: Secure file upload validation
Access Control
- Owner-only Admin: Restrictive admin access
- Password-protected Pastes: Optional paste protection
- View Limits: Control paste accessibility
- Rate Limiting: Prevent abuse and DDoS
🌐 API Access
RESTful API
- Public API: Create and view pastes via API
- Admin API: Manage settings and statistics
- Rate Limited: Configurable API rate limits
- CSRF Protected: Secure API endpoints
- JSON Responses: Standard JSON API responses
For detailed API documentation, see the API Reference.
Next Steps: Learn how to install CyberPaste or check out the API Reference for integration details.