@nimbleflux/fluxbase-sdk-vue

Vue/Nuxt composables and SSR cookie storage for Fluxbase SDK
6,870 41
Install
npm install @nimbleflux/fluxbase-sdk-vue
Latest Version:2026.10.2
Vue:3
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: zehbart

@nimbleflux/fluxbase-sdk-vue

Vue/Nuxt composables and SSR cookie storage for the Fluxbase SDK.

Scaffold status: provides the SSR-auth foundation (cookie storage, provide/inject composable). Full reactive composables (like the React/Svelte hooks) are a follow-on.

Install

bun add @nimbleflux/fluxbase-sdk-vue

Peer dependencies: @nimbleflux/fluxbase-sdk, vue.

Provide the client

// main.ts
import { createApp } from 'vue'
import { createClient } from '@nimbleflux/fluxbase-sdk'
import { FLUXBASE_CLIENT_KEY } from '@nimbleflux/fluxbase-sdk-vue'
import App from './App.vue'

const app = createApp(App)
app.provide(
  FLUXBASE_CLIENT_KEY,
  createClient({ url: 'http://localhost:8080' }),
)
app.mount('#app')

Use it in a component:

<script setup lang="ts">
import { useFluxbaseClient } from '@nimbleflux/fluxbase-sdk-vue'

const client = useFluxbaseClient()
const { data } = await client.from('products').select('*').execute()
</script>

SSR auth with httpOnly cookies (Nuxt)

Back the auth session with an httpOnly cookie via the h3 event's cookie API:

// server plugin / middleware
import { createClient } from '@nimbleflux/fluxbase-sdk'
import { createCookieStorage } from '@nimbleflux/fluxbase-sdk-vue'

export default defineEventHandler((event) => {
  const client = createClient({
    url: useRuntimeConfig().fluxbaseUrl,
    auth: { storage: createCookieStorage(event) }, // httpOnly + sameSite=lax
  })
  event.context.fluxbase = client
})

License

MIT

Related Packages

nuxt-ssr-api-logger

Nuxt module for logging SSR API requests.

22,791 11
@thunderid/nuxt

Nuxt SDK for ThunderID

6,771 7
@authon/nuxt

Authon Nuxt 3 module — auto-imported composables and middleware

2,931 1

Version History

Version Released License
2026.10.2
2026.10.1
2026.9.10
2026.9.9
2026.9.8
Pre-releases (14)
Version Released License
2026.8.8-rc.7
2026.8.8-rc.6
2026.8.8-rc.5
2026.8.8-rc.4
2026.8.8-rc.3