@unieojs/unio-supabase-shim
v0.6.11
Published
Minimal Supabase-compatible shim helpers for Unio generated apps backed by PGlite.
Readme
@unieojs/unio-supabase-shim
Minimal Supabase-compatible helpers for the Unio generic preview MVP.
The default shim database is a real PGlite instance running with
dataDir: "memory://". It can bootstrap from exported SQL, expose a small
PostgREST-compatible query surface, and persist/restore its in-memory data
directory through pluggable snapshot storage.
Implemented MVP surface:
- Auth:
signUp,signInWithPassword,getSession,onAuthStateChange - PostgREST subset:
select,eq,gte,lte,order,insert,single,delete - Same-origin handler for
/api/_supabase init.sqlbootstrap throughSupabaseShimDatabase.bootstrap()- PGlite data-dir snapshot/restore through a pluggable
SnapshotStorage - Node file-backed snapshot storage via
@unieojs/unio-supabase-shim/node
Not implemented in this MVP:
- Direct OSS credentials or runtime storage wiring
- RLS, Realtime, Storage, RPC, nested select, and full JWT semantics
