DEV Community

Cover image for I Built AnswerTrace . GitHub Discussions Analytics for Your README
Antonis Loukis
Antonis Loukis

Posted on

I Built AnswerTrace . GitHub Discussions Analytics for Your README

I noticed GitHub profiles show a lot about code contributions, but not much about contributions through GitHub Discussions.

So I built AnswerTrace.

AnswerTrace analyzes public GitHub Discussions activity and turns it into a small SVG widget for your README.

It currently shows:

  • Accepted Answers
  • Total Upvotes
  • Top Community
  • First Accepted Answer

It can also update automatically with GitHub Actions.

Usage

- name: Generate AnswerTrace widget
  uses: antonisloukis/answertrace@v1
  with:
    username: YOUR_GITHUB_USERNAME
    token: ${{ secrets.ANSWERTRACE_TOKEN }}
    output: assets/discussion-impact.svg
    accent: "#58A6FF"
Enter fullscreen mode Exit fullscreen mode

Then add the generated SVG to your README:

<img
  src="./assets/discussion-impact.svg"
  alt="GitHub Discussions Impact"
  width="720"
/>
Enter fullscreen mode Exit fullscreen mode

AnswerTrace is open source and available on GitHub Marketplace.

View AnswerTrace on GitHub Marketplace

View the source on GitHub

AnswerTrace is still early, and I'd like to keep improving it based on how people actually use GitHub Discussions.

What other GitHub Discussions metrics would you find useful?

Top comments (0)