Skip to content

Repository files navigation

Unofficial Supabase Authentication Library

Disclaimer: This is an unofficial library for Supabase authentication. It is not affiliated with Supabase in any way.

⚠️ 🚧 This library is still under development and is not yet ready for production use.

Framework Support

This library now supports building web components with both:

  • Lit (Primary) - Lightweight, fast, built for web components (~5KB)
  • Vue 3 (Alternative) - Familiar Vue syntax with composition API (~16KB)

Quick Start

Using Lit (Recommended)

import { SbAuth } from '@hexrw/sb-auth'

// Component automatically registered as <sb-auth>
<sb-auth></sb-auth>

Using Vue 3

import { registerVueComponent } from '@hexrw/sb-auth'

registerVueComponent()
<sb-auth-vue></sb-auth-vue>

Documentation

Development

# Install dependencies
npm install --legacy-peer-deps

# Build
cd packages/elements
npm run build

# Develop
npm run dev

Why Two Frameworks?

We've explored both Lit and Vue 3 to give you options:

  • Lit - Best for libraries, smaller bundles, better web component support
  • Vue 3 - Best for Vue projects, familiar DX, rich ecosystem

Choose based on your project needs!

About

Unofficial community Supabase (https://supabase.com/) auth components library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages