metrics is a free, open source monitoring & observability project written in JavaScript and released under MIT. It has 17,360 GitHub stars, 2,297 forks and 68 open issues, and was last pushed 5 months ago. On this registry it ranks #22 of 270 tracked projects in Monitoring & Observability, with 5 head-to-head comparisons available. It gained 111 stars over the last 30 tracked days.

What is metrics?

What it is

Metrics is an infographics generator for GitHub accounts, published under the MIT license and written in JavaScript. It lives in the GitHub ecosystem as a GitHub Action and as a hosted web service, and it produces statistics about a user, an organization, or a repository. The output is rendered as SVG, Markdown, PDF, or JSON, which means the same generated figures can be embedded in a profile readme, attached to a blog post, or consumed by another tool.

The concrete problem it solves is the gap between raw GitHub data and something presentable. GitHub exposes commits, languages, stargazers, sponsorships, issues, pull requests, and traffic through its API, but turning that into a readable summary normally means writing custom scripts and hand-maintaining charts. Metrics packages that work into a configurable generator with 47 plugins and 335 options, so a profile owner declares which plugins to run and receives a rendered image or document instead of building the pipeline themselves. It covers users, organizations, and repositories, and it ships with the classic, repository, terminal, and Markdown templates.

Key capabilities

  • Generates isometric commit calendars, including full-year, half-year, and indepth analysis modes that clone and analyze repositories.
  • Reports languages activity through a default algorithm or a detailed variant, and can analyze recent activity events instead of full history.
  • Produces lines-of-code-changed charts, stargazer charts, and repository diff history.
  • Renders repository licenses, coding habits and activity, and mildly interesting facts.
  • Tracks repository contributors, issue and pull request follow-up, and comment reactions.
  • Displays GitHub Sponsorships, featured repositories, discussions, star lists, and achievements.
  • Supports community plugins such as 16personalities, Chess, Crypto, Fortune, Nightscout, PoopMap, website screenshot, Splatoon, and stock prices.

Who uses it and how

  • Profile owners embed generated SVG images in a GitHub profile readme to summarize account activity.
  • Organizations run it to display aggregate statistics across their repositories.
  • Repository maintainers use it to surface contributors, licenses, and issue and pull request activity.
  • Users deploy it through a GitHub Action on a profile repository, which the documentation describes as covering all features with high availability and no downtimes.
  • Users who want a faster path rely on the shared instance, which the documentation lists as roughly a one-minute setup.

Getting started

Setup runs either as a GitHub Action on a profile repository, which takes roughly ten minutes and exposes all features, or through the shared instance at metrics.lecoq.io, which takes roughly one minute. A beta instance is available for testing unreleased features and patches.

When to use it โ€” and when not to

The project replaces the manual work of scripting GitHub API calls and chart rendering, and it does so without a paid product in the facts listed here. The trade-off is configuration: the documentation itself notes that the GitHub Action route can be time-consuming to set up, and the option surface of 335 settings across 47 plugins is large. Note also that the documentation excerpt describes v3.35-beta on the master and main branches, while v3.34 is the current released version, so self-hosters should pin to the released branch unless they intend to track unreleased features.

project readme (upstream, from github) โ€” read inline

๐Ÿ“Š Metrics

Continuous integration

Generate metrics that can be embedded everywhere, including your GitHub profile readme! Supports users, organizations, and even repositories!

For user accounts For organization accounts

๐Ÿงฉ Customizable with 47 plugins and 335 options!

๐Ÿ“… Isometric commit calendar ๐Ÿˆท๏ธ Languages activity
Full year calendar
Half year calendar
  </td>
Indepth analysis (clone and analyze repositories)
Recently used (analyze recent activity events)
Default algorithm
Default algorithm (with details)
  </td>
โœจ Stargazers ๐Ÿ‘จโ€๐Ÿ’ป Lines of code changed
Classic charts
Graph charts
Worldmap
  </td>
Repositories and diff history
Compact display in base plugin
  </td>
๐Ÿ“Œ Starred topics ๐ŸŒŸ Recently starred repositories
With icons
With labels
  </td>
  </td>
๐Ÿ“œ Repository licenses ๐Ÿ’ก Coding habits and activity
Permissions, limitations and conditions
Licenses overview
  </td>
Recent activity charts
Mildly interesting facts
  </td>
๐Ÿ… Repository contributors ๐ŸŽŸ๏ธ Follow-up of issues and pull requests
By contribution types
By number of contributions
  </td>
Indepth analysis
Created on a user's repositories
Created by a user
  </td>
๐ŸŽญ Comment reactions ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ People
  </td>
Related to a user
Related to a repository
  </td>
๐Ÿ’ GitHub Sponsorships ๐Ÿ’• GitHub Sponsors
  </td>
