supabase/supabase-js ? reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript JavaScript client for Supabase that works in the browser and in Node, and lets me connect to a project, sign users in, query tables, call RPC functions, subscribe to realtime changes, upload and download files, and invoke edge functions.
I want it to feel simple to use from normal app code, with one main client plus smaller pieces for auth, database, storage, realtime, and functions. Please include a few clear examples in the repo, and make sure the public API is typed well so people get good autocomplete and helpful errors.
Keep it compatible with modern runtimes like browsers, Node, Bun, Deno, and React Native where possible. If you need to check current docs or behavior details online, go ahead and do that. Also make sure the package builds cleanly and has tests for the main flows.