This page will give you a brief overview about how this website functions and what is used under the hood.
My website uses Astro under the hood. Astro is used as a multi-page static site generator here. All Projects and Blog Entries are written down as MDX-Files. Astro will then generate the relevant pages using the Content-Plugin.
Some pages also contain images. To keep the download sizes low I convert my PNG Images to WebP during build. While Astro has a Plugin to do this for you, I chose to go a different route by creating a Content Server which Astro will call during build to generate images.
This same Content Server is also used to automatically generate images. For example all the OpenGraph Images (used in social embeds) are generated this way using Satori and Sharp. I made the Content Server public — The codebase is a hot, undocumented mess, but feel free to look at it on Gitlab.
On the Astro side of things I wrote a function that will fetch the image from the server, copy it into the public directory, and reference that public directory instead. You can look at the astro-preload package for an example implementation.
This website makes use of the following dependencies.