{"id":25799634,"url":"https://github.com/filipdanic/use-localstorage-hook","last_synced_at":"2026-05-09T14:02:42.768Z","repository":{"id":57388190,"uuid":"192507737","full_name":"filipdanic/use-localstorage-hook","owner":"filipdanic","description":"A custom React hook that lets you sync with localStorage and helps you manipulate objects via built-in JSON.stringify helpers.","archived":false,"fork":false,"pushed_at":"2024-04-23T01:42:53.000Z","size":740,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T03:15:40.587Z","etag":null,"topics":["localstorage","localstorage-api","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://filipdanic.github.io/use-localstorage-hook/","language":"JavaScript","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/filipdanic.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}},"created_at":"2019-06-18T09:22:03.000Z","updated_at":"2020-02-08T19:44:33.000Z","dependencies_parsed_at":"2022-08-29T14:50:48.412Z","dependency_job_id":null,"html_url":"https://github.com/filipdanic/use-localstorage-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipdanic%2Fuse-localstorage-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipdanic%2Fuse-localstorage-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipdanic%2Fuse-localstorage-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipdanic%2Fuse-localstorage-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filipdanic","download_url":"https://codeload.github.com/filipdanic/use-localstorage-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241030615,"owners_count":19897128,"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":["localstorage","localstorage-api","react","react-hooks"],"created_at":"2025-02-27T15:47:31.209Z","updated_at":"2026-05-09T14:02:42.687Z","avatar_url":"https://github.com/filipdanic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://img.shields.io/npm/v/use-localstorage-hook.svg)](https://www.npmjs.com/package/use-localstorage-hook)\n# use-localstorage-hook\n\nA custom React hook that lets you sync with `localStorage` and helps you manipulate objects via built-in `JSON.stringify` helpers.\n\n[👉 Demo site and docs.](https://filipdanic.github.io/use-localstorage-hook/)\n\n## Quick Start\n\nStart with:\n```\nnpm install --save use-localstorage-hook\n```\n\nAnd in your component use the hook like this:\n```\n[ val, setVal ] = useLocalStorage(\n  'demo',\n  { a: 'Hello!' }\n);\nconsole.log(val.a)\n// =\u003e \"Hello!\"\n```\n\n## Docs\n\nThe complete documentation as well as a live demo [is available here.](https://filipdanic.github.io/use-localstorage-hook/)\n\n## License\n\nMIT © [filipdanic](https://github.com/filipdanic)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipdanic%2Fuse-localstorage-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilipdanic%2Fuse-localstorage-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipdanic%2Fuse-localstorage-hook/lists"}