The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Mocking up a basic supabase-js instance for further iteration
Copple684524b43b23
diff --git a/libraries/supabase-js/src/index.js b/libraries/supabase-js/src/index.jsindex 297611e5996..65428c0e94e 100644--- a/libraries/supabase-js/src/index.js+++ b/libraries/supabase-js/src/index.js@@ -1,3 +1,46 @@+++class SupabaseClient {+ constructor(supbaseUrl, supabaseKey, options) {+ this.listeners = []+ this.supbaseUrl = supbaseUrl+ this.supabaseKey = supabaseKey+ }++ /**+ * @todo+ */+ subscribe () {+ this.listeners.push()+ }+}++/**+ * Instantiate a new Supabase Client+ * @param supbaseUrl+ * @param supabaseKey+ * @param options+ */+const createClient = (supbaseUrl, supabaseKey, options = {}) => {+ return new SupabaseClient(supbaseUrl, supabaseKey, options)+}++export { createClient }++++/**+ *+ *+ *+ *+ * REMOVE BELOW+ *+ *+ *+ *+ *+ */const defaultAwesomeFunction = (name) => {const returnStr = `I am the Default Awesome Function, fellow comrade! - ${name}`;return returnStr;