Browse by type
This repository contains the next-generation version of ChatDouble with a modern web app architecture.
backend/: FastAPI backend for auth, Supabase access, bot embeddings, Gemini chat generation, and credit management.frontend/: Next.js App Router frontend with Supabase auth, bot upload, chat UI, and purchase flows.pgvector embedding searchCreate backend/.env with:
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=your-service-role-key
GOOGLE_API_KEY=your-gemini-api-key
Then run:
cd backend
python -m pip install -r requirements.txt
python main.py
The backend listens on http://127.0.0.1:8000.
Create frontend/.env.local with:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
Then run:
cd frontend
npm install
npm run dev
Open http://localhost:3000.
Backend (backend/.env):
SUPABASE_URLSUPABASE_SERVICE_KEYGOOGLE_API_KEYFrontend (frontend/.env.local):
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYChatDouble/
+-- backend/
� +-- auth.py
� +-- main.py
� +-- supabase_client.py
� +-- utils.py
� +-- requirements.txt
+-- frontend/
� +-- src/app/page.tsx
� +-- src/lib/supabaseClient.ts
� +-- tsconfig.json
+-- README.md
+-- .gitignore
SUPABASE_SERVICE_KEY for server-side Supabase access.profiles, bots, embeddings, and transactions.match_bot_embeddings RPC function in Supabase.MIT
$ claude mcp add ChatDouble \
-- python -m otcore.mcp_server <graph>