All Projects → piotrl → github-profile-card

piotrl / github-profile-card

Licence: MIT License
Simple and easy to use widget with your GitHub profile — No dependencies

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to github-profile-card

Darkmode.js
🌓 Add a dark-mode / night-mode to your website in a few seconds
Stars: ✭ 2,339 (+2286.73%)
Mutual labels:  widget, npm-package
Node Tail
The zero dependency Node.js module for tailing a file
Stars: ✭ 335 (+241.84%)
Mutual labels:  npm-package, no-dependencies
picsort
Organize your photos by date in one click 👏
Stars: ✭ 22 (-77.55%)
Mutual labels:  npm-package
yii2-google-analytics
Google Analytics Universal tracking widget.
Stars: ✭ 14 (-85.71%)
Mutual labels:  widget
couchbase-index-manager
Command-line interface to manage Couchbase indexes, synchronizing them to index definitions.
Stars: ✭ 14 (-85.71%)
Mutual labels:  npm-package
MTCircularSlider
A feature-rich circular slider control written in Swift.
Stars: ✭ 118 (+20.41%)
Mutual labels:  widget
is-safe-integer
ES2015 Number.isSafeInteger() ponyfill
Stars: ✭ 16 (-83.67%)
Mutual labels:  npm-package
em-beer-manager
Manage your beers with WordPress. Integrates simply with Untappd beer checkins. Great for everyone from home brewers to professional breweries!
Stars: ✭ 15 (-84.69%)
Mutual labels:  widget
conditional-expression
JavaScript functional conditional expression
Stars: ✭ 63 (-35.71%)
Mutual labels:  npm-package
height-slider
A customisable height slider for Flutter.
Stars: ✭ 15 (-84.69%)
Mutual labels:  widget
prathimacode-hub
Hello everyone, Welcome to my GitHub README profile. Glad to see you here! Check out this repository to view my work and learn more about me. Don't just star it, fork it as well.📢✌️
Stars: ✭ 53 (-45.92%)
Mutual labels:  github-profile
next-gen-ui
www.npmjs.com/package/next-gen-ui
Stars: ✭ 24 (-75.51%)
Mutual labels:  npm-package
profile-readme-stats
Showcase your github stats on your profile README.md
Stars: ✭ 144 (+46.94%)
Mutual labels:  github-profile
xtenzQ
📝🚀 Minimalistic profile README.md. Please ⭐ if you like it! ❤
Stars: ✭ 62 (-36.73%)
Mutual labels:  github-profile
SPPerspective
Widgets iOS 14 animation with 3D and dynamic shadow. Customisable transform and duration.
Stars: ✭ 271 (+176.53%)
Mutual labels:  widget
CLIp
CLIp is a clipboard manager for a command line interface written in 100% standard C only. Pipe to it to copy, pipe from it to paste.
Stars: ✭ 12 (-87.76%)
Mutual labels:  no-dependencies
autocomplete
Simple accessible autocomplete for vanilla javacript with support for remote & local data, ~3KB gzip
Stars: ✭ 38 (-61.22%)
Mutual labels:  no-dependencies
jakejarvis
hey 👋
Stars: ✭ 15 (-84.69%)
Mutual labels:  github-profile
tabbis.js
Pure vanilla javascript tabs with nesting
Stars: ✭ 44 (-55.1%)
Mutual labels:  no-dependencies
kladi
Easy to use state management library for React
Stars: ✭ 24 (-75.51%)
Mutual labels:  npm-package

GitHub Profile Card

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

Screenshot

Live demo and configuration

Contents

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 </body> tag:

<script type="text/javascript" src="https://github-profile.com/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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].