{"id":28904733,"url":"https://github.com/nottherealwallyx/codestats-badge","last_synced_at":"2026-05-10T03:05:56.522Z","repository":{"id":299985715,"uuid":"1004544938","full_name":"NotTheRealWallyx/codestats-badge","owner":"NotTheRealWallyx","description":"Dynamic SVG badge generator for Code::Stats profiles","archived":false,"fork":false,"pushed_at":"2025-06-19T08:43:54.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T09:41:45.825Z","etag":null,"topics":["code-stats","codestats","dashboard","developer-tools","dynamic-badge","github-badge","nodejs","open-source","readme-badge","svg-badge","vercel"],"latest_commit_sha":null,"homepage":"https://codestats-badge.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotTheRealWallyx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-18T19:49:17.000Z","updated_at":"2025-06-19T08:59:23.000Z","dependencies_parsed_at":"2025-06-19T09:41:48.031Z","dependency_job_id":"79f3e036-7b00-4ce0-99ff-45dd984b395f","html_url":"https://github.com/NotTheRealWallyx/codestats-badge","commit_stats":null,"previous_names":["nottherealwallyx/codestats-badge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NotTheRealWallyx/codestats-badge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTheRealWallyx%2Fcodestats-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTheRealWallyx%2Fcodestats-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTheRealWallyx%2Fcodestats-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTheRealWallyx%2Fcodestats-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotTheRealWallyx","download_url":"https://codeload.github.com/NotTheRealWallyx/codestats-badge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotTheRealWallyx%2Fcodestats-badge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261126449,"owners_count":23113312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-stats","codestats","dashboard","developer-tools","dynamic-badge","github-badge","nodejs","open-source","readme-badge","svg-badge","vercel"],"created_at":"2025-06-21T13:02:03.202Z","updated_at":"2026-05-10T03:05:56.515Z","avatar_url":"https://github.com/NotTheRealWallyx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codestats-badge\n\n[![CodeFactor](https://www.codefactor.io/repository/github/nottherealwallyx/codestats-badge/badge)](https://www.codefactor.io/repository/github/nottherealwallyx/codestats-badge)\n[![CI](https://github.com/NotTheRealWallyx/codestats-badge/actions/workflows/ci.yml/badge.svg)](https://github.com/NotTheRealWallyx/codestats-badge/actions/workflows/ci.yml) [![codecov](https://codecov.io/github/NotTheRealWallyx/codestats-badge/graph/badge.svg?token=RW1A4NQTRT)](https://codecov.io/github/NotTheRealWallyx/codestats-badge)\n\n📊 A dynamic SVG badge generator for [Code::Stats](https://codestats.net) profiles, perfect for embedding your XP and top languages in your GitHub README.\n\n## 🚀 Features\n\n### XP Badge:\n\n- Displays **total XP** from your Code::Stats profile\n- Shows your **top languages** by XP\n- Returns a **custom SVG** you can embed anywhere\n\n### Activity Badge:\n\n- Displays **activity squares** for daily XP contributions\n- Returns a **custom SVG** you can embed anywhere\n\n## 🎨 Customization\n\nYou can control the appearance of your badges using query parameters:\n\n### XP Badge:\n\n- **Show/hide progress bar:**  \n  Use `showProgressBar=false` to hide the progress bar.  \n  Example:\n\n  ```\n  /api/code-stats?user=yourusername\u0026showProgressBar=false\n  ```\n\n- **Display language XP instead of level:**  \n  Use `showLangXP=true` to show XP for each language instead of the level.  \n  Example:\n\n  ```\n  /api/code-stats?user=yourusername\u0026showLangXP=true\n  ```\n\n- **Theme (light or dark):**  \n  Use `theme=light` for a light background, or `theme=dark` for a dark background (default is dark).  \n  Example:\n\n  ```\n  /api/code-stats?user=yourusername\u0026theme=light\n  ```\n\n- **Limit number of languages displayed:**  \n  Use `limit=` to set how many top languages to show (default is 6, max is 20).  \n  Example:\n\n  ```\n  /api/code-stats?user=yourusername\u0026limit=10\n  ```\n\n- **Compact mode:**  \n  Use `compact=true` to display a simplified badge showing only total XP.  \n  Example:\n\n  ```\n  /api/code-stats?user=yourusername\u0026compact=true\n  ```\n\n  ![Compact Code::Stats](https://codestats-badge.vercel.app/api/code-stats?user=Wallyx\u0026compact=true)\n\n### Activity Badge:\n\n- **Theme (light or dark):**  \n  Use `theme=light` for a light background, or `theme=dark` for a dark background (default is dark).  \n  Example:\n\n  ```\n  /api/code-stats/activity?user=yourusername\u0026theme=light\n  ```\n\n  ![Activity Code::Stats](https://codestats-badge.vercel.app/api/code-stats/activity?user=Wallyx\u0026theme=light)\n\n## 💻 Local Development\n\nThis project supports both local Express server and Vercel serverless function usage.\n\n### 1. Install dependencies\n\n```bash\nnpm install\n```\n\n### 2. Run the local Express server\n\n```bash\nnpm run start\n```\n\nThen open:\n\n```\nhttp://localhost:3000/api/code-stats?user=yourusername\n```\n\n### 3. (Optional) Use Vercel for local development\n\nIf you want to test the Vercel serverless function locally:\n\n```bash\nvercel dev\n```\n\n## 🚀 Deployment\n\nThis project works great on:\n\n- [Vercel](https://vercel.com) (recommended, uses `api/code-stats.js` serverless function)\n- [Render](https://render.com) (runs Express server)\n- [Heroku](https://heroku.com) (runs Express server)\n- Any Node.js-capable host\n\n## 📄 License\n\nThis project is licensed under the GNU GPL v3. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnottherealwallyx%2Fcodestats-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnottherealwallyx%2Fcodestats-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnottherealwallyx%2Fcodestats-badge/lists"}