Skip to content

Repository files navigation

my-git-stats

CI License: MIT Node PRs welcome

Quality gate status Coverage Duplicated Lines (%)

Service de carte de stats GitHub SVG, pour les README de profil GitHub

Galerie & URLs

Aperçus générés avec des données factices (node scripts/gen-previews.js).

Carte de stats — /api

Thème Aperçu URL
default https://my-git-stats.bebech.fr/api?username=Mathbech
dark https://my-git-stats.bebech.fr/api?username=Mathbech&theme=dark
radical https://my-git-stats.bebech.fr/api?username=Mathbech&theme=radical
ocean_dark https://my-git-stats.bebech.fr/api?username=Mathbech&theme=ocean_dark
tokyonight https://my-git-stats.bebech.fr/api?username=Mathbech&theme=tokyonight

Top langages — /api/top-langs

Layout / thème Aperçu URL
normal / default https://my-git-stats.bebech.fr/api/top-langs?username=Mathbech
compact / tokyonight https://my-git-stats.bebech.fr/api/top-langs?username=Mathbech&layout=compact&theme=tokyonight
compact / ocean_dark https://my-git-stats.bebech.fr/api/top-langs?username=Mathbech&layout=compact&theme=ocean_dark

Paramètres d'URL

Communs : theme, title_color, text_color, icon_color, bg_color, border_color, hide_border, custom_title, card_width. Stats : show_icons, include_all_commits, hide_rank, ring_color. Top langs : layout (normal|compact), langs_count (1–20).

Thèmes fournis : default, dark, radical, ocean_dark, tokyonight. Ajoute les tiens dans src/themes.js.

Le rang (cercle S / A+ / A … C) est un score calculé par le service (src/rank.js, même formule que github-readme-stats : somme pondérée de percentiles sur commits, PRs, issues, reviews, stars, followers). Ce n'est pas une métrique officielle GitHub. Masque-le avec hide_rank=true.

Instance en ligne : https://my-git-stats.bebech.fr.

Idées d'évolution

Cartes pin / gist / wakatime, pagination au-delà de 100 repos, cache Redis, rotation multi-tokens (PAT_1..PAT_n). La structure src/cards/* + route dans server.js est faite pour s'étendre.

About

api de stats GitHub à intégrer sur le README de son profil

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages