
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
discord-live-stats
Advanced tools
A cool Dashbaord for showing Live Stats and managing your Discord Bot/Shards
The ultimate package for checking Shard-Live-Stats & Bot-Live-Stats. See & get informed and get control over each Shard.

If you need help feel free to join our discord server. We will provide you all the help you need ☺
You can download it from npm:
npm i discord-live-stats
First of all, you have to create a new File, which can be named server.js.
In the server.js File you will need to insert the Code below, and install the NPM Package express by using npm i express
Scroll down for Api References
File: server.js
const Stats = require('discord-live-stats');
const express = require("express");
const app = express();
const client = new Stats.Server(app, {
bot: {
name: "Your Bot Name",
icon: "Your Discord Bot Avatar URL",
website: "Your Website URL",
client_id: "Discord Bot ID",
client_secret: "Discord Bot Client_Secret (Not Token)"
},
stats_uri: "http://localhost:3000/", //Base URL
redirect_uri: "http://localhost:3000/login", //Landing Page
owners: ["Bot_Owner1", "Bot_Owner2"],
authorizationkey: "Your Password for verifying requests",
})
client.on('error', console.log)
app.listen(3000, () => {
console.log("Application started, listening on port 3000!");
});
You can start now start your Dashboard with node server.js.
Go to the Discord Developer Portal and to Authorization and insert your redirect_uri there
Now go to the stats_uri link or your choosen link and you should be redirected to the Dashboard with no Data.
Follow the upper step before doing this step.
Open your bot.js File, where you login in the Client and insert this:
File: bot.js
const Stats = require('discord-live-stats');
const Discord = require('discord.js');
const client = new Discord.Client()
const Poster = new Stats.Client(client, {
stats_uri: 'http://localhost:3000/',
authorizationkey: "Your Password for verifying requests | Same as in Server.js",
})
/*
* YOUR BOT CODE STUFF
*/
client.login(`Your_Bot_Token`)
When you start your bot with or without Sharding, the Dashboard should show some information such as Status, Ram, Cpu, Ping, Guildcount and more data of each Shard and of all guilds in total.
| Config Options | Default | Description |
|---|---|---|
| bot.name | 'required' | The Discord Bot Name |
| bot.icon | 'required' | The icon url for the html page |
| bot.website | 'required' | The Bot Website on the Footer |
| bot.client_id | 'required' | The Discord Bot ID |
| bot.client_secret | 'required' | The Discord Bot's Client Secret (Not Token) |
| stats_uri | 'required' | The Base Dashboard Link |
| redirect_uri | 'required' | The Discord Bot Redirect Url after authorization |
| scope | ['indentify'] | Scopes, which should be used for authorization |
| owners | 'required' | Array of Bot Owners, which can access the Dashboard |
| postinterval | 1000ms | The Post Interval of the new client data |
| login_path | '/' | The Path, where you can authorize yourself for accessing the Dashboard |
| authorizationkey | 'required' | A random chosen Password/Key, which is used for verifying requests. |
| markShardasDeadafter | 5000ms | How long to wait until the Shard is marked as dead on the Dashboard, when no new Data has been recieved |
Have fun! and feel free to contribute/suggest or contact me on my Discord Server or DM me Meister#9667
If you encounter any problems, feel free to open up an issue in our github repository or join our discord server!
Partial Credits goes to ADMIN LTE for a good Starter Template, CSS and the Plugins...
When you create Forks of this Package, do not remove the Credits :)
FAQs
A cool Dashbaord for showing Live Stats and managing your Discord Bot/Shards
We found that discord-live-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.