{"id":27940742,"url":"https://github.com/olafsulich/use-haki","last_synced_at":"2025-05-07T10:20:20.804Z","repository":{"id":55137079,"uuid":"269418426","full_name":"olafsulich/use-haki","owner":"olafsulich","description":"React Hooks Library 🐟","archived":false,"fork":false,"pushed_at":"2021-01-07T19:12:51.000Z","size":1096,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T10:19:36.954Z","etag":null,"topics":["hooks","hooks-api-react","react","react-hooks-library","reacthooks"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olafsulich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-04T17:08:19.000Z","updated_at":"2023-10-12T02:23:03.000Z","dependencies_parsed_at":"2022-08-14T13:10:14.865Z","dependency_job_id":null,"html_url":"https://github.com/olafsulich/use-haki","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olafsulich%2Fuse-haki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olafsulich%2Fuse-haki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olafsulich%2Fuse-haki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olafsulich%2Fuse-haki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olafsulich","download_url":"https://codeload.github.com/olafsulich/use-haki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856743,"owners_count":21814893,"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":["hooks","hooks-api-react","react","react-hooks-library","reacthooks"],"created_at":"2025-05-07T10:20:20.052Z","updated_at":"2025-05-07T10:20:20.746Z","avatar_url":"https://github.com/olafsulich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003euse-haki\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/olafsulich/use-haki/settings\"\u003e\n  \u003cimg\n    height=\"80\"\n    width=\"80\"\n    alt=\"fish\"\n    src=\"https://i.ibb.co/SmkHMr2/fishhook.png\"\n  /\u003e\n\u003c/a\u003e\n\n\u003cp\u003eReact hooks library\u003c/p\u003e\n\n\u003cbr /\u003e\n\n[**Contributing**](./CONTRIBUTING.md) | [**Code of Conduct**](./CODE_OF_CONDUCT.md) | [**Docs**](./docs)\n\n\u003cbr /\u003e\n\u003c/div\u003e\n\n\u003chr /\u003e\n\n\u003c!-- prettier-ignore-start --\u003e\n[![Build Status](https://img.shields.io/circleci/build/github/olafsulich/use-haki/master?style=flat-square)](https://app.circleci.com/pipelines/github/olafsulich/use-haki)\n[![npm](https://img.shields.io/npm/v/use-haki?style=flat-square)](https://www.npmjs.com/package/use-haki)\n[![downloads](https://img.shields.io/npm/dm/use-haki?style=flat-square)](https://www.npmtrends.com/use-haki)\n[![GitHub license](https://img.shields.io/github/license/olafsulich/use-haki.svg?style=flat-square)](https://github.com/olafsulich/usehaki/blob/master/LICENSE)\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![Code of Conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](https://github.com/testing-library/react-hooks-testing-library/blob/master/CODE_OF_CONDUCT.md)\n\n[![Star on GitHub](https://img.shields.io/github/stars/olafsulich/use-haki.svg?style=social)](https://github.com/olafsulich/use-haki/stargazers)\n\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003cpre\u003enpm i \u003ca href=\"https://www.npmjs.com/package/use-haki\"\u003euse-haki\u003c/a\u003e\u003c/pre\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n## Hooks\n\n- [`useClickOutside`](./docs/useClickOutside.md) \u0026mdash; allows you to detect clicks outside of a specified element.\n\n- [`useEventListener`](./docs/useEventListener.md) \u0026mdash; provide a declarative hook for events listeners.\n\n- [`useFetch`](./docs/useFetch.md) \u0026mdash; hook for fetch requests.\n\n- [`useGeoPosition`](./docs/useGeoPosition.md) \u0026mdash; gives device current location.\n\n- [`useHelloRomanJoke`](./docs/useHelloRomanJoke.md) \u0026mdash; fetch random [Hello Roman](https://www.youtube.com/channel/UCq8XmOMtrUCb8FcFHQEd8_g) joke.\n\n- [`useHover`](./docs/useHover.md) \u0026mdash; detect mouse move on a specified element.\n\n- [`useIdle`](./docs/useIdle.md) \u0026mdash; tracks if user on the page is idle.\n\n- [`useInterval`](./docs/useInterval.md) \u0026mdash; provides setInterval in react hook.\n\n- [`useKeyPress`](./docs/useKeyPress.md) \u0026mdash; detect when user is pressing a specific key.\n\n- [`useLocalStorage`](./docs/useLocalStorage.md) \u0026mdash; manage your local storage in easy way.\n\n- [`useMousePosition`](./docs/useMousePosition.md) \u0026mdash; tracks mouse position.\n\n- [`usePageWidth`](./docs/usePageWidth.md) \u0026mdash; gives current page width.\n\n- [`useScrollPosition`](./docs/useScrollPosition.md) \u0026mdash; tracks scroll position.\n\n- [`useToggle`](./docs/useToggle.md) \u0026mdash; tracks toggle state.\n\n- [`useUnsplash`](./docs/useUnsplash.md) \u0026mdash; gives random image from [Unsplash](https://unsplash.com/).\n\n- [`useDateTimeFormat`](./docs/useDateTimeFormat.md) \u0026mdash; enable language-sensitive date formatting\n\n- [`usePluralRules`](./docs/usePluralRules.md) \u0026mdash; find ordinal for given number\n\n- [`useIntersection`](./docs/useIntersection.md) \u0026mdash; use intersection observer listener in an easy way\n\n- [`useMeasure`](./docs/useMeasure.md) \u0026mdash; gives sizes of an element and its position\n\n- [`useTheme`](./docs/useTheme.md) \u0026mdash; dynamically change the appearance of your app using CSS variables with light/dark mode.\n\n  \u003cbr /\u003e\n\n## Technologies\n\n- React\n- TypeScript\n- Microbundle\n- CircleCI\n- Eslint \u0026 Prettier\n- Husky \u0026 Lint-staged\n- React Testing Library \u0026 React Hooks Testing Library\n- Github Actions\n\n  \u003cbr /\u003e\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://frontlive.pl\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/46969484?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eOlaf Sulich\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/olafsulich/use-haki/commits?author=olafsulich\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#maintenance-olafsulich\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"https://github.com/olafsulich/use-haki/commits?author=olafsulich\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#ideas-olafsulich\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.linkedin.com/in/wloszynski/\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/42609894?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAdrian Wloszynski\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/olafsulich/use-haki/commits?author=wloszynski\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://allcontributors.org/) specification.\nContributions of any kind welcome!\n\n## Issues\n\n_Looking to contribute? Look for the\n[Good First Issue](https://github.com/olafsulich/use-haki/issues?utf8=✓\u0026q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A\"good+first+issue\"+)\nlabel._\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n[**See Bugs**](https://github.com/olafsulich/use-haki/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Acreated-desc)\n\n### 💡 Feature Requests\n\nPlease file an issue to suggest new features/hooks. Vote on feature requests by adding a 👍. This helps\nme prioritize what to work on.\n\n[**See Feature Requests**](https://github.com/olafsulich/use-haki/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc+label%3Aenhancement+is%3Aopen)\n\n### ❓ Questions\n\nFor questions related to using the library, you can\n[raise issue here](https://github.com/olafsulich/use-haki/issues/new), or\nsend me an email: **olafsulich@gmail.com**\n\n  \u003cbr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folafsulich%2Fuse-haki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folafsulich%2Fuse-haki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folafsulich%2Fuse-haki/lists"}