I went through a deep dive into the technical implementation of SBT and its possible implementation. Below are my articles which include the source code: