8000 GitHub - kcosr/gh-dash: Self-hosted dashboard for activity across your GitHub and GitLab repositories · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

kcosrPublic

About

Self-hosted dashboard for activity across your GitHub and GitLab repositories

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

gh-dash

A local dashboard for your GitHub and GitLab work. Pull and merge requests, issues, commits, releases and stars across all your repositories, in one fast view. It's also a private place to review diffs with comments, on your own or together with a coding agent.

Everything is synced to a database on your own machine. gh-dash only reads from GitHub and GitLab: it never posts, comments or changes anything there.

Activity timeline

Pull requests view with the details panel open Repositories grid Insights charts
Pull requests Repositories Insights

A split diff with a comment thread: your question, and an agent's answer marked "agent"

Features

  • Everything in one place. Pull requests (merge requests on GitLab), issues, a combined activity timeline, your repositories and charts of how they're doing. It covers GitHub, gitlab.com and self-managed GitLab. Switch between GitHub, GitLab and All at the top.
  • Review diffs privately. Open any pull request's or commit's diff, or a pushed branch's before it has a pull request, and comment on a line, a range, a file or the whole change. Reply and resolve as you go. The Comments tab lists every thread, so nothing gets lost. Comments stay in gh-dash.
  • Work with coding agents. Claude Code, Codex and other MCP clients can read your comments, answer them, fix the code and leave review notes of their own. Everything an agent does is marked as its own and shows up in Activity. See Agents.
  • Track what matters. Repositories you own are followed automatically. Add any other one, such as your organization's or a project you contribute to, and remove it again whenever you like.
  • Quick to get around. Search everything with Ctrl/⌘ K, and move through lists with j/k. Saved views and each tab remember how you left them.
  • Desktop app or server. Run it CFD1 as an app on macOS, Windows or Linux, or as a small server you open in a browser.
  • Export and API. Copy lists as Markdown or CSV, or use the documented JSON API.

Getting started

You need Node.js 22.13 or newer to build gh-dash from source.

git clone https://github.com/kcosr/gh-dash.git
cd gh-dash
npm ci

Desktop app

npm run desktop        # build and run the app from the checkout
npm run dist:desktop   # or build an installer for this computer into release/

dist:desktop makes a .dmg and .zip on macOS, an installer on Windows, and an AppImage and .deb on Linux. For just an Apple silicon .dmg, run npm run build && npx electron-builder --mac dmg --arm64 --publish never.

The builds aren't signed yet. The first time you open one on macOS, allow it under System Settings → Privacy & Security → Open Anyway.

When the app opens, go to Settings → Sources. Connect GitHub with the GitHub CLI or a token, and add GitLab if you use it. The first sync starts by itself. More in Desktop app.

Server, in a browser

npm run build
npm start

Open http://127.0.0.1:4780. gh-dash uses the GitHub CLI if you've run gh auth login, or a token from GITHUB_TOKEN or a token file. See Running the server for every setting, GitLab sources and deployment.

Tokens

gh-dash only needs read access.

Host Recommended Notes
GitHub The GitHub CLI (gh auth login), or a token A fine-grained token needs All repositories with read access to Metadata, Contents, Pull requests and Issues. It covers one owner's private repositories only; a classic token or the CLI covers every organization you belong to.
GitLab A token with the read_api scope, or the GitLab CLI (glab auth login) gh-dash warns when a token can also change things (the api scope) or expires within two weeks. Create a read-only token in Settings opens GitLab's token page already filled in.

The first sync fetches the last year of activity. You can follow its progress at the top of the window.

A quick tour

The tabs

Tab What's there
PRs & MRs Pull and merge requests by state, author and date. Enter opens the details panel, and d the diff.
Issues Open or closed issues, with their descriptions.
Comments Every comment thread, on PRs, branches and commits. Filter to unresolved, resolved or all, by who wrote them, or to threads waiting on you. Group and sort them as you like. Enter opens the diff right at the thread.
Repositories The repositories you track, as a grid or a list, inactive ones last. Pin, add or remove them, or mark them active or inactive.
Activity One timeline of commits, pull requests, issues, releases, stars and comments. Click a day in the strip to jump to it.
Insights Charts of activity, contributors and trends.

