Pensieve: a Slay the Spire Event Log
I have played a lot of Slay the Spire (StS) in my time, a game with a rather active and supportive modding community (at least, there used to be). People developed all kinds of extensions to the game: new characters, new maps, new graphics, quality-of-life improvements, and so on.
I built a couple of small mods, the first of which is called Pensieve. This is a reference to a mystical object in the Harry Potter universe that stores memories for later viewing. Approriately, this mod enabled more complete logging of individual StS runs. If you aren’t aware, StS is a rogue-like deck building game, where you progress through a series of increasingly difficult challenges, collecting new cards to improve your deck along the way. You can review previous runs, but the information you see is limited; you only see a basic list of the monsters you defeated, along with some information about what cards/items you acquired. Pensieve, on the other hand, creates a log of almost every action you take on a given run; what cards you played when, what potions you used, when relics triggered, and so on.
This was accomplished by hooking into various game events, and writing to an embedded database. I also built a small viewer to allow reviewing game logs.
You can find the code for this mod here.