Skip to content

Repository files navigation

GitHub Readme Stack Mapping

GitHub Readme Stack Mapping

Generate an embeddable GitHub README SVG card from your public repositories.

Vercel Live License Last Commit Build command npm run build

Demo | Quick Start | API Reference | Why | Technology | Local Dev | Deploy | Limitations | Thanks | Policies

Features

  • README-ready SVG output from /api/card
  • Detection mode split: techstack, languages, all
  • Section filter: frontend, backend, tools, mobile, other, all
  • Theme support: dark and light
  • Optional per-technology project list with links (show_projects=true)
  • Optional JSON debug endpoint at /api/projects

Technology

  • TypeScript
  • React
  • Vite
  • Node.js
  • Vercel Serverless Functions
  • GitHub REST API
  • Simple Icons

Quick Start

Add this to your README:

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=YOUR_GITHUB_USERNAME)

API Reference

Main Card Endpoint

GET /api/card?username=<github_username>

Example:

https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab

Optional Debug Endpoint

GET /api/projects?username=<github_username>

Example:

https://github-readme-stack-mapping.vercel.app/api/projects?username=RezaFab&mode=all&section=all

Query Parameters

Name Type Default Description
username string required GitHub username
mode techstack | languages | all techstack Group source (techstack excludes language-only stacks)
section all | frontend | backend | tools | mobile | other all Filter stacks by section
theme dark | light dark Card theme
hide_border boolean false Hide outer border
title_color hex color auto Override title color
text_color hex color auto Override body text color
bg_color hex color auto Override background color
border_color hex color auto Override border color
show_projects boolean false Show project list under each stack card
max_repos_per_stack number 1-10 5 Max repos shown per stack (used when show_projects=true)
max_stacks number 1-40 25 Max stacks shown

Why This Project

  • Focuses on stack mapping by repository context, not just language statistics.
  • Supports section-based filtering (frontend, backend, tools, mobile, other) to make cards more relevant.
  • Can show related project names under each technology (show_projects=true) for better portfolio storytelling.

Usage Examples

Default Tech Stack Card

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&theme=dark)

GitHub Readme Stack Mapping

Frontend Only

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&section=frontend)

GitHub Readme Stack Mapping

Backend Only

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&section=backend)

GitHub Readme Stack Mapping

Tools / Database Only

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&section=tools)

GitHub Readme Stack Mapping

Mobile Only (Android/Flutter/React Native)

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&section=mobile)

GitHub Readme Stack Mapping

Show Projects (With Links)

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&show_projects=true&max_repos_per_stack=5)

GitHub Readme Stack Mapping

All Option Example

![GitHub Stack Mapping](https://github-readme-stack-mapping.vercel.app/api/card?username=RezaFab&mode=techstack&section=backend&theme=dark&hide_border=false&title_color=%238ec5ff&text_color=%23cfe8ff&bg_color=%23070b16&border_color=%23243049&show_projects=true&max_repos_per_stack=5&max_stacks=25)

GitHub Readme Stack Mapping

Local Development

  1. Install dependencies:
npm install
  1. Add .env.local:
GITHUB_TOKEN=your_github_token_here
  1. Run frontend (Vite):
npm run dev
  1. Run API routes (Vercel runtime):
npx vercel dev --listen 3000
  1. Open:
http://localhost:5173

The frontend preview should call http://localhost:3000/api/card?... in local dev.

Deploy to Vercel

  1. Import this repository to Vercel.
  2. Set environment variable GITHUB_TOKEN in Project Settings.
  3. Deploy.

Security notes:

  • Keep token server-side only.
  • Do not expose token as VITE_GITHUB_TOKEN.

Limitations

  • Uses only public repositories available from GitHub APIs.
  • GitHub API rate limits can affect response time or produce temporary empty results, especially without a token.
  • Technology detection is heuristic-based, so some repositories may be categorized imperfectly.
  • Very large profiles may need max_stacks and max_repos_per_stack tuning to keep output readable.

Acknowledgements

Build Check

npm run build

Project Policies

About

Generate an embeddable GitHub README SVG card from your public repositories.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages