Phase 1: Next.js 16 + Tailwind v4 + D3 + Supabase scaffold. Mock data only.
npm run dev # http://localhost:3000
npm run build # production build check- Create a project at supabase.com
- Enable pgvector: in the SQL editor run
create extension if not exists vector; - Run
supabase/migrations/0001_init.sqlin the SQL editor - Copy your project URL and anon key from Settings → API
git pushto GitHub- Import repo in Vercel
- Set env vars:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_KEY
- Deploy
- Semantic Scholar API integration (
/api/session/create) - JS DBSCAN clustering via
density-clustering(inline in Next.js API route) - Isolation Forest for outlier detection
- Real graph data replacing
lib/mockGraph.ts