The switcher at the top left chooses GitHub, GitLab or All when you have both. Each one remembers where you were. Repositories takes you back to the repository you were looking at; clicked again on its page, it goes to the list.

Choosing repositories

The sidebar decides which repositories every tab shows.

  • Click a repository to focus on it, or use the checkboxes to build a selection. Clicking a repository's name anywhere in a list does the same.
  • Active goes back to the default: the active repositories, the sidebar's main list. A repository is active while it has open pull requests, issues or comment threads, activity in the last six months, or a pin; archived ones, and forks unless Settings includes them, are not. Show inactive, under the list, lets you pick the rest too. None clears the selection, and Pinned selects the pinned ones.
  • A repository's menu (or the button on its page) sets it Automatic (the rule above), Active or Inactive, to keep a quiet one in the list or leave a busy one out.
  • All / Mine / Others shows every repository, the ones you own, or the ones you added. The filter button next to the search box narrows them by visibility.
  • + adds a repository: pick one your token can read, or paste owner/name, a GitLab group/project or a URL. With GitLab set up, a small picker chooses where to look. gh-dash checks access and shows what the first sync will fetch before adding it. Remove… in a repository's menu stops following it; nothing changes on GitHub or GitLab.
  • Drag the sidebar's edge to resize it, or hide it with [. The details panel on the right resizes the same way.

Diffs and comments

  • Opening a diff. Use Files changed in a pull request's details, press d in the list, or click a commit's SHA. Switch between unified and split views, wrap long lines, and expand the unchanged code around a change. Show full file in a file's header reveals all its unchanged lines while keeping your place, the diff, and its comments. Show changes only returns to the patch. The arrows in the file header jump between changes in either mode and follow the file list filter when crossing into another file. The pull or merge request number in the diff header opens its details. Fold resolved folds the code referenced by collapsed resolved threads. Click the thread summary to reveal it again.
  • Finding code. Open Find in file with the magnifier or Ctrl/⌘ F. It searches both sides of the current file, including revealed context. Use Enter and Shift Enter to step through matches, and Esc to close.
  • Reviewing a branch. A pushed branch can be reviewed before it has a pull request: pick it from Branches on its repository's page, or with Review a branch… in the Ctrl/⌘ K palette. Its diff is against the default branch, as a pull request's would be. Its comments carry over to pull requests later opened from it. Once a pull request from the branch is merged, the branch starts afresh.
  • Commenting. Hover a line and click +, or drag over line numbers for a range. You can also comment on a whole file or the whole change. Comments are Markdown. A comment you haven't sent yet is kept as a draft if you close the diff, reload or switch views.
  • Keeping track. Reply, resolve and reopen threads. Press c for the comments column and n/p to step through unresolved threads. Threads made on an earlier push move to the same lines in the new code, or are marked outdated if the lines are gone.
  • Finding them again.
    • The PR list and Activity show a comment count.
    • The PR list's Comments filter shows only PRs with comments, or with unresolved ones.
    • The Comments tab lists them all.
    • Copy as Markdown hands a review to someone else, or to an agent.

Keyboard shortcuts

