I am pretty sure none of the Dexter/ModRobotics APIs will install on DietPi, but the statistic gathering commands are interesting examples of command line tools available.
Other “tiny” distros include a very lightweight desktop. Puppy Linux, Damn Small Linux[1], and a few others I don’t remember all have desktops, but my money’s on it not being compatible with just about every graphical app out there.
====================
Damn Small Linux was originally designed to fit on a 1.44 meg floppy, but as the kernel and necessary utilities got larger it was re-branded as a “credit-card” sized distribution. I haven’t seen it in a while, so I have no idea what it’s doing, or if it even still exists.