Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
feat: add frontend Supabase client initialised from Vite env variables
valzor966eaf7fbf62
diff --git a/frontend/src/lib/supabase.js b/frontend/src/lib/supabase.jsnew file mode 100644index 0000000..cc6a4ad--- /dev/null+++ b/frontend/src/lib/supabase.js@@ -0,0 +1,10 @@+import { createClient } from '@supabase/supabase-js';++const url = import.meta.env.VITE_SUPABASE_URL;+const anonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;++if (!url || !anonKey) {+ throw new Error('Missing VITE_SUPABASE_URL or VITE_SUPABASE_ANON_KEY in environment');+}++export const supabase = createClient(url, anonKey);