From fffdb837b891e3ed4018dc0155105049e4d1bca8 Mon Sep 17 00:00:00 2001 From: alemoraru Date: Sun, 15 Feb 2026 12:09:40 +0200 Subject: [PATCH 1/8] feat: add index.html homepage --- public/index.html | 614 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 614 insertions(+) create mode 100644 public/index.html diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..8cd3c46 --- /dev/null +++ b/public/index.html @@ -0,0 +1,614 @@ + + + + + + GitHub Flex - Flex Your Stats! + + + + + + +
+
+

GitHub Flex

+

Flex your GitHub stats with style!

+

+ Customizable SVG badges for your GitHub profile. Because your profile + deserves to look as good as your code! +

+ View on GitHub +
+ +
+

Quick Start

+

+ Add these to your GitHub profile README to show off your stats: +

+ +
+ ![Stats](https://github-flex.vercel.app/api/stats?username=YOUR_USERNAME&theme=dark) + +
+
+ ![Languages](https://github-flex.vercel.app/api/languages?username=YOUR_USERNAME) + +
+
+ ![Repo](https://github-flex.vercel.app/api/repo?username=OWNER&repo=REPO_NAME) + +
+
+ +
+

Examples

+
+
+

Stats Card

+ Stats Example +
+
+

Languages

+ Languages Example +
+
+
+ +
+

Available Themes

+

+ Choose from these awesome themes: +

+
+
default
+
dark
+
radical
+
merko
+
gruvbox
+
tokyonight
+
bubblegum
+
ocean
+
+
+ +
+

API Endpoints

+ +
+

/api/stats

+

Show your GitHub statistics

+
+ username (required) - Your GitHub username +
+
+ theme - Color theme (default, dark, radical, etc.) +
+
+ hide_border - Set to "true" to hide border +
+
+ hide_title - Set to "true" to hide title +
+
+ +
+

/api/languages

+

Display your most used languages

+
+ username (required) - Your GitHub username +
+
theme - Color theme
+
+ langs_count - Number of languages to show (default: 5) +
+
+ exclude - Comma-separated languages to exclude +
+
+ +
+

/api/repo

+

+ Show stats for a specific repository +

+
+ username (required) - Repository owner +
+
+ repo (required) - Repository name +
+
theme - Color theme
+
+ hide_border - Set to "true" to hide border +
+
+
+ + +
+ + + + From 9d7738766bf9b217578ef05e51d6d9201e357a6a Mon Sep 17 00:00:00 2001 From: alemoraru Date: Sun, 15 Feb 2026 12:19:01 +0200 Subject: [PATCH 2/8] feat: small mods --- lib/card.ts | 1 - package.json | 5 +---- public/index.html | 50 +++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 7 deletions(-) diff --git a/lib/card.ts b/lib/card.ts index 66e73b8..d1ba352 100644 --- a/lib/card.ts +++ b/lib/card.ts @@ -141,7 +141,6 @@ export function generateStatItem( label: string, value: string | number, index: number, - bold = true, ): string { // Arrange stats in a 2-column grid layout with playful rotations const col = index % 2; diff --git a/package.json b/package.json index 2bc87e4..1d2e0fe 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "type-check": "tsc --noEmit", "format:check": "prettier --check .", "format:write": "prettier --write .", - "lint:check": "eslint .", + "lint:check": "eslint . --max-warnings=0", "lint:fix": "eslint . --fix" }, "keywords": [ @@ -48,8 +48,5 @@ "prettier": "3.8.0", "typescript": "^5.9.3", "vercel": "^50.17.1" - }, - "engines": { - "node": ">=23" } } diff --git a/public/index.html b/public/index.html index 8cd3c46..770ea0a 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,53 @@ - GitHub Flex - Flex Your Stats! + GitHub Flex - Customizable GitHub Stats Badges + + + + + + + + + + + + + + + + + + + + + + /api/repo