moli-metrics

August 21, 2026 · View on GitHub

Machine-generated public metrics and charts for Moli. This repository is automatically maintained — GitHub Actions checks the star count hourly and regenerates the data and charts only when it has actually changed.

Star history

Star history of lexmount/moli

Embedding

To embed the chart elsewhere (e.g. moli's README), hot-link the raw SVGs:

<picture>
  <source media="(prefers-color-scheme: dark)"
          srcset="https://raw.githubusercontent.com/lexmount/moli-metrics/main/assets/star-history-dark.svg">
  <img alt="Star history of lexmount/moli"
       src="https://raw.githubusercontent.com/lexmount/moli-metrics/main/assets/star-history.svg">
</picture>

How it works

  • scripts/update_star_history.py fetches star data for lexmount/moli, writes data/stars.json, and renders the SVGs in assets/. No dependencies beyond the Python standard library.
  • .github/workflows/update-star-history.yml runs hourly (at :23) and commits only when the data changed. When the star count matches what is already stored, the script writes nothing and the run ends without a commit, so an unchanged hour — or an unchanged month — leaves no trace in the history.
  • With a STAR_HISTORY_TOKEN Actions secret (a token with read access to the target repo's stargazer timeline), the full history is reconstructed on every run. Without it, the script falls back to appending one snapshot of the current count per run.