[Level 3 / Hard] Implement Incremental GitHub GraphQL Sync with Rate-Limit Backoff & ETag Caching

Open
#4,008 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@bhavesh-patil2007 is already working on this.

Since Dec 2, 2026.

  • #4011 by @bhavesh-patil2007 — closed without merging

Assessment

This issue has not been assessed yet.

Description

status:assigned

Difficulty

Level 3 (Hard)

Problem Statement

Full-history GitHub API fetches on every dashboard refresh hit rate limits quickly and increase latency for active developers with large repository histories.

Proposed Solution

  • Implement an incremental sync worker using GitHub GraphQL cursors and conditional HTTP requests (ETag / If-None-Match).
  • Persist sync checkpoints per user/repository in PostgreSQL/Supabase.
  • Add exponential backoff with jitter when approaching X-RateLimit-Remaining thresholds.
  • Expose sync status and last-synced timestamps in the dashboard UI.

Acceptance Criteria

  • Incremental sync only fetches events/commits/PRs since the last stored cursor.
  • Rate-limit headers are tracked and respected with automatic backoff.
  • Unit and integration tests cover cursor persistence, 304 Not Modified handling, and rate-limit recovery.
Dominant language
TypeScript
Stars
246
Forks
436
Avg merge
9h 33m
Merged PRs (30d)
213

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Priyanshu-byte-coder/devtrack

All issues in Priyanshu-byte-coder/devtrack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.