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.
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)
import { SbAuth } from '@hexrw/sb-auth'
// Component automatically registered as <sb-auth><sb-auth></sb-auth>import { registerVueComponent } from '@hexrw/sb-auth'
registerVueComponent()<sb-auth-vue></sb-auth-vue>- Vue 3 Comparison - Detailed comparison of Lit vs Vue 3
- Vue 3 README - Vue 3 implementation guide
- Demo Pages - Interactive examples
# Install dependencies
npm install --legacy-peer-deps
# Build
cd packages/elements
npm run build
# Develop
npm run devWe'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!