DevRoast

Your GitHub, brutally scored. Your code, publicly

Visit Repo
DevRoast banner

About

## The problem it solves

## 🔴 The Problem Traditional developer portfolios and resumes are static, boring, and notoriously difficult to verify at a glance. When recruiters or peers look at a GitHub profile, they are forced to manually click through repositories, guess the impact of the developer's work, and mentally calculate their true activity level. There is no standardized, engaging way to showcase **Proof-of-Work (PoW)** that is both objectively scored and genuinely fun to read.

## 🟢 The Solution: DevRoast

DevRoast solves this by turning static GitHub profiles into **Dynamic, Gamified Proof-of-Work Report Cards**.

By instantly aggregating live data from the GitHub REST API, our custom scoring engine calculates a weighted "Dev Score" based on pure mathematics (Impact, Activity, Versatility, and Clout). We then feed this data into a Large Language Model (Groq / Llama 3) to generate a personalized, brutally honest, and highly shareable "roast" of the developer's coding habits.

### 🛠️ What People Can Use It For:

* **For Developers (Gamification & Flexing):** Developers can scan their profiles to get an objective score on their open-source impact. The beautifully designed Bento-grid report card and AI-generated roasts are highly shareable, allowing developers to "flex" their stats (or get humbled) on platforms like X/Twitter and LinkedIn. * **For Recruiters & Hiring Managers (Instant Vetting):** Instead of manually digging through commit histories to see if a candidate is actually active, a recruiter can generate a DevRoast report in seconds. It instantly visualizes the candidate's top languages, follower clout, and repository impact all in one place. * **For Communities (Leaderboards):** The built-in global leaderboard fosters healthy competition within developer communities, encouraging engineers to push more code, contribute to open source, and increase their Dev Score to climb the ranks.

### ⚡ How It Makes Existing Tasks Easier: 1. **Eliminates Manual GitHub Auditing:** It automatically normalizes complex repository data (forks, stars, commit frequencies) into a single, digestible 0-100 metric. 2. **Removes Subjectivity:** The scoring engine is a pure, side-effect-free math function. You can't fake your Dev Score. 3. **Combines Analytics with Entertainment:** It takes the traditionally boring task of "portfolio review" and makes it engaging by wrapping it in an immersive, AI-driven roasting experience.

## Challenges we ran into

## 🐛 Challenges We Ran Into

### 1. The Tailwind JIT Compiler Silently Broke Our Dynamic Grid Layout This was the most painful bug to diagnose. Our Bento grid uses dynamic row heights — for instance, the "AI Roast" card needs to span 3 rows while the 4 sub-score rings each span 1. We were generating these class names programmatically:

```tsx

// This looks fine but it's completely broken className={`row-span-${dynamicValue}`} ```

The problem is that Tailwind's JIT (Just-In-Time) compiler scans source files *statically* at build time. It never sees the string `row-span-3` in the source — only the template literal — so it never generates the CSS for it. Every card collapsed to exactly 1 row (`130px`), causing the AI Roast text to visually overflow and overlap every card below it.

**The Fix:** We replaced all dynamic row span class names with inline CSS styles, which are evaluated at runtime and bypass the compiler entirely: ```tsx // This works correctly style={{ gridRow: `span ${dynamicValue}` }} ```

---

### 2. Content Security Policy Blocking Vercel Analytics After adding `@vercel/analytics`, the browser's console started throwing this error:

```

Loading the script 'https://va.vercel-scripts.com/v1/script.debug.js' violates the following Content Security Policy directive: "script-src 'self'" ```

Our `next.config.ts` had a strict CSP that only allowed scripts from our own domain (`'self'`). The `<Analytics />` component from Vercel injects an external third-party script, which the browser blocked outright.

**The Fix:** We updated the Content Security Policy in `next.config.ts` to whitelist the Vercel Analytics script domain (`va.vercel-scripts.com`) as a trusted source, which resolved the block without compromising the security posture of the rest of the application.

---

### 3. The Mobile Bento Grid Was a Single-Column Disaster On mobile, the 4 sub-score rings (Impact, Activity, Versatility, Clout) were being rendered in a single-column layout, meaning each tiny 70px ring was stretched across the full screen width and stacked vertically. This made the report page feel incredibly long and broken on any phone.

**The Fix:** The root grid was set to `grid-cols-1` on mobile, which forced every card (regardless of its intended `col-span`) to take a full row. We changed the base grid to `grid-cols-2` for mobile, allowing the 4 small rings to naturally slot into a neat 2×2 block without any extra configuration. The full-width cards (like the Profile header and AI Roast) were already set to `col-span-2`, so they continued spanning the full width correctly.

---

### 4. Layout Shift While Streaming the AI Roast Text The AI-generated roast is fetched from the Groq API and rendered as a block of text. Before any content was available, the card had zero height. The moment the text arrived, the card expanded, shoving every card below it downward — a jarring, jumpy user experience.

**The Fix:** We integrated `@chenglou/pretext`, a library specifically built for calculating text layout dimensions outside the DOM without triggering browser reflows. We call `prepare(roastText, font)` to pre-compute the text metrics, then use `layout(prepared, containerWidth, lineHeight)` to calculate the *exact* pixel height the paragraph will need before a single character is painted. We lock the container to this height immediately, then stream the text in character-by-character with a typewriter effect. The result is a completely stable layout with zero shift.

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?

Not checked yet.

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.