Common library of d2 project