Supabase starter module
Shared library
Centralizes browser and server Supabase clients with typed helpers for consistent data access.
- Files
- 4
- Lines
- 355
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
FilePurposeLanguageLines
src/lib/app-adapter.ts
Connects generic Supabase handlers to your app's own records and access rules.
TypeScript
153 lines
src/lib/env.ts
Reads Supabase and app settings from the environment and rejects missing values.
TypeScript
97 lines
src/lib/supabase-server.ts
Provides the two server-side Supabase clients: an admin client and a per-request client.
TypeScript
60 lines
src/lib/types.ts
Defines the app-owned storage operations that authentication handlers need.
TypeScript
45 lines