Check out
https://github.com/showyourwork/showyourwork
there is not yet bi-directional Overleaf support, but you can inject text and figures from a Snakemake-based workflow and refer to the figures in an agnostic way from the Overlear