# How to calculate Cid locally?

**URL:** <https://discuss.ipfs.tech/t/how-to-calculate-cid-locally/10507>\
**Category:** Help\
**Created:** [March 16, 2021, 8:15am UTC](https://discuss.ipfs.tech/t/how-to-calculate-cid-locally/10507 "2021-03-16T08:15:58Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [March 19, 2024, 5:19pm UTC](https://discuss.ipfs.tech/t/how-to-calculate-cid-locally/10507/18 "2024-03-19T17:19:29Z")

</div>

> [@twdragon](#):
>
> > [@Jorropo](#):
> >
> > I don’t know where the source for dag.ipfs.tech lives.
> 
> @hector could you point us? Still cannot find it

Probably here [GitHub - ipfs-shipyard/ipfs-dag-builder-vis: See how the DAGs get built](https://github.com/ipfs-shipyard/ipfs-dag-builder-vis)

> [@twdragon](#):
>
> @hector @Jorropo I have updated my repository involving Boxo in a proper(?) way. I will be very appreciated if you have a quick look at it. The code is very simple, and it allows us to recreate CIDv1 with default DAG builder settings. Would be glad to hear about the underwater stones I did not see.
> 
> [GitHub - twdragon/ipfs-cid-local: An example program in Go to calculate IPFS CIDs](https://github.com/twdragon/ipfs-cid-local)

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

---

_[View the full topic](https://discuss.ipfs.tech/t/how-to-calculate-cid-locally/10507)._
