A Node.js application that automatically tracks and logs various statistics for ROBLOX games and groups over time. It collects data such as:
- Game visits
- Favorite count
- Current active players
- Group member count
- Up/down votes
- Automatic data collection at configurable intervals
- CSV file output organized by date
- Detailed logging system
- Error handling and recovery
- Clean shutdown and log rotation
- Rate limiting to respect ROBLOX's API limits
- Automatic retry on server errors
-
Clone this repository:
git clone https://github.com/yourusername/roblox-stats-tracker.git
cd roblox-stats-tracker
-
Install dependencies:
npm install
-
Configure your settings in config.js:
- Set your ROBLOX universe ID (currently set to 1931573465)
- Set your group ID (currently set to 2880815)
- Adjust the save interval if needed (default is 5 minutes)
-
Find your ROBLOX universe ID:
- Go to your game's configuration page
- The universe ID is in the URL:
https://create.roblox.com/dashboard/creations/experiences/[universeId]/...
-
Find your group ID:
- Go to your group's page
- The group ID is in the URL:
https://www.roblox.com/groups/[groupId]/...
-
Update these values in
config.js
Start the tracker:
npm start
Using Screen (recommended for servers):
-
Install screen if not already installed:
- Ubuntu/Debian:
sudo apt-get install screen
- CentOS/RHEL:
sudo yum install screen
- Ubuntu/Debian:
-
Start the tracker in a screen session:
./start.sh
-
Detach from the screen session: Press
Ctrl+A
thenD
-
Reattach to the session later:
screen -r tracker
-
List all screen sessions:
screen -ls
The tracker creates daily CSV files in the saves
directory with the following format:
Column | Description |
---|---|
Timestamp | ISO 8601 timestamp |
Visits | Total game visits |
Favorites | Total favorites |
Players | Current active players |
Members | Group member count |
UpVotes | Total up votes |
DownVotes | Total down votes |
Example:
2024-03-20T12:00:00.000Z,1000000,50000,150,5000,75000,2500
While you can open the CSV files in any spreadsheet application, I recommend using CSViewer for analyzing the data. CSViewer is:
- Fast and lightweight
- Free for commercial use
- Great for large CSV files
- Includes filtering and basic visualization features
The data format is also compatible with other tools like Excel, Google Sheets, or any CSV viewer of your choice.
This project is licensed under the MIT License - see the LICENSE file for details.
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.