modules icon indicating copy to clipboard operation
modules copied to clipboard

feat: add `nuxt-pglite`

Open sandros94 opened this issue 1 year ago โ€ข 1 comments

๐Ÿ”— Linked issue

Resolves #1125

โ“ Type of change

  • [ ] ๐Ÿ“– Documentation (updates to the documentation or readme)
  • [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [ ] ๐Ÿ‘Œ Enhancement (improving an existing functionality)
  • [x] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

A Nuxt module aimed to simplify the use of PGlite.

PGlite, an Embeddable Postgres Run a full Postgres database locally in WASM with reactivity and live sync.

It probides a series of composables, plugins and server utils to support PGlite both in the browser and on the server.

Key features:

  • RLS support
  • Web Workers by default in browser env
  • Full type support for a better DX

Automatic extensions installation with support for things like:

  • live: to subscribe reactively to a particular query.
  • Sync: to sync a subset of a remove Postgres database for offline-first implementations.
  • vector: for vector similarity searches

sandros94 avatar Dec 11 '24 12:12 sandros94

Nice work! One important point is that for server-side, you can actually leverage built-in db layer ~> https://github.com/sandros94/nuxt-pglite/issues/7

pi0 avatar Dec 11 '24 12:12 pi0