Bicycles should be required to be sold with a sheet of all the measurements of replacement parts. I find that buying the correct part is often the biggest hurdle in maintaining my bicycles.
Complete bicycle manufacturers usually make these specification lists public in online and print catalogs. Component-level repair, as in many other fields, requires more specialized knowledge and a parts list is rarely practical nor helpful.