GitHub Hot Board

GitHub Hot Board · 저장소 아카이브

piotrl/github-profile-card

Simple and easy to use widget with your GitHub profile — No dependencies (소개는 저장소 자체 문서에서 왔습니다.)

TypeScript#github#github-profile#library

데이터 기준 November 6piotrl

최고 순위

#226

과소평가 · 활발한데 무명

100

누적 스타

10

포크 수

2

최근 30일 기록 일수

라이선스: MIT최근 push: November 3열린 이슈(PR 포함): 02026-10-25부터 수집. 미확인 = 아직 미수집

프로젝트 문서

GitHub Profile Card

Widget shows your GitHub profile directly on your website.
Show your current projects — always up to date.

Screenshot

Contents

Main features

  • Top languages statistics
  • Last updated repositories
  • Configurable in HTML
  • Copy-Paste installation
  • No jQuery and any other libraries required

Quick install

Include script and style just before </body> tag:

<script type="text/javascript" src="https://piotrl.github.io/github-profile-card/dist/gh-profile-card.min.js"></script>

Include HTML code anywhere you would like to place widget:

<div id="github-card"
     data-username="YOUR_GITHUB_USERNAME">
</div>

Great! Widget will autoload. We're done here.

Download

With npm

npm install github-profile-card --save

Advanced configuration

Configure widget in HTML:

<div id="github-card"
     data-username="YOUR_GITHUB_USERNAME"
     data-max-repos="3"
     data-sort-by="stars"
     data-header-text="Most starred repositories">
</div>

For special usages, it is possible to configure widget(s) in JavaScript. You have to use different template than #github-card.

var widget = new GitHubCard({
    username: 'YOUR_GITHUB_USERNAME'
    template: '#github-card-demo',
    sortBy: 'stars',
    reposHeaderText: 'Most starred',
    maxRepos: 5,
    hideTopLanguages: false,
});

widget.init();

Configuration options

HTML option (data- prefix) JavaScript option Default Details
username username None GitHub profile username
— template #github-card DOM selector of your widget in HTML
sort-by sortBy stars Repositories sorting method (stars or updateTime)
max-repos maxRepos 5 Amount of listed repositories. 0 disables section
header-text headerText Most starred repositories Text label above repositories list
hide-top-languages hideTopLanguages false Avoids heavy network traffic for calculating Top Languages section. Recommended for profiles with huge amount of repositories.

FAQ

  • My language statistic is affected by libraries and dependencies

    Consider ignoring them with .gitattributes: My repository is detected as the wrong language

  • How language statistic is build?

    It is sum of all characters written in language you use. One big repository in C# will be ranked higher than many small JavaScript repositories.

    It is based on 10 last updated repositories, to represent your current interests.

  • How to show two or more profiles on page?

    You have to create two widgets with different ID, then initialize each manually in JS.

    e.g.

    <div id="github-card-1" data-username="user1"></div>
    <div id="github-card-2" data-username="user2"></div>
    
    <script>
        new GitHubCard({ template: '#github-card-1' }).init();
        new GitHubCard({ template: '#github-card-2' }).init();
    </script>
    

Feedback

I love feedback, send me one!

Remember no other libraries required. It's like gluten free 😉

gluten-free

현재 순위

  • 226

    과소평가 · 활발한데 무명

    100 스타 · 10 fork · 총 스타 수(오름차순)

    과소평가 →

최근 30일 추이

누적 스타 추이

순위 추이

README에 뱃지를 붙여보세요 · piotrl/github-profile-card[![README에 뱃지를 붙여보세요](https://git.vaiox.xyz/api/badge/piotrl/github-profile-card.svg)](https://git.vaiox.xyz/ko/repo/piotrl/github-profile-card)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/ko/repo/piotrl/github-profile-card"><img src="https://git.vaiox.xyz/api/badge/piotrl/github-profile-card.svg" alt="README에 뱃지를 붙여보세요" height="20"></a>

← 랭킹으로

GitHub Hot Board타임머신발견联系我们 · Contact