Home›Java›Mods›Chat History Tracker
ModsJava

Chat History Tracker

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by EpicPix · on Modrinth

⬇ Download on Modrinth

Chat History Tracker

This mod lets you keep your chat history in a format which keeps the original formatting and style, and keeps some extra actions.

Usage

Install the mod to have the chat activity tracked in a format which contains style information.

After installing the mod, run /chattracker update, to download the latest web ui.

To see the logs, you can run /chattracker web. Open the web page that has been linked in the chat to see your logs. The web page is only accessible to you, the page is hosted locally on your computer, no data about the log leaves your computer. To stop the server, run /chattracker stop.

On the webpage, you will see a file picker, and the log view.

In the file picker, you can open:

There are also some options:

Note: In case of any mismatch of the latest README with what you see, it is most likely because you're running an outdated version of the UI. So this is another reminder to run /chattracker update every once in a while, for QoL features.

Data

The activity and chat logs are stored in a chat_history folder in your Minecraft instance folder. A new file gets made whenever you start your game, and no files get overwritten.

The following data is stored locally in those files:

How it works

When you run /chattracker update, the mod downloads the entire webpage to serve from https://cht.mods.epicpix.dev/static/serve.zip and stores it into config/chat-history-tracker-serve.zip.

When you run /chattracker web, the client starts a webserver on any port that is available. The mod serves the webpage from config/chat-history-tracker-serve.zip.

The zip additionally has a special /signature file, which contains the signatures for all files in the archive. The public key is directly embedded inside the mod. This makes it difficult to modify the archive manually without modifying the mod as well.

The page contains a /api/* route which handles all the requests in the mod itself, and any other request will look at a file inside the zip file and serve that instead.

The webserver additionally puts restrictions on what the page can actually do via a Content-Security-Policy. The value of this header will depend on the version of the mod, but currently this is default-src 'self' 'wasm-unsafe-eval' 'unsafe-inline'; sandbox allow-downloads allow-same-origin allow-scripts.

Those restrictions mean that the log viewer cannot send data to anywhere except its own page. Which means even if the serve.zip file was compromised and ended up trying to send logs to some bad actor, it would not be able to.

If you want to read .chatlog files, see https://gitlab.epicpix.dev/EpicPix/chat-history-tracker-tool

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more