Go API project for generating svg for github embed
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
Go API project for generating svg's, which can be used in github profiles, repository readmes and much more!
Project is currently not hosted due to my poorness
This project is written in Go!
To get a local copy up and running follow these simple steps.
To run this project you'll need to have go installed on your computer. You can download it here
Check go version
go version
-
Clone the repo
git clone https://github.com/ArvidWedtstein/Github-Embed-Generator.git
-
Create a .env file in the root directory and add your environment variables.
-
Run
go run .
I had this project deployed on heroku, since netlify doesn't support deploying for GO.
This project can be used for adding useful information to your github profile, repository readme and much more!
A generator can to generate the url for you can be found here (current not working)
Here are some useful notes on how to use this project!
Change the ?user=
to your own Github username.
[![Arvid's Github Stats](https://arvidgithubembed.herokuapp.com/stats?user=arvidwedtstein)]
Yes. Da themes have arrived. You can now customize your card without having these long urls
To use a theme add the parameter &theme=THEME_NAME
to the url
[![Arvid's Github Stats](https://arvidgithubembed.herokuapp.com/stats?user=arvidwedtstein&theme=retro)]
Current themes are:
light, dark, rgb, lartrax, retro, vue-dark, ig9te, github, red, toringe
This API allows you to hide individual stats with the query parameter ?hide=
. Multiple stats to hide have to be comma-seperated.
Options:
contributions,milestones,packages,forks,releases,watchers,stars,disk,pull,issues,repocontributions,orgcontributions
[![Arvid's Github Stats](https://arvidgithubembed.herokuapp.com/stats?user=arvidwedtstein&hide=contributions,disk)]
All hex colors without '#' please
titlecolor
- Card's title color (hex color)textcolor
- Card's text color (hex color)bordercolor
- Card's border color (hex color).backgroundcolor
- Card's background color (hex color)boxcolor
- Card's box color (hex color)title
- Card's custom title (string)
hide_week
- Hides the week numbers on the card (boolean)repo
- The name of your repository (github repository name)
/commitactivity?:user&:repo
- Refactor whole project
- Implement a better system for embed themes
- Fix docs
See the open issues for a full list of proposed features (and known issues).
Any contributions you make are greatly appreciated.
If you have a suggestion that would make this project better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! <3
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
No contact :)