TFMG thermal is a library for other mods to add thermal systems into Factorio.
Currently, the library is still somewhat in development, so there are some rough edges. But work is being done to make the experience as smooth as possible.
Look at templates.lua for an explanation of how to use the mod.