GitHub sponsors card
GitHub sponsors full introduction
  </td>
๐Ÿ““ Featured repositories ๐Ÿ’ฌ Discussions
Featured
Pinned
  </td>
  </td>
๐Ÿ’ซ Star lists ๐Ÿ“† Commit calendar
Repositories from star lists
Languages from star lists
  </td>
Current year
Full history
  </td>
๐Ÿ† Achievements ๐ŸŽฉ Notable contributions
Compact display
Detailed display
  </td>
Indepth analysis
Contributions in organizations only
  </td>
๐Ÿ“ฐ Recent activity ๐Ÿงฎ Repositories traffic
  </td>
  </td>
โ™ Random code snippet ๐ŸŽซ Gists
  </td>
  </td>
๐Ÿ—‚๏ธ GitHub projects ๐Ÿ™‹ Introduction
  </td>
For a user or an organization
For a repository
  </td>
๐ŸŒ‡ GitHub Skyline โฑ๏ธ Google PageSpeed
GitHub Skyline
GitHub City
  </td>
PageSpeed scores
PageSpeed scores with detailed report
PageSpeed scores with a website screenshot
  </td>
๐Ÿ—จ๏ธ Stack Overflow ๐ŸŒธ Anilist watch list and reading list
  </td>
For anime watchers
For manga readers
For waifus simp
  </td>
๐ŸŽผ Music activity and suggestions โœ’๏ธ Recent posts
Random tracks from a playlist
Recently listened
  </td>
Latest posts width description and cover image
Latest posts
  </td>
๐Ÿ—ผ Rss feed โฐ WakaTime
  </td>
  </td>
๐Ÿ—ณ๏ธ Leetcode ๐Ÿ•น๏ธ Steam
  </td>
Recently played games
Profile and detailed game history
  </td>
๐ŸŽฒ See also community plugins
๐Ÿง  16personalities
by @lowlighter
Render example
  </details>
</th>
โ™Ÿ๏ธ Chess
by @lowlighter
Render example
  </details>
</th>
๐Ÿช™ Crypto
by @dajneem23
Render example
  </details>
</th>
๐Ÿฅ  Fortune
by @lowlighter
Render example
  </details>
</th>
๐Ÿ’‰ Nightscout
by @legoandmars
Render example
  </details>
</th>
๐Ÿ’ฉ PoopMap plugin
by @matievisthekat
Render example
  </details>
</th>
๐Ÿ“ธ Website screenshot
by @lowlighter
Render example
  </details>
</th>
๐Ÿฆ‘ Splatoon
by @lowlighter
Render example
  </details>
</th>
๐Ÿ’น Stock prices
by @lowlighter
Render example
  </details>
</th>

๐Ÿ–ผ๏ธ And even more with 4+ templates!

๐Ÿ“— Classic template ๐Ÿ“˜ Repository template
  </td>
  </td>
๐Ÿ“™ Terminal template ๐Ÿ“’ Markdown template
  </td>
  </td>
๐Ÿ“• See also community templates

๐Ÿฆ‘ Try it now!

๐Ÿ“Š Metrics embed โœจ Metrics insights
Embed metrics images on your profile or blog!
Use GitHub actions for even more features!
Share your metrics with friends and on social medias!
No configuration needed!
Test latest features and patches on ๐Ÿงช Metrics beta!
Power user?
Fork this repository and edit HTML, CSS, JS and EJS for even more customization!

๐Ÿ“š Documentation

โš ๏ธ This is the documentation of v3.35-beta (@master/@main branches) which includes unreleased features planned for next release. See documentation for current released version v3.34 (@latest branch) here.

๐Ÿฆฎ Setup

There are several ways to setup metrics, each having its advantages and disadvantages:

Additional resources for setup:

๐Ÿ–ผ๏ธ Templates

Templates lets you change general appearance of rendered metrics.

๐Ÿงฉ Plugins

Plugins provide additional content and lets you customize rendered metrics.

๐Ÿ“ฆ Maintained by core team

๐ŸŽฒ Maintained by community

๐Ÿ’ช Contributing

If you are interested in contributing, the following resources may interest you:

Use ๐Ÿ’ฌ discussions for feedback, new features suggestions, bugs reports or to request help for installation.

๐Ÿ“œ License

MIT License
Copyright (c) 2020-present lowlighter

Sponsors

Frequently asked questions

Is metrics free to use?

metrics is open source under the MIT licence. There is no licence fee and no seat count โ€” you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does metrics do?

๐Ÿ“Š An infographics generator with 30+ plugins and 300+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!

What is metrics written in?

metrics is primarily written in JavaScript. Its source is publicly available at https://github.com/lowlighter/metrics, and it has 17,360 GitHub stars.