Gatsby is a frontend JavaScript framework for generating static websites that you could use for your Headless Wagtail site.
There is a plugin available called gatsby-source-wagtail you can use for connecting Wagtail to a Gatsby frontend. Choosing to use that plugin means committing to using a GraphQL library for your API, since it works with the wagtail-grapple library.