Chatbase
Realtime chat using GraphQL Live Queries, Next.js and NextAuth.js
Install / Use
/learn @notrab/ChatbaseREADME
Chatbase
Realtime chat using GraphQL Live Queries, Next.js and NextAuth.js — tutorial

Tools used
- NextAuth.js
- Next.js
- Apollo Client
- Grafbase
- Server-Sent Events
- GraphQL Live Queries
- GraphQL
- Tailwind CSS
Local Development
npm install- Create a GitHub OAuth App with your app details for development purposes. Make sure to set
Authorization callback URLtohttp://localhost:3000/api/auth/callback/github cp .env.example .envand add values forGITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETfrom step 2.- Generate a secret value for
NEXTAUTH_SECRETand add it to.env cp grafbase/.env.example grafbase/.env- Add the same
NEXTAUTH_SECRETtografbase/.env npx grafbase devnpm run dev
Deploy to Production
- Fork and Push this repo to GitHub
- Create an account with Grafbase
- Create new project with Grafbase and connect your forked repo
- Add environment variable
NEXTAUTH_SECRETduring project creation - Create a GitHub OAuth App with your app details for production purposes. Make sure to set
Authorization callback URLto[YOUR_DESIRED_VERCEL_DOMAIN]/api/auth/callback/github - Deploy to Vercel and add
.envvalues (NEXT_PUBLIC_GRAFBASE_API_URL*,NEXTAUTH_SECRET,GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET)
* NEXT_PUBLIC_GRAFBASE_URL is your production API endpoint. You can find this from the Connect modal in your project dashboard.
Related Skills
node-connect
330.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
330.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.3kCommit, push, and open a PR
