{"id":20879766,"url":"https://github.com/ryohidaka/use-backlog","last_synced_at":"2026-02-26T12:01:11.033Z","repository":{"id":232616102,"uuid":"781938142","full_name":"ryohidaka/use-backlog","owner":"ryohidaka","description":"React Hooks library for Backlog.","archived":false,"fork":false,"pushed_at":"2025-03-10T13:35:11.000Z","size":228,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T19:52:55.492Z","etag":null,"topics":["backlog","backlog-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/use-backlog","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/ryohidaka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["ryohidaka"],"patreon":null,"open_collective":null,"ko_fi":"ryohidaka","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-04-04T10:27:40.000Z","updated_at":"2025-01-03T09:26:03.000Z","dependencies_parsed_at":"2024-04-10T18:10:47.806Z","dependency_job_id":"0dbb198a-f586-4f6d-b2c2-a28011b3efdb","html_url":"https://github.com/ryohidaka/use-backlog","commit_stats":null,"previous_names":["ryohidaka/use-backlog"],"tags_count":6,"template":false,"template_full_name":"ryohidaka/react-package-template","purl":"pkg:github/ryohidaka/use-backlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fuse-backlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fuse-backlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fuse-backlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fuse-backlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryohidaka","download_url":"https://codeload.github.com/ryohidaka/use-backlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fuse-backlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29858461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"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":["backlog","backlog-api"],"created_at":"2024-11-18T07:17:45.655Z","updated_at":"2026-02-26T12:01:11.015Z","avatar_url":"https://github.com/ryohidaka.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ryohidaka","https://ko-fi.com/ryohidaka","https://ko-fi.com/B0B6TVH92"],"categories":[],"sub_categories":[],"readme":"# use-backlog\n\n[![npm version](https://badge.fury.io/js/use-backlog.svg)](https://badge.fury.io/js/use-backlog)\n![build](https://github.com/ryohidaka/use-backlog/workflows/Build/badge.svg)\n[![codecov](https://codecov.io/gh/ryohidaka/use-backlog/graph/badge.svg?token=DCij5i7WBc)](https://codecov.io/gh/ryohidaka/use-backlog)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/B0B6TVH92)\n\n## Overview\n\nReact Hooks library for [Backlog](https://backlog.com/).\n\n## Installation\n\nYou can install this library using npm:\n\n```shell\nnpm install use-backlog\n```\n\n## Usage\n\nWrap your app with the `BacklogProvider` and provide `host` and `apiKey` property.\n\n```tsx\nimport { BacklogProvider } from \"use-backlog\";\n\nReactDOM.render(\n  \u003cReact.StrictMode\u003e\n    \u003cBacklogProvider\u003e\n      \u003cApp /\u003e\n    \u003c/BacklogProvider\u003e\n  \u003c/React.StrictMode\u003e,\n  document.getElementById(\"root\"),\n);\n```\n\nUse the provided hooks to fetch Backlog data:\n\n- useProjects\n- useProject\n- useIssues\n- useIssue\n- useMyself\n\n```tsx\nimport { useBacklog, useProjects } from \"use-backlog\";\n\nfunction App() {\n  const { setConfig } = useBacklog();\n  const { projects, isLoading } = useProjects();\n\n  setConfig?.({ host: \"example.com\", apiKey: \"hogehoge\" });\n\n  if (isLoading) {\n    return \u003cdiv\u003eLoading...\u003c/div\u003e;\n  }\n  return (\n    \u003c\u003e\n      \u003cul\u003e\n        {projects?.map((project) =\u003e \u003cli key={project.id}\u003e{project.name}\u003c/li\u003e)}\n      \u003c/ul\u003e\n    \u003c/\u003e\n  );\n}\n\nexport default App;\n```\n\n## API\n\n### Hooks\n\n- `useProjects(params, swrConfig)` - Fetch multiple projects.\n\n- `useProject(projectIdOrKey, swrConfig)` - Get a project.\n\n- `useIssues(params, swrConfig)` - Get a list of issues in a project.\n\n- `useIssue(issueIdOrKey, swrConfig)` - Get a issue.\n\n- `useMyself(swrConfig)` - Get own information about user.\n\n### BacklogProvider\n\nThe `BacklogProvider` component should be used to wrap your app.\n\n## Link\n\n- [Backlog](https://backlog.com/)\n- [backlog-js](https://github.com/nulab/backlog-js)\n- [Docs for Backlog API](https://developer.nulab.com/docs/backlog)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryohidaka%2Fuse-backlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryohidaka%2Fuse-backlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryohidaka%2Fuse-backlog/lists"}