# `@api-buddy/supabase`

A Supabase client wrapper for API Buddy that simplifies database and authentication interactions with Supabase.

## Installation

```bash
pnpm add @api-buddy/supabase @supabase/supabase-js
```

## Usage

```typescript
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
