{"id":15692918,"url":"https://github.com/ultirequiem/use-github","last_synced_at":"2026-02-27T04:31:18.381Z","repository":{"id":45810740,"uuid":"464980692","full_name":"UltiRequiem/use-github","owner":"UltiRequiem","description":":shipit: React hooks for the GitHub API","archived":false,"fork":false,"pushed_at":"2023-10-17T22:40:16.000Z","size":198,"stargazers_count":6,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-09T01:18:06.222Z","etag":null,"topics":["github","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://use-github.js.org","language":"TypeScript","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/UltiRequiem.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}},"created_at":"2022-03-01T16:55:12.000Z","updated_at":"2022-07-16T22:47:46.000Z","dependencies_parsed_at":"2024-10-24T03:51:38.744Z","dependency_job_id":"5936b816-6a67-4af9-9f61-3ca11c83d0a4","html_url":"https://github.com/UltiRequiem/use-github","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fuse-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fuse-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fuse-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fuse-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltiRequiem","download_url":"https://codeload.github.com/UltiRequiem/use-github/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171289,"owners_count":21865299,"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","react","react-hooks"],"created_at":"2024-10-03T18:40:39.173Z","updated_at":"2026-02-27T04:31:18.340Z","avatar_url":"https://github.com/UltiRequiem.png","language":"TypeScript","readme":"# `use-github`\n\n### [View Demo](https://codesandbox.io/s/use-github-example-2231zu)\n\nReact Hooks for the [GitHub Rest API](https://docs.github.com/en/rest) 😎\n\nIt returns an [`SWRHook`](https://swr.vercel.app), but if you don't know what that means, here's an example 👇\n\n```tsx\nimport { useGitHubUser } from \"use-github\";\n\nexport const UserCard = (username: string) =\u003e {\n  const { data: userData } = useGitHubUser(username);\n\n  return \u003c\u003e...\u003c/\u003e;\n};\n```\n\n## Installation ∙ [![npm](https://img.shields.io/npm/v/use-github?color=blue\u0026style=flat-square)](https://www.npmjs.com/package/use-github)\n\n```console\n# npm\nnpm install use-github\n\n# yarn\nyarn add use-github\n\n# pnpm\npnpm add use-github\n```\n\n## TODO\n\nCurrently this package only exposes `useGitHubUser` and `useGitHubPinnedRepos`, there are a lot more endpoints to cover!\n\nPull Request and Issues are more than welcome!\n\n## Docs\n\n- For examples you can check [`examples/`](./examples) 📂\n\n- API Docs ▶ https://use-github.js.org\n\n## Notes\n\nOriginally Done for my website 👇\n\nhttps://ultirequiem.com\n\n[Join my Discord Server!](https://ultirequiem.com/discord)\n\n## License\n\nLicensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fuse-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultirequiem%2Fuse-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fuse-github/lists"}