Skip to content

This API generates a skill matrix in SVG format based on a GitHub user’s repositories.

License

Notifications You must be signed in to change notification settings

JohnDev19/GitHub-Skill-Matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Skill Matrix API

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.

Demo

Below are examples of each theme:

Available Themes

  • Light Theme
    Light Theme

  • Dark Theme
    Dark Theme

  • Vibrant Theme
    Vibrant Theme

  • Neon Theme
    Neon Theme

  • Futuristic Theme
    Futuristic Theme

  • Pastel Theme
    Pastel Theme

  • Retro Theme
    Retro Theme

  • Nature Theme
    Nature Theme

  • Warm Theme
    Warm Theme

  • Cool Theme
    Cool Theme

  • Starry Night Theme
    Starry Night Theme

  • Cyberpunk Theme
    Cyberpunk Theme

  • Ocean Theme
    Ocean Theme

  • Hacker Theme
    Hacker Theme

  • Twilight Theme
    Twilight Theme

  • Autumn Theme
    Autumn Theme

  • Ice Theme
    Ice Theme

  • Galaxy Theme
    Galaxy Theme

  • Monochrome Theme
    Monochrome Theme


Usage

API Endpoints

Get Skill Matrix

  • 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.

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/JohnDev19/GitHub-Skill-Matrix.git
    cd GitHub-Skill-Matrix
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory and add your environment variables:

    PORT=3000
    
  4. Start the server:

    node index.js
  5. The API will be available at http://localhost:3000.

Configuration

  • PORT: Set the port in .env. The default is 3000 if not specified.

Contributing

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.


License

This project is licensed under the MIT LICENSE.

About

This API generates a skill matrix in SVG format based on a GitHub user’s repositories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published