Skip to content

Add github-watchers column for latest stargazers and forks - #18

Closed
aaronjmars wants to merge 1 commit into
mainfrom
github-watchers-column
Closed

aaronjmars wants to merge 1 commit into
mainfrom
github-watchers-column

Conversation

@aaronjmars

Copy link
Copy Markdown
Collaborator

Summary

  • New github-watchers column type: latest stargazers and forks for any GitHub repo, with a stars / forks / both mode toggle.
  • Uses GitHub GraphQL with STARRED_AT DESC when GITHUB_TOKEN is set; falls back to REST + Link header walk for newest-first stargazers when keyless. Forks use REST ?sort=newest.
  • both mode fans out via Promise.allSettled and interleaves by event time newest-first (no cursor — divergent timelines).
  • Keyless out of the box (60 req/hr); upgrades to 5000/hr + GraphQL when GITHUB_TOKEN is set.

Files

  • lib/columns/plugins/github-watchers/{plugin,server,client}.tsx — full plugin contract.
  • lib/integrations/github.ts — adds normalizeGitHubRepo, fetchStargazers, fetchForks.
  • manifest.ts, registry.ts, server-registry.ts — registration.

Test plan

  • npm run build clean (TypeScript + parity check pass).
  • npx eslint clean on changed files.
  • Add the column with vercel/next.js and mode = both, confirm interleaved stars + forks.
  • Toggle mode = stars and click Load more — verify newest-first ordering and pagination, both keyless and with GITHUB_TOKEN.
  • Toggle mode = forks and click Load more — verify newest-first.
  • Try a repo with no forks / few stars and a private/missing repo — verify error surfacing.

🤖 Generated with Claude Code

Single plugin with stars/forks/both mode. Uses GitHub GraphQL with
STARRED_AT DESC when GITHUB_TOKEN is set; falls back to REST + Link
header walk for newest-first stargazers when keyless. Forks use REST
sort=newest. "both" mode fans out and interleaves by event time.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
aaronjmars added a commit that referenced this pull request Apr 30, 2026
Consolidates the 15 stacked column-type PRs into a single merge:
instagram, rednote, hacker-news-search, github-search, tiktok,
weibo-search, substack, linkedin, facebook, github-backlinks,
wallet-tx, github-prs, telegram-search, app-reviews, github-watchers.

The 3 registry files (manifest, client registry, server registry) are
rewritten to register all new plugins; lib/integrations/github.ts
combines the additive sections from #7, #15, #18; hackernews.ts and
xai.ts pick up the appends from #6 and #12. Build + lint pass.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aaronjmars

Copy link
Copy Markdown
Collaborator Author

Superseded by #19, which consolidates all 15 stacked column plugin PRs into one merge.

@aaronjmars aaronjmars closed this Apr 30, 2026
@aaronjmars
aaronjmars deleted the github-watchers-column branch April 30, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant