Last updated: 2026-04-26
- ✅ Full app built locally (dashboard, notes, calendar, graph, settings)
- ✅ Smart multi-format date parser
- ✅ Per-line edit history
- ✅ Storage abstraction with IdbAdapter (local) + SupabaseAdapter (cloud)
- ✅ Magic-link auth via Supabase (AuthGate)
- ✅ SQL migration ready at
supabase/schema.sql - ✅
vercel.jsonready for SPA deploy - ✅ Pushed to https://github.com/SAMBAn1/Cortex through commit
c60f255(Track A) - ⏳ One local commit (Supabase work) not yet pushed
- ⏳ Supabase project not yet created
- ⏳ Vercel project not yet created
The PAT-in-command-line method is flagged in this session. Use one of:
Option A — store the PAT once with git credential helper:
cd /c/Users/galac/Desktop/Cortex
git config --global credential.helper store
echo "https://x-access-token:<PASTE_PAT_HERE>@github.com" > ~/.git-credentials
git push origin mainOption B — set the remote URL with the PAT embedded (less secure but quick):
cd /c/Users/galac/Desktop/Cortex
git remote set-url origin https://x-access-token:<PASTE_PAT_HERE>@github.com/SAMBAn1/Cortex.git
git push origin main- Go to https://supabase.com → sign in → New project
- Name
cortex, pick region, save DB password - Wait for provisioning (~2 min)
- Project Settings → API → copy:
- Project URL (e.g.
https://xxxxx.supabase.co) anonpublickey (long JWT)
- Project URL (e.g.
- In Supabase, open SQL Editor → New query
- Paste contents of
supabase/schema.sql - Click Run
- Verify tables exist under Table Editor:
notes,edits,versions,settings
- https://vercel.com → sign in with GitHub
- Add New → Project → import
SAMBAn1/Cortex(authorize Vercel for the repo) - Framework auto-detects as Vite. Don't change build settings.
- Environment Variables add:
VITE_SUPABASE_URL= your Supabase project URLVITE_SUPABASE_ANON_KEY= anon key
- Click Deploy
- Once green, copy the production URL (e.g.
cortex-xxx.vercel.app)
- In Supabase → Authentication → URL Configuration
- Site URL: set to your Vercel URL
- Redirect URLs: add the Vercel URL too (and
http://localhost:5173for local dev)
- Visit Vercel URL → see magic-link login screen
- Sign in → seed notes appear → edit one → confirm it persists across browsers/devices
- Open Settings → paste Anthropic API key → AI panel works
- Repo: https://github.com/SAMBAn1/Cortex (private)
- Project path:
C:\Users\galac\Desktop\Cortex - Commit identity:
ccc <70046077+SAMBAn1@users.noreply.github.com> - Local dev:
npm run dev→ http://localhost:5173/
index.ts— factory: returnsSupabaseAdapterwhen env vars set, elseIdbAdaptertypes.ts—StorageAdapterinterface,Note,NoteEdit,NoteVersion,AppSettingsidb-adapter.ts— IndexedDB implementationsupabase-adapter.ts— Postgres-backed via @supabase/supabase-js, scoped toauth.uid()via RLS
- In cloud mode (env vars present), wraps app and shows email magic-link screen until signed in
- In local mode (no env vars), passes through immediately
The IDB adapter still works locally with no Supabase. Same code, different backend. Useful for dev without internet.
- Bundle is ~1.7MB ungzipped — code-split CodeMirror, Cytoscape (removed), force-graph for faster first paint
- Add a "Migrate IDB → Supabase" button in Settings so existing local users can upload their notes
- Tauri shell for desktop install
- Recurring tasks
- Note templates