Show HN: Loading GitHub PRs in 50ms instead of 1–3s+

theolundqvist2 pts0 comments

I review a lot of PRs, now more than ever. My day is basically spent on github.com. And oh do they make you work for it. Click a PR — wait. Open the diff — wait. Back to the description? — wait. I can feel my cholesterol rising.What bothered me most is that nothing on those pages is new. The PR was pushed hours ago, the diff hasn t changed, and I m waiting for a server to reassemble a page I ve often already seen. Why can’t they just put a cache in front?? So I built my own on SQLite, with webhooks to invalidate and an Electron app for UI. PRs load in ~20 milliseconds, diffs are instant, there’s a global keybind for searching PRs, and I can add sweet features like collapsing all test files by default. Unexpectedly, all my agents can now listen for changes on the same database instead of polling GitHub and using up all my hourly quota, win-win! Been using it for months and can’t go back. Happy to answer any questions below.

github wait instead diff back using

Related Articles