shadcn-github
About
A GitHub repository browser built with Next.js and shadcn/ui
shadcn-github.vercel.appNo license
0stars
0watching
0forks
Releases 150
GitHub CLI 2.39.2
last week
GitHub CLI 2.39.1
last month
maxwisemanchore: update readme
372c891
README.md
shadcn-github
A GitHub repository browser built with Next.js and shadcn/ui. Search and explore GitHub repositories with syntax-highlighted code preview, pull requests, issues, and an interactive file tree.
Features
- Repository search - Find any GitHub repository by name
- Code browsing - Navigate files with an interactive file tree and syntax-highlighted code preview
- Pull requests - View pull request details and file diffs
- Issues - Browse and read repository issues
- Dark mode - Light and dark theme support
- Demo mode - Configure predefined repositories for showcasing without hitting API rate limits
Tech Stack
- (App Router, React Server Components)
- with React Compiler
- component library
- for GitHub API
- for authentication
- with PostgreSQL (Neon)
- monorepo
Getting Started
Open to use the app.
Project Structure
Scripts
| Command | Description |
|---|---|
bun run dev | Start all apps in development mode |
bun run build | Build all packages and apps |
bun run check-types | TypeScript type checking |
bun run check | Lint and format check |
bun run fix | Auto-fix lint and format issues |
bun run db:push | Push schema changes to database |
bun run db:studio | Open Drizzle Studio |
Environment Variables
| Variable | Required | Description |
|---|---|---|
DATABASE_URL | Yes | PostgreSQL connection string |
BETTER_AUTH_SECRET | Yes | Auth secret (32+ characters) |
BETTER_AUTH_URL | Yes | App URL for auth |
GITHUB_TOKEN | No | GitHub PAT for higher rate limits |
DEMO_REPOS | No | Comma-separated owner/repo list for demo mode |