{"id":20610908,"url":"https://github.com/darkroomengineering/hamo","last_synced_at":"2025-04-07T13:08:00.156Z","repository":{"id":57163243,"uuid":"459717352","full_name":"darkroomengineering/hamo","owner":"darkroomengineering","description":"Hamo means hook, do the math.","archived":false,"fork":false,"pushed_at":"2024-05-08T22:45:49.000Z","size":42152,"stargazers_count":110,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-08T23:40:16.029Z","etag":null,"topics":["hooks","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkroomengineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":["darkroomengineering"],"polar":"darkroomengineering"}},"created_at":"2022-02-15T19:17:55.000Z","updated_at":"2024-06-13T17:12:19.300Z","dependencies_parsed_at":"2023-10-11T12:43:51.773Z","dependency_job_id":"91a03f52-1919-48c0-9933-3a2d7934395d","html_url":"https://github.com/darkroomengineering/hamo","commit_stats":null,"previous_names":["darkroomengineering/hamo"],"tags_count":45,"template":false,"template_full_name":"darkroomengineering/satus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkroomengineering%2Fhamo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkroomengineering%2Fhamo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkroomengineering%2Fhamo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkroomengineering%2Fhamo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkroomengineering","download_url":"https://codeload.github.com/darkroomengineering/hamo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657281,"owners_count":20974345,"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","react"],"created_at":"2024-11-16T10:18:19.770Z","updated_at":"2025-04-07T13:08:00.126Z","avatar_url":"https://github.com/darkroomengineering.png","language":"JavaScript","funding_links":["https://github.com/sponsors/darkroomengineering","https://polar.sh/darkroomengineering"],"categories":["TypeScript"],"sub_categories":[],"readme":"[![HAMO](https://assets.darkroom.engineering/hamo/banner.gif)](https://github.com/darkroomengineering/hamo)\n\n## Introduction\n\n`hāmō` means hook in Latin, this package is a collection of custom performance-oriented React hooks.\n\n## Installation\n\n```bash\n$ npm i hamo\n```\n\n## Hooks\n\n[`useRect`](./packages/react/src/use-rect/README.md) – tracks element position within the page\n\n[`useWindowSize`](./packages/react/src/use-window-size/README.md) – tracks window dimensions\n\n[`useResizeObserver`](./packages/react/src/use-resize-observer/README.md) – observes element dimensions using ResizeObserver\n\n[`useLazyState`](./packages/react/src/use-lazy-state/README.md) – runs a callback when the state changes without re-rendering the component\n\n[`useTimeout`](./packages/react/src/use-timeout/README.md) – runs a callback after a specified delay\n\n[`useObjectFit`](./packages/react/src/use-object-fit/README.md) – calculates the x and y scale of an object based on its parent width and height\n\n[`useIntersectionObserver`](./packages/react/src/use-intersection-observer/README.md) – observes element intersection with the viewport\n\n## License\n\nMIT © [darkroom.engineering](https://github.com/darkroomengineering)\n\n## Shoutout\n\nThank you to [Luca Gesmundo](https://github.com/lucagez) for having transfered us the npm package name 🙏.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkroomengineering%2Fhamo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkroomengineering%2Fhamo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkroomengineering%2Fhamo/lists"}