Overview
The page displays all repositories you have access to through your GitHub installation, separated into two sections:- Connected: Repositories actively receiving AI reviews
- Available: Repositories you can connect
Nectr automatically fetches your repositories when you install the GitHub App. The list updates when you authorize additional repos.
Repository Cards
Each repository is displayed as a card with:Basic Information
- Repository Icon: Branch icon (amber for connected, gray for available)
- Full Name:
owner/repo-namein monospace font - Visibility Badge: Lock icon (private) or globe icon (public)
- Description: Repository description from GitHub
- Last Updated: Date of last activity (e.g., “Updated Mar 8”)
Connection Status
Connected repositories show:- Green “Connected” badge with checkmark icon
- Rescan button: Rebuilds the Neo4j knowledge graph
- Disconnect button: Red secondary button to remove connection
- Connect button: Primary amber button to activate AI reviews
Connecting a Repository
What Happens When You Connect?
- Webhook Setup: Nectr registers a webhook for PR events (
opened,synchronize,reopened) - Knowledge Graph Build: The codebase is indexed into Neo4j for contextual understanding
- File Analysis: Source code files are analyzed for structure and dependencies
- Ready State: The repository is marked as connected and ready to review PRs
Rescan Function
Connected repositories include a Rescan button that:- Rebuilds the Neo4j knowledge graph with latest codebase changes
- Re-indexes all files and dependencies
- Updates contributor statistics
- Shows a toast notification with file count: “Graph built — 1,234 files indexed into Neo4j”
When to Rescan
After major refactors
After major refactors
If you’ve restructured your codebase, rescan to update the knowledge graph with new file paths and dependencies.
New team members
New team members
Rescan after new contributors join to include their profiles in team analytics.
Stale data
Stale data
If analytics seem outdated, a rescan ensures fresh data from GitHub’s API.
Disconnecting a Repository
Info Banner
The page includes an informational banner explaining how Nectr works:How it worksConnect a repo to install a GitHub webhook. Nectr will automatically review every PR opened on that repo, post AI feedback, and build a knowledge graph of your codebase.
Page Header
The header shows:- Title: “Code Providers”
- Stats:
X connected · Y total repositories - Refresh Button: Manually refetch repositories from GitHub
Loading States
While fetching repositories, the page displays:- 6 skeleton cards with animated loading effect
- Background color:
#1a1a1a - Height:
80pxper skeleton
Error Handling
If the API request fails, an error card displays:- Red border and background (
danger/5) - Error message from API response
- Retry button to refetch repositories
Empty States
All Repos Connected
If all available repositories are already connected:No Repositories
If you haven’t authorized any repositories:- Go to your GitHub App installation settings
- Grant repository access to Nectr
- Return to this page and click Refresh
Visual Design
Connected Cards
- Border: Amber glow (
border-amber/20 shadow-amber-glow) - Hover: Brighter amber border (
border-amber/30) - Icon Background: Amber tint (
bg-amber/10)
Available Cards
- Border: Standard border (
border-surface-border) - Hover: Subtle amber tint (
hover:border-amber/30) - Icon Background: Gray (
bg-surface-subtle)
Keyboard & Accessibility
- All buttons are keyboard accessible
- Loading states show spinner icons
- Disabled buttons have reduced opacity
- Toast notifications for all actions
Technical Details
API Endpoints
GET /api/repos- Fetch all repositoriesPOST /api/repos/{owner}/{repo}/install- Connect repositoryDELETE /api/repos/{owner}/{repo}/uninstall- Disconnect repositoryPOST /api/repos/{owner}/{repo}/rescan- Rebuild knowledge graph
Data Model
Best Practices
Start Small
Connect one repository first to test Nectr’s reviews before scaling to your entire org.
Rescan Regularly
Run a rescan monthly or after major codebase changes to keep analytics accurate.
Monitor Webhooks
Check GitHub’s webhook delivery logs if reviews aren’t triggering.
Review Permissions
Ensure Nectr has read access to repository contents and write access for PR comments.