How to calculate Cid locally?

Probably here GitHub - ipfs-shipyard/ipfs-dag-builder-vis: See how the DAGs get built

It looks OK to me, it should produce the same CIDs as Kubo, this is easily testable with a few big and small files.