nuxt-pglite
v0.0.2
Published
A Nuxt module aimed to simplify the use of PGlite.
Downloads
137
Readme
Nuxt PGlite
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.
[!WARNING]
This is an highly experimental project. No docs are available (although planned), please refer to the source code.
Features
- 🧑💻 Client side
usePGlite
, running in the JS main thread. - 🖥️ Client side
usePGliteWorker
, running inside Web Workers. - ⚡️ Server side
usePGlite
, running in your Node or Bun server.
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add nuxt-pglite
That's it! You can now use Nuxt PGlite in your Nuxt app ✨
Contribution
# Install dependencies
pnpm install
# Generate type stubs
pnpm run dev:prepare
# Develop with the playground
pnpm run dev
# Build the playground
pnpm run dev:build
# Run ESLint
pnpm run lint
# Run Vitest
pnpm run test
pnpm run test:watch
# Release new version
pnpm run release