ENGINEERING 55 upvotes 2015

How I built ghit.me, hit count badges for GitHub

55 pts
Hacker News Signal
2015 · Shared by @benwilber0
How I built ghit.me, hit count badges for GitHub by @benwilber0

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2015), @benwilber0 shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (18 total discussions):

HF @hfaran Peer Contributor

For anyone that is unaware, "hit count" functionality has been present in GitHub for at least several months. If you're the owner of a repository, you can view it at https://github.com///graphs/traffic ↗ which gives you a breakdown of visitors, clones, referring sites, and which pages within your repository are popular.

ZE @zeeshanm Peer Contributor

If anyone's trying to use ghit.me - beware that api rate limit from github is preventing the tool from working. May be, try again:

``` { "message": "API rate limit exceeded for 107.170.25.70. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)", "documentation_url": "https://developer.github.com/v3/#rate-limiting" ↗; } ```

AK @akerl_ Peer Contributor

How does this deal with GitHub's caching of images?

https://github.com/blog/1766-proxying-user-images ↗

They refer to it as "proxying", but they also call out that it proxies using their CDN, which seems to imply there isn't a 1:1 relationship between user requests and hits on the backend server

HISTORICAL ERA Cloud & Mobile Era (2014–2019)
COMMUNITY SCORE 55 points
TOTAL DISCUSSIONS 18 comments
TOPICS & TECH STACK: