{"id":22297644,"url":"https://github.com/progfay/use-local-storage","last_synced_at":"2026-04-15T18:31:28.446Z","repository":{"id":185620262,"uuid":"673831259","full_name":"progfay/use-local-storage","owner":"progfay","description":"React hooks to manage state that works with `localStorage`","archived":false,"fork":false,"pushed_at":"2023-08-02T14:25:29.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T22:44:10.568Z","etag":null,"topics":["localstorage","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://developer.mozilla.org/ja/docs/Web/API/Window/localStorage","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/progfay.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}},"created_at":"2023-08-02T14:18:35.000Z","updated_at":"2023-08-02T14:25:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a77fd13-065b-4ccc-aaa4-bba172b1e185","html_url":"https://github.com/progfay/use-local-storage","commit_stats":null,"previous_names":["progfay/use-local-storage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/progfay/use-local-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progfay%2Fuse-local-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progfay%2Fuse-local-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progfay%2Fuse-local-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progfay%2Fuse-local-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/progfay","download_url":"https://codeload.github.com/progfay/use-local-storage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progfay%2Fuse-local-storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["localstorage","react","react-hooks"],"created_at":"2024-12-03T17:50:45.269Z","updated_at":"2026-04-15T18:31:28.421Z","avatar_url":"https://github.com/progfay.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## `useLocalStorage(key)` hooks\n\n__⚠️ This code has not yet been published in npm registry.__\n\n```tsx\nimport {\n  setlocalStorageItem,\n  useLocalStorage,\n} from '@progfay/use-local-storage'\n\nconst KEY = 'RANDOM_VALUE'\n\nconst ComponentA = () =\u003e (\n  \u003cbutton onClick={() =\u003e setLocalStorageItem(Math.random().toFixed(10))}\u003e\n    Set random value for localStorage\n  \u003c/button\u003e\n)\n\nconst ComponentB = () =\u003e {\n  const randomValue = useLocalStorage(KEY)\n  return (\n    \u003cp\u003e\n      random value in localStorage: {randomValue}\n    \u003c/p\u003e\n  )\n}\n\nconst App = () =\u003e (\n  \u003c\u003e\n    \u003cComponentA /\u003e\n    \u003cComponentB /\u003e\n  \u003c/\u003e\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogfay%2Fuse-local-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogfay%2Fuse-local-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogfay%2Fuse-local-storage/lists"}