@feedkit/feedback-supabase
v0.1.3
Published
Supabase transport adapter for @feedkit/feedback-core: Storage blobs + Postgres row, anon key only.
Maintainers
Readme
@feedkit/feedback-supabase
Supabase transport adapter for @feedkit/feedback-core.
Persists feedback with no backend of your own: uploads heavy blobs (gzipped
replay + screenshot) to Storage, then inserts a row in Postgres — using only the
public anon key.
Install
npm i @feedkit/feedback-core @feedkit/feedback-supabaseUsage
import { supabaseTransport } from '@feedkit/feedback-supabase';
const transport = supabaseTransport({
url: 'https://YOUR_PROJECT.supabase.co',
anonKey: 'YOUR_ANON_KEY', // the only credential on the client
table: 'feedback', // default
bucket: 'feedback-assets', // default
});Pass transport to FeedbackClient (or provideFeedback in Angular).
Flow
- Uploads
${id}/replay.json.gzand${id}/screenshot.pngto the private bucket. - Inserts a row in
feedbackwith metadata + blob paths.
A failed blob upload does not block the insert (the path becomes null); a
failed insert throws so the UI can offer retry.
You need the matching Supabase setup (table, RLS, bucket, optional email notification and retention). See the project repository for the SQL migrations and Edge Functions.
MIT © Eduardo Santana
