Tarkov Tracker is a real-time leaderboard for modded versions of Escape from Tarkov using SPTarkov and Fika. This project monitors JSON files containing player profiles and displays various player statistics on a web-based leaderboard. Ideally you would run this alongside https://hub.docker.com/r/k2rlxyz/fika See more here: https://discord.com/channels/1202292159366037545/1236681505451933758
- Real-time monitoring of player profiles
- Display player statistics including level, health, kills, and more
- Realtime in-raid status and map.
- Scav ready status.
- Insurance status.
- Real-time updates with WebSockets.
- Dark war-like theme using Bootstrap
- Node.js
- NPM (Node Package Manager)
- SPTarkov
- Fika
- Clone the repository:
- Ideally you would clone this into your Fika user directory
fika/user
.git clone https://github.com/zak23/tarkov_tracker.git cd tarkov_tracker
-
Install dependencies:
npm install
-
Set up SPTarkov and Fika:
- Ensure SPTarkov and Fika are installed and configured correctly.
- Place JSON files containing player profiles in the
json_files
directory.
-
Start the server:
node jsonMonitor.js
-
Open your browser and navigate to:
http://localhost:3000
-
Monitor the leaderboard:
- The leaderboard will display player statistics in real-time.
- Press the "Update Leaderboard" button to manually refresh the data.
We have provided a shell script to automate the process of pulling the latest changes from the Git repository, building a Docker image, and running a Docker container.
sh update.sh
The WebSocket server is set up to listen for changes in the JSON files and update the leaderboard accordingly.
I recommend running this in a Docker container beside your Fika container.
Make sure to set the correct volume path for the JSON files in the Fike Docker container. The default path is /usr/src/app/profiles
.
Change the port to something you have free on your host machine. The default port is 3034
as I have other things running.
docker run --name $custom_container_name -d -v /home/docker/fika/user/profiles:/usr/src/app/profiles -p 3034:3000 tarkov_tracker
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch: git checkout -b feature/your-feature-name.
- Make your changes and commit them: git commit -m 'Add your feature'.
- Push to the branch: git push origin feature/your-feature-name.
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
- SPTarkov
- Fika
- https://hub.docker.com/r/k2rlxyz/fika
- Bootstrap
For any inquiries or issues, please contact [[email protected]].