1 of my 6 featured projects uses Linux: ninfo. Each one is open source.
Linux system info CLI in Nim that captures a whole-system snapshot as JSON in one call. No root, no dependencies, single static binary.