{"id":22131962,"url":"https://github.com/seaofvoices/react-lua-hooks","last_synced_at":"2025-10-19T11:55:24.572Z","repository":{"id":234539189,"uuid":"742143529","full_name":"seaofvoices/react-lua-hooks","owner":"seaofvoices","description":"Hook collections for React Lua","archived":false,"fork":false,"pushed_at":"2024-11-28T21:30:25.000Z","size":68,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T08:51:29.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/seaofvoices.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":["jeparlefrancais"],"ko_fi":"seaofvoices"}},"created_at":"2024-01-11T21:09:18.000Z","updated_at":"2025-03-21T02:22:11.000Z","dependencies_parsed_at":"2024-04-19T19:03:23.364Z","dependency_job_id":"3419710e-4b1e-414e-bd99-3fcd5656c026","html_url":"https://github.com/seaofvoices/react-lua-hooks","commit_stats":null,"previous_names":["seaofvoices/react-lua-hooks"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/seaofvoices/react-lua-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaofvoices%2Freact-lua-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaofvoices%2Freact-lua-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaofvoices%2Freact-lua-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaofvoices%2Freact-lua-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seaofvoices","download_url":"https://codeload.github.com/seaofvoices/react-lua-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaofvoices%2Freact-lua-hooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264048659,"owners_count":23549375,"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":[],"created_at":"2024-12-01T18:38:40.137Z","updated_at":"2025-10-19T11:55:19.552Z","avatar_url":"https://github.com/seaofvoices.png","language":"Lua","readme":"\u003cdiv align=\"center\"\u003e\n\n[![checks](https://github.com/seaofvoices/react-lua-hooks/actions/workflows/test.yml/badge.svg)](https://github.com/seaofvoices/react-lua-hooks/actions/workflows/test.yml)\n[![GitHub top language](https://img.shields.io/github/languages/top/seaofvoices/react-lua-hooks)](https://github.com/luau-lang/luau)\n![version](https://img.shields.io/npm/v/@seaofvoices/react-lua-hooks?label=react-lua-hooks)\n![version](https://img.shields.io/npm/v/@seaofvoices/react-lua-hooks?label=react-roblox-hooks)\n![license](https://img.shields.io/npm/l/@seaofvoices/react-lua-hooks)\n![npm](https://img.shields.io/npm/dt/@seaofvoices/react-lua-hooks?label=react-lua-hooks%20downloads)\n![npm](https://img.shields.io/npm/dt/@seaofvoices/react-roblox-hooks?label=react-roblox-hooks%20downloads)\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/seaofvoices)\n\n\u003c/div\u003e\n\n# React Lua Hooks\n\nThis project consists of three main packages that revolves around [react-lua](https://github.com/jsdotlua/react-lua) hooks:\n\n- [Lua hooks](packages/react-lua-hooks/README.md#content): general-purpose collection of hooks for [react-lua](https://github.com/jsdotlua/react-lua)\n- [Roblox hooks](packages/react-roblox-hooks/README.md#content): hooks specifically made for Roblox development\n- [react-render-hook](packages/react-render-hook/README.md#content): a utility function to quickly test React hooks\n\n# Installation\n\nAdd these packages to your dependencies:\n\n```bash\nyarn add @seaofvoices/react-lua-hooks\nyarn add @seaofvoices/react-roblox-hooks\n\nyarn add -D @seaofvoices/react-render-hook\n```\n\nOr if you are using `npm`:\n\n```bash\nnpm install @seaofvoices/react-lua-hooks\nnpm install @seaofvoices/react-roblox-hooks\n\nnpm install @seaofvoices/react-render-hook --save-dev\n```\n\n# Content\n\n- [Lua hooks](packages/react-lua-hooks/README.md#content)\n    - [useConstant](packages/react-lua-use-constant/README.md#usage)\n    - [useDefaultState](packages/react-lua-hooks/README.md#usedefaultstate)\n    - [usePrevious](packages/react-lua-hooks/README.md#useprevious)\n    - [usePreviousDistinct](packages/react-lua-hooks/README.md#usepreviousdistinct)\n    - [useTeardownEffect](packages/react-lua-hooks/README.md#useteardowneffect)\n    - [useToggle](packages/react-lua-hooks/README.md#usetoggle)\n    - [useUnmount](packages/react-lua-hooks/README.md#useunmount)\n    - [useDebouncedState](packages/react-lua-hooks/README.md#usedebouncedstate)\n    - [useThrottledState](packages/react-lua-hooks/README.md#usethrottledstate)\n- [Roblox hooks](packages/react-roblox-hooks/README.md#content)\n    - [useService](packages/react-roblox-hooks/README.md#useservice)\n    - [useCamera](packages/react-roblox-hooks/README.md#usecamera)\n    - [useCameraCFrame](packages/react-roblox-hooks/README.md#usecameracframe)\n    - [useEvent](packages/react-roblox-hooks/README.md#useevent)\n    - [useGuiObjectSizeBinding](packages/react-roblox-hooks/README.md#useguiobjectsizebinding)\n    - [useLocalPlayer](packages/react-roblox-hooks/README.md#uselocalplayer)\n    - [useObjectLocation](packages/react-roblox-hooks/README.md#useobjectlocation)\n    - [usePropertyChange](packages/react-roblox-hooks/README.md#usepropertychange)\n    - [useTaggedInstances](packages/react-roblox-hooks/README.md#usetaggedinstances)\n    - [useTextSize](packages/react-roblox-hooks/README.md#usetextsize)\n    - [useViewportSize](packages/react-roblox-hooks/README.md#useviewportsize)\n- [react-render-hook](packages/react-render-hook/README.md#content)\n    - [renderHook](packages/react-render-hook/README.md#renderhook)\n    - [createRenderHook](packages/react-render-hook/README.md#createrenderhook)\n\n# Other Lua Environments Support\n\nIf you would like to use this library on a Lua environment where it is currently incompatible, open an issue (or comment on an existing one) to request the appropriate modifications.\n\nThe library uses [darklua](https://github.com/seaofvoices/darklua) to process its code.\n","funding_links":["https://github.com/sponsors/jeparlefrancais","https://ko-fi.com/seaofvoices"],"categories":["Hooks","React"],"sub_categories":["React-Lua Hooks \u003cimg src=\"luau.svg\" width=\"18px\" /\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaofvoices%2Freact-lua-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseaofvoices%2Freact-lua-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaofvoices%2Freact-lua-hooks/lists"}