feat: Add real-time server dashboard and stats service#122
Draft
Araan-Sheikh wants to merge 2 commits intoManucrackYT:mainfrom
Draft
feat: Add real-time server dashboard and stats service#122Araan-Sheikh wants to merge 2 commits intoManucrackYT:mainfrom
Araan-Sheikh wants to merge 2 commits intoManucrackYT:mainfrom
Conversation
- Updated package.json to include new dependencies: axios, chart.js, socket.io, and ws. - Modified pages.json to add a new route for the real-time dashboard. - Implemented a new realtime.js API for handling socket connections and server subscriptions. - Created StatsService.js to manage polling and broadcasting server statistics. - Developed realtime-dashboard.ejs for the front-end interface, including charts and console output.
Owner
|
Hey! Looks so good as you described. Could you share some screenshots of how it looks like? |
Owner
|
Hi again. I've just tested the feature and its not working. It says i dont have servers but i own one. Please fix it to accept the PR. Also the design should look like the Lapsus theme pages. |
Author
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Overview
This PR adds a revolutionary WebSocket-powered real-time server monitoring dashboard to Lapsus Client, bringing enterprise-grade live analytics to Pterodactyl server management.
Live Monitoring Dashboard (
/realtime)Files Changed/Added
New Files
/managers/StatsService.js- Real-time stats polling service/api/realtime.js- WebSocket API handler with authentication/themes/lapsus/realtime-dashboard.ejs- Beautiful dashboard UIModified Files
index.js- Added Socket.io server initializationthemes/lapsus/pages.json- Added/realtimerouteDependencies Added
{ "socket.io": "^4.5.4", "chart.js": "^4.4.0", "ws": "latest", "axios": "^1.9.0" }Key Features
1. Live Server Grid
2. Detailed Server View
3. WebSocket Architecture
4. Security
Testing
Manual Testing
npm start/realtimeWhat to Test
Installation for Reviewers
Conclusion
This PR adds a game-changing feature that sets Lapsus Client apart from other Pterodactyl dashboards. Real-time monitoring with WebSockets, beautiful UI, and collaborative viewing make this a must-have for serious hosting providers.
Recommended Action: Merge after review and testing