{"id":13433239,"url":"https://github.com/alibaba/hooks","last_synced_at":"2025-05-12T18:14:33.331Z","repository":{"id":36965450,"uuid":"194027578","full_name":"alibaba/hooks","owner":"alibaba","description":"A high-quality \u0026 reliable React Hooks library.   https://alibaba.github.io/hooks/","archived":false,"fork":false,"pushed_at":"2025-05-05T21:47:12.000Z","size":12707,"stargazers_count":14402,"open_issues_count":256,"forks_count":2759,"subscribers_count":96,"default_branch":"master","last_synced_at":"2025-05-12T18:13:17.154Z","etag":null,"topics":["ahooks","hooks-library","react","react-hooks","umi-hooks"],"latest_commit_sha":null,"homepage":"https://ahooks.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/alibaba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.MD","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-06-27T05:20:06.000Z","updated_at":"2025-05-12T16:00:34.000Z","dependencies_parsed_at":"2024-01-19T04:30:46.456Z","dependency_job_id":"3b68c2a3-dd63-4459-9f21-6f8afd053727","html_url":"https://github.com/alibaba/hooks","commit_stats":{"total_commits":1990,"total_committers":267,"mean_commits":7.453183520599251,"dds":0.7557788944723618,"last_synced_commit":"c7bb04c42bd8800164a112fd448c263bd16b63d4"},"previous_names":["umijs/hooks"],"tags_count":246,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Fhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Fhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Fhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Fhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alibaba","download_url":"https://codeload.github.com/alibaba/hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253795161,"owners_count":21965487,"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":["ahooks","hooks-library","react","react-hooks","umi-hooks"],"created_at":"2024-07-31T02:01:22.950Z","updated_at":"2025-05-12T18:14:33.311Z","avatar_url":"https://github.com/alibaba.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ahooks.js.org\"\u003e\n    \u003cimg width=\"200\" src=\"https://ahooks.js.org/logo.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nA high-quality \u0026 reliable React Hooks library.\n\n[![NPM version][image-1]][1]\n[![NPM downloads][image-2]][2]\n[![npm](https://img.shields.io/npm/dw/ahooks-v2?label=downloads%28v2%29)](https://www.npmjs.com/package/ahooks-v2)\n[![npm](https://img.shields.io/github/issues/alibaba/hooks)](https://github.com/alibaba/hooks/issues)\n[![Coverage Status](https://coveralls.io/repos/github/alibaba/hooks/badge.svg?branch=master)](https://coveralls.io/github/alibaba/hooks?branch=master)\n![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks/dist/ahooks.js?label=gzip%20size\u0026compression=gzip)\n[![Percentage of issues still open](http://isitmaintained.com/badge/open/alibaba/hooks.svg)](http://isitmaintained.com/project/alibaba/hooks \"Percentage of issues still open\")\n[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/alibaba/hooks.svg)](http://isitmaintained.com/project/alibaba/hooks \"Average time to resolve an issue\")\n![GitHub](https://img.shields.io/github/license/alibaba/hooks)\n\nEnglish | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh-CN.md)\n\n\u003c/div\u003e\n\n## 📚 Documentation\n\n- [English](https://ahooks.js.org/)\n- [中文](https://ahooks.js.org/zh-CN/)\n\n## ✨ Features\n\n- Easy to learn and use\n- Supports SSR\n- Special treatment for functions, avoid closure problems\n- Contains a large number of advanced Hooks that are refined from business scenarios\n- Contains a comprehensive collection of basic Hooks\n- Written in TypeScript with predictable static types\n\n## 📦 Install\n\n```bash\n$ npm install --save ahooks\n# or\n$ yarn add ahooks\n# or\n$ pnpm add ahooks\n# or\n$ bun add ahooks\n```\n\n## 🔨 Usage\n\n```ts\nimport { useRequest } from \"ahooks\";\n```\n\n## 💻 Online Demo\n\n[![Edit demo for ahooks](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/demo-for-ahooks-forked-fg79k?file=/src/App.js)\n\n## 🤝 Contributing\n\n```bash\n$ git clone git@github.com:alibaba/hooks.git\n$ cd hooks\n$ pnpm run init\n$ pnpm start\n```\n\nOpen your browser and visit http://127.0.0.1:8000\n\nWe welcome all contributions, please read our [CONTRIBUTING.MD](https://github.com/alibaba/hooks/blob/master/CONTRIBUTING.MD) first, let's build a better hooks library together.\n\nThanks to all the contributors:\n\n\u003ca href=\"https://github.com/alibaba/hooks/graphs/contributors\"\u003e\n  \u003cimg src=\"https://opencollective.com/ahooks/contributors.svg?width=960\u0026button=false\" alt=\"contributors\" /\u003e\n\u003c/a\u003e\n\n## 👥 Discuss\n\n\u003cimg src=\"https://github.com/user-attachments/assets/0ba7a370-2a69-442f-b746-9eb16bbbc46c\" width=\"200\" style='display:inline' /\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/a08693d3-bfcc-4aca-b2b0-2d9c23012858\" width=\"200\" style='display:inline' /\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/15a505a7-06d1-4e72-ab02-6fad968323f1\" width=\"200\" style='display:inline' /\u003e\n\n[1]: https://www.npmjs.com/package/ahooks\n[2]: https://npmjs.org/package/ahooks\n[image-1]: https://img.shields.io/npm/v/ahooks.svg?style=flat\n[image-2]: https://img.shields.io/npm/dw/ahooks.svg?style=flat\n","funding_links":[],"categories":["TypeScript","Catalogs","Utilities","合集","七、GitHub 优质仓库精选","Uncategorized","语言资源库","目录","Projects List","Thanks","📖 Categories"],"sub_categories":["Hooks Collection","React","Uncategorized","typescript","Vue 2","Hooks \u0026 Data Fetching","\u003ca id=\"hook\"\u003ehook\u003c/a\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibaba%2Fhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falibaba%2Fhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibaba%2Fhooks/lists"}