2020-09-14 16:09:42 +02:00
2020-09-15 16:26:59 +02:00
2020-09-15 16:26:59 +02:00
2020-09-14 15:43:56 +02:00
2020-07-11 22:12:49 +05:30
2020-09-14 15:43:56 +02:00
2020-09-16 11:28:24 +02:00
2020-09-14 15:43:56 +02:00
2020-09-08 14:37:35 +02:00

GitHub Readme Stats

Code::Stats Readme

Get dynamically generated Code::Stats stats on your readmes!

Features

Profile Card

Copy paste this into your markdown content, and that's it. Simple!

Change the ?username= value to your GitHub's username.

[![Avior's code::stats stats](https://codestats-readme.vercel.app/api?username=aviortheking)](https://github.com/Aviortheking/codestats-readme)

Hiding individual stats

To hide any specific stats, you can pass a query parameter ?hide= with comma separated values.

Options: &hide=recent_xp,xp

![Avior's code::stats stats](https://codestats-readme.vercel.app/api?username=aviortheking&hide=xp,recent_xp)]

Showing icons

To enable icons, you can pass show_icons=true in the query param, like so:

![Avior's code::stats stats](https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true)

Themes

With inbuilt themes you can customize the look of the card without doing any manual customization.

Use ?theme=THEME_NAME parameter like so :-

![Anurag's github stats](https://codestats-readme.vercel.app/api?username=aviortheking&theme=radical)

All inbuilt themes :-

dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula

You can look at a preview for all available themes or checkout the theme config file & you can also contribute new themes if you like :D

Customization

You can customize the appearance of your Cards however you want with URL params.

Common Options:

  • title_color - Card's title color (hex color)
  • text_color - Body text color (hex color)
  • icon_color - Icons color if available (hex color)
  • bg_color - Card's background color (hex color) or a gradient in the form of angle,start,end
  • theme - name of the theme, choose from all available themes
  • cache_seconds - set the cache header manually (min: 1800, max: 86400)
Gradient in bg_color

You can provide multiple comma separated values in bg_color option to render a gradient, the format of the gradient is :-

&bg_color=DEG,COLOR1,COLRO2,COLOR3...COLOR10

Stats Card Exclusive Options:

  • hide - Hides the specified items from stats (Comma seperated values)
  • hide_title - (boolean)
  • hide_rank - (boolean)
  • show_icons - (boolean)
  • line_height - Sets the line-height between text (number)

Language Card Exclusive Options:

  • hide - Hide the languages specified from the card (Comma separated values)
  • hide_title - (boolean)
  • layout - Switch between two available layouts default & compact
  • card_width - Set the card's width manually (number)

⚠️ Important:
Language names should be uri-escaped, as specified in Percent Encoding
(i.e: c++ should become c%2B%2B, jupyter notebook should become jupyter%20notebook, etc.)


Top Languages Card

Top languages card shows github user's top languages.

NOTE: Top languages does not indicate your skill level or something like that, it's a metric of which languages you have the coded the most.

Usage

Copy-paste this code into your readme and change the links.

Endpoint: api/top-langs?username=anuraghazra

[![Top Langs](https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking)](https://github.com/aviortheking/codestats-readme)

Hide individual languages

You can use ?hide=language1,language2 parameter to hide individual languages.

[![Top Langs](https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&hide=javascript,html)](https://github.com/aviortheking/codestats-readme)

Compact Language Card Layout

You can use the &layout=compact option to change the card design.

[![Top Langs](https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&layout=compact)](https://github.com/aviortheking/codestats-readme)

Language Count

You can change the default language count (5) using the &language_count=10 option.

[![Top Langs](https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&language_count=10)](https://github.com/aviortheking/codestats-readme)

Demo

Top Langs

  • Compact layout

Top Langs


All Demos

  • Themes

Choose from any of the default themes

Anurag's github stats

  • Gradient

Anurag's github stats

  • Customizing stats card

Anurag's github stats

  • Top languages

Top Langs


Quick Tip (Align The Repo Cards)

You usually won't be able to layout the images side by side. To do that you can use this approach:

<a href="https://github.com/aviortheking/codestats-readme">
  <img align="center" src="https://codestats-readme.vercel.app/api?username=aviortheking" />
</a>
<a href="https://github.com/aviortheking/codestats-readme">
  <img align="center" src="https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking" />
</a>

Deploy on your own Vercel instance

Deploy to Vercel

Guide on setting up Vercel 🔨
  1. Go to vercel.com
  2. Click on Log in
  3. Sign in with GitHub by pressing Continue with GitHub
  4. Sign into GitHub and allow access to all repositories, if prompted
  5. Fork this repo
  6. Go back to your Vercel dashboard
  7. Select Import Project
  8. Select Import Git Repository
  9. Select root and keep everything as is (leave everything as is, just name it something, it can be anything you want)
  10. Click deploy, and you're good to go. See your domains to use the API!

https://vercel.com

Contributions are welcomed! <3

Made with ❤️ and Typescript.

Description
Dynamically generated Code::Stats SVGs for your github readmes
Readme MIT 995 KiB
Languages
TypeScript 96.7%
Dockerfile 2.1%
Shell 1.2%