This PR remove the need to use Vercel to setup the server, currently it can still be used as such using the api folder |
||
|---|---|---|
| .github | ||
| api | ||
| scripts | ||
| src | ||
| themes | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| Dockerfile | ||
| index.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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.
[](https://github.com/Aviortheking/codestats-readme)
Options
History Card
Shows your XP history as it's shown on your profile.
Copy-paste this code into your readme and change the links.
Endpoint: api/history?username=Aviortheking
[](https://github.com/aviortheking/codestats-readme)
Options
Top Languages Card
Top languages card shows user's top languages.
Copy-paste this code into your readme and change the links.
Endpoint: api/top-langs?username=aviortheking
[](https://github.com/aviortheking/codestats-readme)
Options
Common Options
| Options Name | Preview | Description |
|---|---|---|
| title_color | Change the title color ex: &title_color=654321 |
|
| bg_color | Change the background color ex: &bg_color=654321 |
|
| hide_border | Hide the border ex: &hide_border |
|
| hide_title | Hide the title ex: &hide_border |
|
| theme | See #themes | |
| cache_seconds | set the cache header manually (min: 1800, max: 86400) ex: &cache_seconds=86400Default: 1800 or 30 minutes |
With inbuilt themes you can customize the look of the card without doing any manual customization.
Use ?theme=THEME_NAME parameter like so :-

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
Quick Tip (Align your 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.avior.me/api?username=aviortheking" />
</a>
<a href="https://github.com/aviortheking/codestats-readme">
<img align="center" src="https://codestats-readme.avior.me/api/top-langs/?username=aviortheking" />
</a>
Deploy on your own Server
- Build the Docker image
docker build . --tag your-tag - run the Docker image
docker run your-tag - Profit on the port 3000!
Contributions are welcomed! <3
Made with ❤️ and Typescript.