vue-supabase

A small wrapper for integrating supabase to Vuejs
3,142 90
Install
npm install vue-supabase
Latest Version:2.3.0
Vue:2 · 3
License:MIT
Last Updated:Sep 19, 2026
Links: GitHub  ·  npm
Maintainer: scottymeuk

Vue + Supabase

A supa simple wrapper around Supabase.js to enable usage within Vue.

Installation

# Vue 3.x
yarn add vue-supabase

# Vue 2.x
yarn add @vue/composition-api vue-supabase

Note: Currently @vue/composition-api is required for this package to work for projects using Vue 2.x.

Usage

Vue 2.x

import VueSupabase from "vue-supabase";

Vue.use(VueSupabase, {
  supabaseUrl: "",
  supabaseKey: "",
  supabaseOptions: {},
});
const { data, error } = await this.$supabase.from("events").select("*");

Vue 3.x

import VueSupabase from 'vue-supabase'

const app = createApp(...)

app.use(VueSupabase, {
  supabaseUrl: '',
  supabaseKey: '',
  supabaseOptions: {}
})

app.mount(...)
Options API
const { data, error } = await this.$supabase.from("events").select("*");
Composition API
import { useSupabase } from "vue-supabase";

const supabase = useSupabase();

const { data, error } = await supabase.from("events").select("*");

Here are a couple of composables available with Vue 3.x or Vue 2.x + Composition API

import { useSuabaseAuth, useSupabaseStorage } from "vue-supabase";

const auth = useSupabaseAuth();
const storage = useSupabaseStorage();
const { data } = await storage.listBuckets();
await auth.signOut();

Related Packages

vuejs-tree

A highly customizable vuejs tree

35,221 331
himmas-vue-calendar

A calendar component for Vue.js

5,301 45
nuxt-supabase

A supa simple Nuxt Module for Supabase

2,128 170
@supabase-community/vue-supabase

A minimal Vue 3 integration layer for Supabase.

582 90

Version History

Version Released Vue License
2.3.0 ^2.0.0 || >=3.0.0 MIT
2.2.4 ^2.0.0 || >=3.0.0 MIT
2.2.3 ^2.0.0 || >=3.0.0 MIT
2.2.2 ^2.0.0 || >=3.0.0 MIT
2.2.1 ^2.0.0 || >=3.0.0 MIT
Pre-releases (6)
Version Released Vue License
2.1.0-beta3 ^2.0.0 || >=3.0.0 MIT
2.1.0-beta2 ^2.0.0 || >=3.0.0 MIT
2.1.0-beta1 ^2.0.0 || >=3.0.0 MIT
1.0.4-pre.3 >=1.x.x MIT
1.0.4-pre.2 >=1.x.x MIT