Where Keys
Anywhere Ctrl/⌘ K search and commands · / filter · [ show or hide the sidebar · Esc close
PR list j/k move · Enter details · d diff · o open on GitHub or GitLab
Comments tab j/k move · Enter open in the diff · Space show the conversation · e resolve or reopen · o open on GitHub or GitLab
Diff Ctrl/⌘ F find in file · j/k files · n/p unresolved threads · r reply · e resolve · c comments column · s split view · w wrap

Views, exports and settings

  • Links and saved views. Every filter lives in the page's address, so a link brings you back to exactly that view. Save one from the sidebar (+ under Saved views), and find it again in the search. Each tab also remembers its own settings.
  • Exports. Lists can be copied as Markdown or CSV. The API button shows the same data as an API URL.
  • Settings covers:
    • your GitHub and GitLab sources and tracked repositories;
    • sync (how often, and how far back);
    • your other commit emails, so those commits count as yours;
    • the diff cache;
    • agents;
    • the desktop app's Local API.

Working with agents

Coding agents can join your reviews through MCP:

  • they answer the questions you leave in a diff and fix what you point out;
  • they review code themselves and leave comments for you to pick up.

Each agent has its own token, and what it writes is shown as its own. An agent can reach a repository through gh-dash when the repository allows agents and the agent's source scope includes its host. Manage repository access in Settings → Sources or on the server with agents repository-access.

  1. Add an agent. In the desktop app, go to Settings → Agents → Add agent. On a server, run node dist/server/index.mjs agents add Claude.
  2. Register it. Paste the setup line shown there into Claude Code or Codex, for example:
    claude mcp add -s user --transport http gh-dash http://127.0.0.1:4780/mcp --header "Authorization: Bearer <token>"
  3. Ask it. For example: "Check gh-dash for my comments on this branch's PR, answer or fix them, and wait for my replies."

The whole guide, with Codex setup, the tools and the options, is in Agents.

Your data

  • Read-only towards GitHub and GitLab. gh-dash never posts, comments or changes anything there. Comments, including agents', stay in gh-dash.
  • On your machine. The desktop app keeps its data in its own folder (see Desktop app). A server uses ~/.local/state/gh-dash/ unless configured otherwise.
  • Tokens stay out of the database. They come from the GitHub or GitLab CLI, an environment variable or a token file. The desktop app can also keep a pasted token, encrypted with your system keychain. Agent tokens are stored only as a hash; the desktop app also keeps them, encrypted with the keychain, to show them again.
  • Upgrades are one-way. Some new versions upgrade the database, and older versions can't open it afterwards. Copy the data folder first if you might go back.
  • The diff cache holds diffs you've opened, up to 200 MB by default. It can be cleared at any time in Settings → Diff cache.

More documentation

  • Desktop app: installing, accounts, the Local API, where files live.
  • Running the server: settings, GitLab sources, deployment, security, the API.
  • Agents: connecting Claude Code and Codex, and the MCP tools.
  • The API reference is served by gh-dash itself at /api/docs.

Development

npm run dev        # API on :4780, web app on :5173 (tsx watch + Vite)
npm run typecheck
npm test
npm run build      # web app, plus the bundled server and desktop main process in dist/
npm run desktop    # build, then run the desktop app
npx playwright install chromium
npm run test:browser # production web build with synthetic API fixtures

The browser suite checks desktop and mobile layouts, both themes, pane resizing, keyboard/focus behavior, repository navigation and the command palette. Its API responses are fixtures: it does not connect to GitHub/GitLab or validate provider credentials. The Node tests cover the server, shared logic and desktop modules.

Shared Workbench UI

Common controls, theme tokens, overlays and pane resizing come from workbench-ui. The committed copy is web/src/workbench/; its exact source revision is recorded in VENDORED.md. No sibling checkout is needed to build or run gh-dash. Repository workflows, provider-specific search, diff review and mobile page composition stay in gh-dash.

npm run check:workbench verifies the copied files against their recorded SHA-256 checksums. Both typecheck and build run it. Change reusable UI in the kit first, then copy a committed revision using its scripts/vendor.mjs command. The updater checks the existing copy against its pinned Git tree and refuses to overwrite modified, missing or added files. It also supports a read-only --check against that Git history. Commit the resulting source, provenance and checksum files together, then run the application tests and browser suite before accepting an update. Do not edit files inside web/src/workbench/ directly.

License

MIT.

About

Self-hosted dashboard for activity across your GitHub and GitLab repositories

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0