We introduce geometric structures on the space of stability conditions of a three-dimensional Calabi-Yau category which encode the Donaldson-Thomas invariants of the category. We explain in detail a close analogy between these structures, which we call Joyce structures, and Frobenius structures. In the second half of the paper we give explicit calculations of Joyce structures in three classes of examples.