Any resources or tools for building an identity provider from the ground up?

I am looking to build a custom IdP. I am looking for resources that could help me along that journey.

https://www.ory.sh/kratos/