@api-buddy/supabase
v3.0.0
Published
Supabase client and utilities for API Buddy
Maintainers
Readme
@api-buddy/supabase
A Supabase client wrapper for API Buddy that simplifies database and authentication interactions with Supabase.
Installation
pnpm add @api-buddy/supabase @supabase/supabase-jsUsage
import { SupabaseService } from '@api-buddy/supabase';
// Initialize with your Supabase URL and key
const supabase = new SupabaseService({
supabaseUrl: 'your-supabase-url',
supabaseKey: 'your-supabase-key',
});
// Use for database queries
const { data, error } = await supabase
.from('table')
.select('*');
// Use for authentication
const { user, session } = await supabase.auth.signIn({
email: '[email protected]',
password: 'password',
});Features
- Type-safe database operations
- Built-in error handling
- Authentication helpers
- Real-time subscriptions
Configuration
Extends SupabaseClient constructor options with additional configuration.
License
MIT
