We describe the components of the moduli space of conjugacy classes of commuting pairs and triples of elements in a compact Lie group. This description is in te' of the extended Dynkin diagram of the simply connected cover, together with the coroot integers and the action of the fundamental group.