{"id":24375255,"url":"https://github.com/asqit/github-languages-widget","last_synced_at":"2025-12-24T13:40:50.036Z","repository":{"id":231743608,"uuid":"782539460","full_name":"Asqit/github-languages-widget","owner":"Asqit","description":"HTTP service for generating stats. for github profile","archived":false,"fork":false,"pushed_at":"2024-11-20T12:35:22.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T05:55:17.827Z","etag":null,"topics":["github","golang","http"],"latest_commit_sha":null,"homepage":"https://github-languages-widget.onrender.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asqit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-05T13:54:14.000Z","updated_at":"2024-08-21T15:32:42.000Z","dependencies_parsed_at":"2024-11-20T22:02:41.110Z","dependency_job_id":null,"html_url":"https://github.com/Asqit/github-languages-widget","commit_stats":null,"previous_names":["asqit/github-languages-widget"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asqit%2Fgithub-languages-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asqit%2Fgithub-languages-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asqit%2Fgithub-languages-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asqit%2Fgithub-languages-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asqit","download_url":"https://codeload.github.com/Asqit/github-languages-widget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243214813,"owners_count":20255046,"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":["github","golang","http"],"created_at":"2025-01-19T05:55:23.187Z","updated_at":"2025-12-24T13:40:50.029Z","avatar_url":"https://github.com/Asqit.png","language":"Go","readme":"# GitHub Languages Widget\n\nA Deno web service that generates a dynamic SVG widget showing the top programming languages used in a GitHub user's public repositories. Perfect for embedding in your GitHub README or personal website to showcase your coding profile.\n\n---\n\n## Features\n\n- **SVG Widget Generation:** Returns an SVG image visualizing the top languages for any GitHub username.\n- **Customizable Appearance:** Change the text color via query parameters.\n- **Live Data:** Fetches language statistics directly from the GitHub API.\n- **Health Endpoint:** `/health` route for service status checks.\n- **Modern Stack:** Built with [Deno](https://deno.com/) and [Hono](https://hono.dev/) for fast, serverless deployment.\n\n---\n\n## Usage\n\nEmbed the widget in your README or website using an image tag:\n\n```markdown\n\u003cimg src=\"https://github-language-widget.deno.dev?username=YOUR_GITHUB_USERNAME\u0026color=YOUR_COLOR_HEX\" alt=\"GitHub Languages Widget\" /\u003e\n```\n\n- Replace `YOUR_GITHUB_USERNAME` with your GitHub username.\n- Optionally, set `color` to customize the text color (e.g., `color=%23000000` for black).\n\n### Example\n\n```markdown\n\u003cimg src=\"https://github-language-widget.deno.dev?username=asqit\u0026color=%23000000\" alt=\"GitHub Languages Widget\" /\u003e\n```\n\n---\n\n## API Endpoints\n\n- `/`\n  **GET**: Returns the SVG widget.\n  **Query Parameters:**\n  - `username` (required): GitHub username\n  - `color` (optional): Text color (hex or named)\n\n- `/health`\n  **GET**: Returns service health status.\n\n---\n\n## How It Works\n\n1. Receives a request with a GitHub username.\n2. Fetches public repositories and their language stats from the GitHub API.\n3. Calculates the top languages by percentage.\n4. Generates and returns an SVG image visualizing the results.\n\n---\n\n## Tech Stack\n\n- **Deno**: Secure runtime for JavaScript and TypeScript.\n- **Hono**: Lightweight web framework for building APIs.\n- **GitHub REST API**: For fetching repository and language data.\n\n---\n\n## License\n\nMIT\n\n---\n\n## Author\n\n[asqit](https://github.com/asqit)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasqit%2Fgithub-languages-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasqit%2Fgithub-languages-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasqit%2Fgithub-languages-widget/lists"}