Build postgis for pglite.
https://postgis.net/docs/postgis_installation.html#install_requirements
See branch https://github.com/electric-sql/pglite/tree/tdrz/frontend-try-postgis2
All necessary dependencies are built in that branch (see Dockerfile),and creating postgis.tar.gz is possible with some manual steps (see build-postgis.sh). There is a postgis.test.ts that contains a basic postgis test.
This is work in progress (ie not working)!
Update 2026.01.26
We are very close to having PostGIS in PGlite: #807
Have a look through the comments on that PR.
Build postgis for pglite.
https://postgis.net/docs/postgis_installation.html#install_requirements
See branch https://github.com/electric-sql/pglite/tree/tdrz/frontend-try-postgis2
All necessary dependencies are built in that branch (see Dockerfile),and creating
postgis.tar.gzis possible with some manual steps (seebuild-postgis.sh). There is apostgis.test.tsthat contains a basic postgis test.This is work in progress (ie not working)!
Update 2026.01.26
We are very close to having PostGIS in PGlite: #807
Have a look through the comments on that PR.