A construction suggested on Wikipedia in fact produces a left adjoint for the forgetful functor $\mathcal{H}\to Top$ for any full subcategory $\mathcal{H}$ of $Top$ consisting of Hausdorff spaces that is closed under taking products and taking closed subspaces - for example $\mathcal{H}=Haus$ itself, or $\mathcal{H}=\mathcal{T_{3\frac{1}{2}}}$ (completely regular Hausdorff spaces), or $\mathcal{H}=CompHaus$ (compact Hausdorff spaces, the case to which Wikipedia applies the construction to find the Stone-Čech compactification).
Indeed, if $f:X\to Y$ is a continuous map with $Y$ Hausdorff, and $f(X)$ is dense in $Y$, there is an injection $y\mapsto\{f^{-1}(U)\mid y\in U \,\&\,U \text{ open in }Y\}$ from $Y$ into the double power set $\mathcal{P}^{2}(X)=\mathcal{P}(\mathcal{P}(X))$ of $X$.
So for $X\in Top$, let $\mathcal{F}(X)$ denote the set of triples $(Y,\tau,f)$ with $Y\in\mathcal{P}^{3}(X)$, $\tau$ is a topology on $Y$ such that $(Y,\tau)\in\mathcal{H}$, and $f:X\to (Y,\tau)$ is continuous with dense image. And let $g:X\to\prod_{(Y,\tau,f)\in\mathcal{F}(X)}(Y,\tau)$ be the natural map. Then the closure $\mathcal{G}(X):=\overline{g(X)}$ of the image of $g$ is in $\mathcal{H}$, and the corestriction $g:X\to\mathcal{G}(X)$ of $g$ to $\mathcal{G}(X)$ is universal among continuous maps from $X$ to objects of $\mathcal{H}$.
In the case $\mathcal{H}=Haus$, by universality $g:X\to\mathcal{G}(X)$ is just $nat:X\to HX$, which is surjective. It follows that here the image of $g$ is closed in $\prod_{(Y,\tau,f)\in\mathcal{F}(X)}(Y,\tau)$, a fact not immediately clear from the definitions.