百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

github-profile-card

> DevOps
开源

带有您的 GitHub 个人资料的简单易用的小组件 — 不需要依赖

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

带有您的 GitHub 个人资料的简单易用的小组件 — 不需要依赖

GitHub Profile Card

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

Live demo and configuration

Contents

  • GitHub Profile Card
    • Main features
    • Live demo and configuration
    • Changelog
  • Quick install
    • Download
    • Advanced configuration
    • Configuration options
  • FAQ
  • Feedback

Main features

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

Changelog

Quick install

Include script and style just before `` tag:

Include HTML code anywhere you would like to place widget:

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

Download

With npm

bash
npm install github-profile-card --save

Advanced configuration

Configure widget in HTML:

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.

    
    
    
    
    
    

Feedback

I love feedback, send me one!

  • show me website on which you're using this widget: leave comment
  • ping me on twitter: @constjs
  • create new issue

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptgithubgithub-profilelibraryno-dependencies

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理