{"id":20372658,"url":"https://github.com/vincecao/use-tools","last_synced_at":"2026-04-10T11:01:55.839Z","repository":{"id":40333953,"uuid":"502872484","full_name":"vincecao/use-tools","owner":"vincecao","description":"A group of reusable custom hooks for making react developer life easier. The library will be auto published to npm and GitHub registries by GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-02-21T04:51:35.000Z","size":1509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T06:18:34.893Z","etag":null,"topics":["actions","hooks","npm-package","react","rollup","typescript"],"latest_commit_sha":null,"homepage":"https://vincecao.github.io/use-tools/","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/vincecao.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":"2022-06-13T08:34:55.000Z","updated_at":"2025-02-21T04:51:39.000Z","dependencies_parsed_at":"2025-01-15T05:43:09.003Z","dependency_job_id":"00d6658b-f989-4b19-8ca8-b26540330235","html_url":"https://github.com/vincecao/use-tools","commit_stats":{"total_commits":63,"total_committers":2,"mean_commits":31.5,"dds":"0.38095238095238093","last_synced_commit":"e1334b3bf346fd59975c64788797fa0dd93cd1b1"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/vincecao/use-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincecao%2Fuse-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincecao%2Fuse-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincecao%2Fuse-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincecao%2Fuse-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincecao","download_url":"https://codeload.github.com/vincecao/use-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincecao%2Fuse-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"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":["actions","hooks","npm-package","react","rollup","typescript"],"created_at":"2024-11-15T01:14:21.670Z","updated_at":"2026-04-10T11:01:55.819Z","avatar_url":"https://github.com/vincecao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [use-tools](https://www.npmjs.com/package/@vincecao/use-tools)\n\nA group of reusable custom hooks for making react developer life easier.\n\n[![npm version](https://badge.fury.io/js/@vincecao%2Fuse-tools.svg)](https://badge.fury.io/js/@vincecao%2Fuse-tools)\n[![npm checks](https://badgen.net/github/checks/vincecao/use-tools)](https://github.com/vincecao/use-tools/actions)\n\n| Hooks      | Description |\n| ----------- | ----------- |\n| [usePromiseState][usePromiseState-link] | Retrieving data from a remote by a `promise` function and use it like `useState`. |\n| [useTimeout][useTimeout-link] | Connecting `setTimeout` into React state world. |\n| [useShuffle][useShuffle-link] | A hook returns a new shuffled list for each unique given array. |\n| [useFetch][useFetch-link] | A convenient wrapper for `$fetch` function. React implementation of `useLazyFetch` from [Nuxt3](https://v3.nuxtjs.org/api/composables/use-lazy-fetch) API. |\n| [useAppearance][useAppearance-link] | A hook as well as its provider allow you to override or reset current appearance based on system preference. |\n| [useStickyRef][useStickyRef-link] | One reusable hook for returning a `sticky` boolean flag based on designated gate element window position. |\n\n## Example\n\nPlease check more examples at below links\n- [**Demo Site**](https://vincecao.github.io/use-tools)\n- [Code Sample](https://github.com/vincecao/use-tools/tree/master/example)\n\n## Installation\n\n```bash\n# Install latest package\n# npm\nnpm i @vincecao/use-tools\n# yarn\nyarn add @vincecao/use-tools\n\n# Install beta package\n# npm\nnpm i @vincecao/use-tools@beta\n# yarn\nyarn add @vincecao/use-tools@beta\n```\n\nThis package is automatically published in [NPMJS](https://www.npmjs.com/package/@vincecao/use-tools) and [GITHUB](https://github.com/vincecao/use-tools/packages/1555582) npm registry.\n\n_To install package from Github npm registry, add below file in your repo before run `npm i` or `yarn add`_.\n\n```bash\n# .npmrc\n@vincecao:registry=https://npm.pkg.github.com\n```\n\nYou can also install directly from current repo master\n```bash\n# npm\nnpm i vincecao/use-tools\nnpm i github:vincecao/use-tools\n\n# yarn\nyarn add vincecao/use-tools\nyarn add github:vincecao/use-tools\n```\n\n### Release Method\n- When a Pull Request is merged to the master, Github Actions will create and publish a beta version.\n- When a Release is created with a new tag version, Github Actions will create and publish a stable version.\n\n### Running live example\n\n```bash\nyarn\nyarn start\n\ncd example\nyarn\nyarn start\n```\n\n[usePromiseState-link]: https://github.com/vincecao/use-tools/tree/master/src/usePromiseState\n[useTimeout-link]: https://github.com/vincecao/use-tools/tree/master/src/useTimeout\n[useShuffle-link]: https://github.com/vincecao/use-tools/tree/master/src/useShuffle\n[useFetch-link]: https://github.com/vincecao/use-tools/tree/master/src/useFetch\n[useAppearance-link]: https://github.com/vincecao/use-tools/tree/master/src/useAppearance\n[useStickyRef-link]: https://github.com/vincecao/use-tools/tree/master/src/useStickyRef\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincecao%2Fuse-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincecao%2Fuse-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincecao%2Fuse-tools/lists"}