Registry Mirror
Skip to content

Add the Build in Public developer template (developer-build-in-public) #407

Closed

Description

@anurag629

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, id developer-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 when change starts 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 history hides the chart and the number column takes the full width, and an empty period, metricLabel, change or note leaves 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.ts and registered in the developer block of src/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

  1. added
    good first issue
    templates
    on Nov 11, 2026
  2. Saifjafri212213 commented on Nov 14, 2026

    @Saifjafri212213
    Collaborator

    Hey @anurag629, I'd like to work on this! I've reviewed the requirements and references in benchmark.ts and year-review.ts. Could you please assign it to me?

  3. anurag629 commented on Nov 14, 2026

    @anurag629
    MemberAuthor

    Hey @Saifjafri212213, it's yours, as your second next to codercops/toolbelt#487.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

good first issuetemplates

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions