MCPcopy Index your code
hub / github.com/better-auth/better-hub

github.com/better-auth/better-hub @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,335 symbols 5,749 edges 465 files 45 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Better Hub

Better Hub

Re-imagining code collaboration — a better place to collaborate on code, for humans and agents.

Why

At Better Auth, we spend a lot of our time on GitHub. So we decided to build the experience we actually wanted. Better Hub improves everything from the home page to repo overview, PR reviews, and AI integration — faster and more pleasant overall.

Features

  • Repo overview — cleaner layout with README rendering, file tree, activity feed
  • PR reviews — inline diffs, AI-powered summaries, review comments
  • Issue management — triage, filter, and act on issues faster
  • Ghost (AI assistant) — review PRs, navigate code, triage issues, write commit messages (⌘I to toggle)
  • Command center — search repos, switch themes, navigate anywhere (⌘K)x
  • CI/CD status — view workflow runs and compare across branches
  • Security advisories — track vulnerabilities per repo
  • Keyboard-first — most actions accessible via shortcuts
  • Browser extension — adds a "Open in Better Hub" button on GitHub pages (Chrome & Firefox supported)

Contributing

See CONTRIBUTING.md for development setup, PR workflow, and code style guidelines.

License

MIT

Extension points exported contracts — how you extend this code

HastElement (Interface)
Custom markdown components for Ghost AI responses. * Rewrites github.com links to internal app routes. * Adds copy b
apps/web/src/components/shared/ai-chat.tsx
SearchRepo (Interface)
(no doc)
apps/web/src/components/command-menu.tsx
SearchUser (Interface)
(no doc)
apps/web/src/components/command-menu.tsx
AccountInfo (Interface)
(no doc)
apps/web/src/components/command-menu.tsx
AccountsData (Interface)
(no doc)
apps/web/src/components/command-menu.tsx

Core symbols most depended-on inside this repo

cn
called by 689
apps/web/src/lib/utils.ts
getOctokit
called by 98
apps/web/src/lib/github.ts
formatNumber
called by 64
apps/web/src/lib/utils.ts
asString
called by 56
apps/web/src/lib/github.ts
getErrorMessage
called by 56
apps/web/src/lib/utils.ts
delete
called by 50
apps/web/src/lib/image-upload.ts
readLocalFirstGitData
called by 39
apps/web/src/lib/github.ts
useMutationEvents
called by 38
apps/web/src/components/shared/mutation-event-provider.tsx

Shape

Function 1,879
Interface 440
Class 8
Method 8

Languages

TypeScript100%

Modules by API surface

apps/web/src/lib/github.ts295 symbols
apps/web/src/components/pr/pr-diff-viewer.tsx44 symbols
apps/web/src/lib/repo-data-cache.ts35 symbols
apps/web/src/components/shared/ai-chat.tsx26 symbols
apps/web/src/components/repo/repo-overview.tsx25 symbols
apps/web/src/app/api/ai/ghost/route.ts24 symbols
apps/web/src/lib/prompt-request-store.ts22 symbols
apps/web/src/lib/chat-store.ts22 symbols
apps/web/src/app/(app)/repos/[owner]/[repo]/pulls/pr-actions.ts21 symbols
apps/web/src/components/command-menu.tsx19 symbols
apps/web/src/app/(app)/repos/[owner]/[repo]/issues/actions.ts19 symbols
apps/web/src/lib/github-sync-store.ts18 symbols

Datastores touched

placeholderDatabase · 1 repos

For agents

$ claude mcp add better-hub \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact