Remb is a Next.js app for managing project context, with GitHub OAuth support for importing repositories into the dashboard.
Create a GitHub OAuth App with these localhost settings:
- Homepage URL:
http://localhost:3000 - Authorization callback URL:
http://localhost:3000/api/auth/github/callback
Then copy .env.example to .env.local and fill in your credentials:
cp .env.example .env.localRequired variables:
GITHUB_CLIENT_ID=your_github_oauth_client_id
GITHUB_CLIENT_SECRET=your_github_oauth_client_secret
NEXT_PUBLIC_APP_URL=http://localhost:3000For scanning, also set:
OPENAI_API_KEY=your_openai_keyOptional: free local embeddings for testing (via Ollama)
EMBEDDING_PROVIDER=local
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_EMBEDDING_MODEL=nomic-embed-textThen run Ollama locally:
ollama pull nomic-embed-text
ollama serveNote: feature extraction still uses OpenAI (gpt-4o-mini) in the current implementation.
pnpm installpnpm devOpen http://localhost:3000.
- The authorize redirect is handled in app/api/auth/github/route.ts.
- The callback exchange is handled in app/api/auth/github/callback/route.ts.
- GitHub API helpers live in lib/github.ts.
The current OAuth request asks GitHub for read:user and repo access so the app can read the connected user's profile and repositories.