TPM-JS is an online educational tool I wrote for TPM users. It lets you experiment with a TPM simulator in your browser. The codelab sessions explain how TPMs work, and cover topics such as key generation, measured boot, remote attestation and sealing.
TPM-JS website: https://google.github.io/tpm-js/
TPM-JS source code: https://github.com/google/tpm-js