We have a walk-through on porting extensions to PGlite: https://pglite.dev/extensions/development#building-postgres-...