The article presents a conceptually unified, quantitative account of the development of chemical phenomena throughout the cosmic history, with a detailed discussion of the cosmological, astrophysical, geological, biological, and anthropological context. The totality of cosmic chemistry is represented by a list of 176 classes of phenomena, drawn from the Universal Decimal Classification (UDC) library cataloguing system, and divided into 6 phases: of no chemistry, of prestellar chemistry, of galactic chemistry, of planetary chemistry, of biological chemistry, of human history. These are separated by periods of intensive chemical innovation, likened to phase changes based on four similarities: the rapidity of change, its intensity, the presence of nucleation-like dynamics, and dependence of... outcome on history. The limitations and perspectives of the method are described, including the extension of the analysis to all 893 UDC classes relevant to the study of nature. The role of chemical phenomena in the general architecture of the universe is shortly discussed, especially their complex relationships with basic phenomena described by physics.