Skip to content

tamino-martinius/metrics.tamino.dev

Repository files navigation

Metrics UI

Visit Website

Preview

A personal metrics dashboard that visualizes GitHub contribution data and npm package statistics. Data is fetched at runtime from companion stats repositories — no local data files are needed.

Tech Stack

Data Sources

GitHub Stats

Contribution statistics are fetched from the github-stats repository. The stats repo syncs your GitHub contributions daily via GitHub Actions and publishes aggregated JSON. Private repository details (names, URLs, languages) are stripped — only commit counts and line changes are included.

Setup your own:

  1. Fork github-stats
  2. Enable GitHub Actions on the fork
  3. Add repository secrets:
    • GH_PAT — Personal Access Token with repo and read:org scopes (create one)
    • ENCRYPTION_KEYopenssl rand -hex 32
  4. Run Actions > Setup User Branch > Run workflow
  5. Enable Actions > Sync GitHub Stats (scheduled workflows need manual activation on forks)
  6. Stats sync daily at midnight UTC. Data is available at:
    https://raw.githubusercontent.com/<you>/github-stats/<you>/data/stats.json
    

To add or change GitHub accounts in this dashboard, edit GITHUB_ACCOUNTS in src/models/Data.ts.

npm Stats

Package and download statistics are fetched from the npm-stats repository. The stats repo syncs your npm packages and download counts every 6 hours via GitHub Actions. No npm token is needed — the npm registry API is public.

Setup your own:

  1. Fork npm-stats
  2. Enable GitHub Actions on the fork
  3. Add repository secret:
    • ENCRYPTION_KEYopenssl rand -hex 32
  4. Run Actions > Setup User Branch > Run workflow (enter your npm username when prompted)
  5. Enable Actions > Sync npm Stats (scheduled workflows need manual activation on forks)
  6. Stats sync every 6 hours. Data is available at:
    https://raw.githubusercontent.com/<you>/npm-stats/<you>/data/stats.json
    

To change the npm account, edit NPM_ACCOUNT in src/models/Data.ts.

Run locally

npm install
npm run dev

Build

npm run build      # outputs to dist/
npm run preview    # preview the production build locally

Deploy

npm run deploy

About

Website to display a bunch of different commit statistics fetched by GitHub GraphQL API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors