GitHub oracle

Turn your GitHub profile into magic cards!

Visit
GitHub oracle banner

About

## Challenges we ran into

**1. GitHub API rate limits on a shared infrastructure** The single hardest constraint. The public GitHub API allows only 60 requests per hour per IP without authentication — and the hackathon's shared preview environment meant a single IP was shared across all visitors and judges. The first end-to-end test exhausted the quota instantly, returning 429 before any card could render.

How I solved it elegantly — a four-layer defense:

Tiered in-memory caching. Profiles/repos cache for 30 min, commit events for 3 min, and fully-generated destiny cards for 1 hour. Repeat reads of the same user drop from ~5s to 46ms, bypassing GitHub entirely. GraphQL consolidation. When a token is available, I fetch profile + 100 repos + primary languages in one GraphQL query instead of two REST calls — cutting quota usage by a third. Graceful degradation. The commit-events fetch is skipped entirely when the remaining quota drops below 3, so the next visitor always gets a card (just without commit-based achievements). The events API is also wrapped in a soft-fail: any error returns an empty analysis instead of crashing the pipeline. A guided rate-limit dialog. When the limit is truly hit, the UI shows a themed modal — "The Oracle's Sight Is Dimmed" — with a live countdown to reset and two paths: Log in with GitHub (OAuth, unlocks a personal 5,000/hour quota) or Wait & retry. After login, the pending generation auto-retries. This turned a hard failure into a polished, on-brand moment.

**2. Getting structured JSON out of an LLM — reliably** The oracle needs the AI to return strict JSON (description, abilities, fortune, prediction). In practice the model would sometimes wrap output in markdown fences, add preamble text, or omit a field.

The fix: a defensive extractJson() that strips code fences, isolates the first { … } block, validates each field's type, and — on any failure — falls back to a deterministic lore generator that branches on commit cadence (e.g. high momentum → "a roaring river… great works shall flow"). The card always renders, even if the AI oracle goes silent.

**3. Commit-pattern analysis from a noisy events API** GitHub's public events endpoint returns up to 100 recent events of mixed types (push, star, fork, comment…), with commit counts nested inside PushEvent payloads. Deriving meaningful signals — commits/week, peak hour, weekend ratio — required careful aggregation and language attribution via a repo-name → language map built from the repos fetch. Timezone handling was especially fiddly: getHours() uses the server's locale, so I standardized on UTC-normalized parsing and documented the assumption.

**4. 3D card physics without a 3D library** I wanted a premium, mouse-tilt-and-flip card using only Framer Motion — no Three.js weight. The challenges: keeping the glare overlay's useTransform at the top level of the component (calling hooks inside JSX props breaks React's rules-of-hooks lint), managing backface-visibility across the flip, and ensuring the inner flip layer's rotateY didn't fight the outer tilt's rotateX/rotateY. Solved with nested preserve-3d containers and a single spring-driven motion-value pipeline.

**5. Organizations aren't users**

The GraphQL user(login:) query returns null for organization accounts, which would falsely report "user not found." I added a REST fallback — if GraphQL returns no user, the code transparently retries via the REST /users/{login} endpoint before declaring a 404, so orgs like companies still get a reading.

**6. Keeping 60+ animated background elements performant** The living background combines ~50 twinkling stars, breathing glow orbs, drifting runes, a hue-shifting nebula, and a Ken Burns image zoom. To stay smooth I used only GPU-composited properties (transform, opacity, filter), deterministic pseudo-random positions (so React doesn't thrash on re-render), and a prefers-reduced motion media query that disables every animation for accessibility — verified at a steady 60fps with zero jank.

## The problem it solves

**The Cold Data Dilemma in Developer Profiles** Traditional developer profiles — resumes, portfolios, and raw GitHub statistics — are highly transactional and sterile. A row of repositories, a simple star counter, and a list of languages tell us *what* someone built, but never *who* they are as a builder. Existing visualizers (like contribution graphs or stat cards) are informative but lifeless, flat, and hard to distinguish from one another. This sterile approach to developer identity makes onboarding, community-building, and peer recognition feel impersonal.

**Humanizing Technical Footprints**

**GitHub Oracle** reframes a developer’s public footprint into a living, personalized mythology. By entering a username, the application reads their "aura" — analyzing repositories, languages, stars, followers, account age, and commit rhythms. It then conjures a unique 3D destiny card stamped with: * A deterministic developer archetype. * An AI-authored character lore and signature abilities. * Unlockable community achievements. * A predictive analysis of future coding habits.

By transforming a spreadsheet of metrics into an interactive narrative, GitHub Oracle demonstrates that developer-tooling UX can be emotional, aesthetic, and playful without sacrificing real engineering depth.

Screenshots

GitHub oracle screenshot 1GitHub oracle screenshot 2

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

No public repo linked, so we can't tell.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.