This 455-page specification on the details of barcode encoding, printing, and reading, is some satisfying reading
https://www.gs1.org/docs/barcodes/GS1_General_Specifications.pdf
A small server for a small group of dog things