astro-github-stats
v0.7.1
Published
Embed GitHub stats in your Astro page ✨
Downloads
192
Readme
Astro GitHub Stats ✨
Embed GitHub stats on your Astro page ✨
Features:
- Embed GitHub Account stats (with or without icons)
- Embed GitHub Account top languages
- Embed GitHub Repositories info with stars
Installation
npm i astro-github-stats
Usage
Then use on your Astro page:
---
import GithubStats from 'astro-github-stats';
---
<!-- show your account stats -->
<GithubStats username="ayoayco" />
<!-- show your account stats w/ icons -->
<GithubStats username="ayoayco" showIcons={true} />
<!-- show your account top languages -->
<GithubStats username="ayoayco" topLanguages={true} />
<!-- show a repo card with info and stars -->
<GithubStats username="withastro" repo="astro" />
Screenshots
Example Account Card:
Example Account Card with Icons:
Example Account Top Languages:
Example Repo Card:
Future plans
Initially this is a wrapper for github-readme-stats supporting the basic github account stats card. Other features can be supported later, depending on demand:
- themes
- account top languages
Please report issues found or suggestions in the project issues page