0.4.111 • Published 10 months ago

@api-buddy/supabase v0.4.111

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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-js

Usage

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: 'user@example.com',
  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

0.4.111

10 months ago

0.4.109

10 months ago

0.4.108

10 months ago

0.4.107

10 months ago

0.4.57

10 months ago

0.0.1

10 months ago