{"id":31967387,"url":"https://github.com/clemenzi/react-qstate","last_synced_at":"2026-05-04T12:32:21.666Z","repository":{"id":194272281,"uuid":"690641241","full_name":"clemenzi/react-qstate","owner":"clemenzi","description":"react-qstate: A react hook that allows the state to be saved in the URL","archived":false,"fork":false,"pushed_at":"2024-05-25T14:00:29.000Z","size":163,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T21:43:12.211Z","etag":null,"topics":["hooks","npm","query","react","state"],"latest_commit_sha":null,"homepage":"","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/clemenzi.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-12T15:24:21.000Z","updated_at":"2024-05-25T14:00:33.000Z","dependencies_parsed_at":"2024-10-09T13:45:30.285Z","dependency_job_id":null,"html_url":"https://github.com/clemenzi/react-qstate","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"2dfb83c6a2ef7a342baccf81513aba585b5599dd"},"previous_names":["vclemenzi/cerry","vclemenzi/react-qstate","vc-z/react-qstate","ncvcz/react-qstate","clemenzi/react-qstate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clemenzi/react-qstate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemenzi%2Freact-qstate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemenzi%2Freact-qstate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemenzi%2Freact-qstate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemenzi%2Freact-qstate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clemenzi","download_url":"https://codeload.github.com/clemenzi/react-qstate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemenzi%2Freact-qstate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hooks","npm","query","react","state"],"created_at":"2025-10-14T18:11:18.242Z","updated_at":"2026-05-04T12:32:21.654Z","avatar_url":"https://github.com/clemenzi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Query State\nreact-qstate is a simple library that allows states to be saved in url parameters. The benefits can be various:\n\n- Have the exactly same UI\n  - A user can share the link on social and whoever clicks on it will have the same ui\n  - Can be saved as a bookmark and will bring back to the same UI\n- You can use the \"back\" button to go back through the states\n- It can help search engine optimization\n- and more...\n\n## Installation\nYou can install it with your favorite package manger\n\n```bash\nnpm install react-qstate\n```\n\n```bash\npnpm add react-qstate\n```\n\n```bash\nyarn add react-qstate\n```\n\n```bash\nbun add react-qstate\n```\n\n## Usage\nIts use is very simple and familiar with the existing `useState` hook\n\n```js\nimport { useQueryState } from \"react-qstate\";\n\nfunction App() {\n  const [count, setCount] = useQueryState(\"counter\", 0);\n\n  return (\n    \u003cdiv\u003e\n      \u003cp\u003eYou clicked {count} times\u003c/p\u003e\n      \u003cbutton onClick={() =\u003e setCount(count + 1)}\u003eClick me\u003c/button\u003e\n    \u003c/div\u003e\n  );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemenzi%2Freact-qstate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclemenzi%2Freact-qstate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemenzi%2Freact-qstate/lists"}