{"id":48037848,"url":"https://github.com/jgc777/githubrepoapi","last_synced_at":"2026-04-04T14:00:41.875Z","repository":{"id":272336870,"uuid":"916243503","full_name":"jgc777/GitHubRepoAPI","owner":"jgc777","description":"Get a list of the GitHub repos of a given user","archived":false,"fork":false,"pushed_at":"2025-05-26T19:02:30.000Z","size":395,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-26T20:19:41.102Z","etag":null,"topics":["github","html","javascript","utility"],"latest_commit_sha":null,"homepage":"http://jgc.linkpc.net/GitHubRepoAPI/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgc777.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-13T18:13:17.000Z","updated_at":"2025-05-26T19:02:33.000Z","dependencies_parsed_at":"2025-01-14T21:20:44.860Z","dependency_job_id":"f96c9f60-4be8-40bb-98f4-158e052088fc","html_url":"https://github.com/jgc777/GitHubRepoAPI","commit_stats":null,"previous_names":["jgc777/github-repos","jgc777/getreposbyuser","jgc777/githubrepoapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jgc777/GitHubRepoAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgc777%2FGitHubRepoAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgc777%2FGitHubRepoAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgc777%2FGitHubRepoAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgc777%2FGitHubRepoAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgc777","download_url":"https://codeload.github.com/jgc777/GitHubRepoAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgc777%2FGitHubRepoAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","html","javascript","utility"],"created_at":"2026-04-04T14:00:28.615Z","updated_at":"2026-04-04T14:00:41.841Z","avatar_url":"https://github.com/jgc777.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHubRepoAPI\n![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge\u0026logo=github)\n![API](https://img.shields.io/badge/API-black?style=for-the-badge)\n[![LICENSE](https://img.shields.io/badge/Custom_LICENSE-black?style=for-the-badge)](./LICENSE)\n\nGet the github repos of a user, with more options. It doesn't want to show all the repos if they are more than 30. If I fixed it it wouldn't work without an API key. I know the appendRepos() works but I don't know if the API ones completely work.\n\n## How to use it\n Just load [the script](./api.js) and do `appendRepos(a, b);` (or use [the simplified edition](./#simplified-edition)).\n\n\u003e [!IMPORTANT]\n\u003e Each IP has a GitHub API rate limit of 60 requests per hour.\n\n### Example\n ```html\n \u003cscript src=\"https://cdn.jsdelivr.net/gh/jgc777/GitHubRepoAPI@latest/api.js\"\u003e\u003c/script\u003e \u003c!-- Load the API --\u003e\n \u003cul id=\"repo-list\"\u003e\u003c/ul\u003e \u003c!-- Here will appear the repo list --\u003e\n \u003cscript\u003e\n    const token = 'YOUR_API_KEY'; // Your API key with public repos read access\n    appendRepos(\"YOUR_GH_USERNAME\", repo-list); // Call appendRepos\n\u003c/script\u003e \u003c!-- Use the API to get the list --\u003e\n ```\n\n### Simplified edition\n\u003e [`simplified.js`](http://jgc777.github.io/GitHubRepoAPI/simplified.js)\n\n ```html\n \u003cmeta name=\"github-username\" content=\"YOUR_GH_USERNAME\"\u003e \u003c!-- Define the user whose repos must be shown --\u003e\n \u003cscript src=\"https://cdn.jsdelivr.net/gh/jgc777/GitHubRepoAPI@latest/simplified.js\"\u003e\u003c/script\u003e \u003c!-- Load the Simplified API --\u003e\n \u003cul id=\"repo-list\"\u003e\u003c/ul\u003e \u003c!-- Here will appear the repo list --\u003e\n ```\n\nIt's a simplified version of the code with no sorting and which automatically appends the repos to the repo-list list element (`\u003cul id=\"repo-list\"\u003e\u003c/ul\u003e` or similar). Works without an API key but you have to specify the username in the html with `\u003cmeta name=\"github-username\" content=\"your-github-username\"\u003e`.\n\n## Functions\nHere are the functions that this program includes.\n\n### appendRepos(username, repoListElement)\n Appends the repos of a given username to a list, with the links to them ordered by pinned and starcount.\n\n### getReposbyUsername(username)\n Returns a (not sorted) list of all the repos for a given username.\n\n### getSortedRepoList(username)\n Returns a (sorted by pinned and starcount) list of all the repos for a given username.\n\n### IsPinned(owner, repo)\n\u003e Needs an API key, else returns false.\n\n Return if (true/false) a repo is pinned in the owners profile.\n\n### starCount(owner, repo)\n\u003e Needs an API key, else returns 0.\n\n Returns the starcount of a given repo.\n\n## Demo\n\u003ca hidden href=\"https://jgc777.github.io/GitHubRepoAPI/\"\u003eOnly availabe on the web!\u003c/a\u003e\n\nIf it doesn't work click [here](./demo/).\n \u003ciframe src=\"./demo/\" width=\"100%\" height=\"auto\"\u003eError loading the demo\u003c/iframe\u003e\n\n## Simplified Version Demo\n\u003ca hidden href=\"https://jgc777.github.io/GitHubRepoAPI/\"\u003eOnly availabe on the web!\u003c/a\u003e\n\nIf it doesn't work click [here](./demo/simplified/).\n\u003ciframe src=\"./demo/simplified/\" width=\"100%\" height=\"auto\"\u003eError loading the simpliified demo\u003c/iframe\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgc777%2Fgithubrepoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgc777%2Fgithubrepoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgc777%2Fgithubrepoapi/lists"}