Embeddable (into JS et al)
PGlite – Embeddable Postgres
21–30 of 118 posts
Re: PGlite – Embeddable Postgres
#22Hey everyone, I work on PGlite. Excited to see this on HN again. If you have any questions I'll be sure to answer them. We recently crossed a massive usage milestone with over 3M weekly downloads (we're nearly at 4M!) - see https://www.npmjs.com/package/@electric-sql/pglite While we originally built this for embedding into web apps, we have seen enormous growth in devtools and developer environments - both Google Fir…
Re: PGlite – Embeddable Postgres
#23Nonetheless, this could be interesting for data heavy SPA's.
Re: PGlite – Embeddable Postgres
#24Are people using this in SPA applications with success? I saw on the website that syncing via ElectricSQL is in alpha and that no CRDT is available, afaik. Any other options? Also, I guess pgsql extensions are out of scope? Nonetheless, this could be interesting for data heavy SPA's.
Extensions are also available - we have a list here: https://pglite.dev/extensions/. We would love to extend the availability of more, some are more complex than others though. We are getting close to getting PostGIS to work, there is an open PR that anyone is welcome to pick up and hack on.
Re: PGlite – Embeddable Postgres
#25It's cool that this is possible, is this just for fun or are there good use-cases for this?
Re: PGlite – Embeddable Postgres
#26Hey everyone, I work on PGlite. Excited to see this on HN again. If you have any questions I'll be sure to answer them. We recently crossed a massive usage milestone with over 3M weekly downloads (we're nearly at 4M!) - see https://www.npmjs.com/package/@electric-sql/pglite While we originally built this for embedding into web apps, we have seen enormous growth in devtools and developer environments - both Google Fir…
I'm interested to use Pglite for local unit-testing, but I'm using timescaledb in prod, do you think you will have this extension pre-built for Pglite?
Re: PGlite – Embeddable Postgres
#27Re: PGlite – Embeddable Postgres
#28This is very cool. Having to always set up a server is one major downside of Postgres, with cumbersome updates being the second. This solves the first and has potential to help with the second. Is there a way to compile this as a native library? I imagine some of the work should be reusable.
Re: PGlite – Embeddable Postgres
#29Can this be used as a read-replica to a normal PG instance? I'm thinking synced browser cache here.
Re: PGlite – Embeddable Postgres
#30This is very cool. Having to always set up a server is one major downside of Postgres, with cumbersome updates being the second. This solves the first and has potential to help with the second. Is there a way to compile this as a native library? I imagine some of the work should be reusable.
Yes! I (experimentally) compiled and packaged it for react-native. Postgres on iOS and Android https://github.com/electric-sql/pglite/pull/774