I'm aware to varying extents of the existence of certain decompositions of the space of $k$-forms on a compact complex or compact Riemannian manifold that split into closed, co-closed, and harmonic forms, and that the space of harmonic forms becomes isomorphic to the de Rham cohomology groups. However, these are defined differently, but there seems to be analogy here in the theorems and to some extent in the proofs; this is also suggested by the common name. Is there one? Or is there a more general way to encapsulate all this?



Why the similarity between Hodge theory for compact Riemannian and complex manifolds?
For any Riemannian (in particular, for any Hermitean) manifold there is the decomposition: all forms are the direct sum of the harmonic ones, exact ones and those in the image of the conjugate operator of the de Rham differential. Every de Rham cohomology class is represented by a unique $d$-harmonic form.


For any complex (Hermitean) manifold there is a similar theory for the $\bar\partial$ operator, and we get a similar decomposition for each complex $({\cal E}^{p,\bullet},\bar\partial)$ where ${\cal E}^{p,q}$ stands for complex valued smooth $(p,q)$-forms. See e.g. Chern, Complex manifolds. Every Dolbeault cohomology class is represented by a unique $\bar\partial$-harmonic form.


For general complex hermitean manifolds the above decompositions have nothing to do with one another. However, if the metric is Kaehler, some miracles happen:


1. the Laplacians of $d$ and of $\bar\partial$ coincide (more precisely, one is twice the other), so the spaces of harmonic forms coincide as well.
2. the $(p,q)$-projection of a $d$-harmonic form is again $d$-harmonic. Indeed, a local check shows that the $(p,q)$ projection operator commutes with the $d$-Laplacian. So each of the $(p,q)$ components of a $d$-harmonic form is closed and none is exact (if non-zero). So the $(p,q)$-decomposition of forms gives a $(p,q)$-decomposition of the cohomology classes (this does not exist for general complex manifolds). This is the Hodge decomposition.
3. since the conjugate of a $d$-harmonic form is again $d$-harmonic, the $(p,q)$ and the $(q,p)$ parts of the Hodge decomposition are conjugate to one another.


As a consequence of the above, the Hodge-to-de Rham spectral sequence degenerates in the first term. This implies that the $dd^c$-lemma holds for Kaehler manifolds, and hence, they are formal. See Deligne, Griffiths, Morgan, Sullivan, Real homotopy theory of Kaehler manifolds.


The cohomological Hodge decomposition holds also for arbitrary bimeromorphically Kaehler compact complex manifolds (in particular, for smooth, complete but not necessarily projective complex algebraic varieties). See e.g. Peters, Steenbrink, Mixed Hodge structures, p. 49.


