PostGIS has been one of the most requested extensions for PGlite and we've recently ported it. For now, it doesn't contain some optional libraries like json-c and GDAL, but we see a path in adding those as well.
You can try it directly in our REPL https://pglite.dev/repl
We're very interested in seeing what people build with it.