This API generates a skill matrix in SVG format based on a GitHub user's repositories. The matrix displays programming languages used by the user, with skill levels calculated from the number of repositories in each language.
Below are examples of each theme:
-
Endpoint:
/api/skills/:username/:theme?
-
Method:
GET
-
Description: Generates an SVG skill matrix for a specified GitHub username with an optional theme.
-
Parameters:
username
(required): The GitHub username.theme
(optional): Theme for the SVG. Options include:light
,dark
,vibrant
,neon
,futuristic
,pastel
,retro
,nature
,warm
,cool
-
Example Request:
curl https://github-skill-matrix.onrender.com/api/skills/JohnDev19/cool
-
Example Response: The endpoint returns an SVG image based on the user’s repositories and selected theme. This SVG includes each language used by the user, along with a visual skill level indicator based on the number of repositories in each language.
-
Clone the repository:
git clone https://github.com/JohnDev19/GitHub-Skill-Matrix.git cd GitHub-Skill-Matrix
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your environment variables:PORT=3000
-
Start the server:
node index.js
-
The API will be available at
http://localhost:3000
.
- PORT: Set the port in
.env
. The default is3000
if not specified.
Contributions to add more themes or enhance the functionality are welcome. Please create a pull request or submit an issue for new ideas or bug reports.
This project is licensed under the MIT LICENSE.