Only thing it's doing is fetching block height from blockstream and price from coingecko.
It's also open-source :).
It's currently using Blockstream for the block explorer but I guess Mempool.space is better aesthetically. I'll switch out Block stream for mempool. Thank ya!