Description
Part of #5. For indie developers posting their monthly building-in-public update, the "month 7, here are the numbers" kind of post.
Idea
The project name as the title at the top ("Invoice Kit") with a "Month 7" pill next to it. On the left, the headline number in big type ("$2,480"), its label under it ("MRR"), a change chip below that ("+18% from last month") and a one-line note ("312 paying customers, 2.1% churn"). On the right, a small bar chart of the last six months (820, 1100, 1350, 1700, 2100, 2480), each bar scaled to the largest value and the last one in the accent color as the current month. The site name sits at the bottom.
Template details
- File:
src/templates/developer/build-in-public.ts, iddeveloper-build-in-public - Fields:
commonFields.title(default "Invoice Kit"),period(text, optional, default "Month 7"),metricValue(text, default "$2,480"),metricLabel(text, optional, default "MRR"),change(text, optional, default "+18% from last month"),history(text, optional, plain numbers separated by commas, default "820, 1100, 1350, 1700, 2100, 2480"),note(text, optional, default above),commonFields.siteName,commonFields.bgColor,commonFields.accentColor,commonFields.textColor - The bars come only from
history, so the chart can't drift from what the user typed. The change chip is green whenchangestarts with+, red when it starts with-, and neutral otherwise
Where to look
- Closest reference:
src/templates/blog/benchmark.ts(bars scaled to the largest value, with invalid values skipped),src/templates/developer/year-review.ts(big stat type and spacing in the developer category),src/templates/developer/portfolio-card.ts(splitting a comma list and dropping blank entries)
Acceptance criteria
- The defaults give six bars rising left to right with the last one in the accent color, and a green change chip
- In
history, blank entries are skipped (so a trailing comma does nothing), negative or non-numeric ones count as 0, only the last six are shown, and with every value at 0 the bars sit as short equal stubs instead of disappearing - An empty
historyhides the chart and the number column takes the full width, and an emptyperiod,metricLabel,changeornoteleaves no gap - A long title shrinks with
autoFontSize()and then truncates on one line, a number like "$1,250,000" still fits its column, and a long note truncates on one line - The bars, the chip and the pill stay readable on a light background
- Re-exported in
src/templates/developer/index.tsand registered in the developer block ofsrc/templates/registry.ts - Meets the shared template checklist in Add new card-style OG image templates #5
One template per contributor at a time, so more people get a chance.
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #407 in the description.
Activity
Saifjafri212213 commentedon Nov 14, 2026
Hey @anurag629, I'd like to work on this! I've reviewed the requirements and references in
benchmark.tsandyear-review.ts. Could you please assign it to me?anurag629 commentedon Nov 14, 2026
Hey @Saifjafri212213, it's yours, as your second next to codercops/toolbelt#487.