{"id":13406307,"url":"https://github.com/pbeshai/use-query-params","last_synced_at":"2025-04-29T18:43:56.707Z","repository":{"id":37502477,"uuid":"175306912","full_name":"pbeshai/use-query-params","owner":"pbeshai","description":"React Hook for managing state in URL query parameters with easy serialization.","archived":false,"fork":false,"pushed_at":"2023-12-27T02:38:05.000Z","size":7625,"stargazers_count":2200,"open_issues_count":44,"forks_count":97,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-28T02:37:33.166Z","etag":null,"topics":["hooks","query","query-parameters","queryparams","querystring","react","react-hooks","reactjs","url"],"latest_commit_sha":null,"homepage":"https://pbeshai.github.io/use-query-params","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pbeshai.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}},"created_at":"2019-03-12T22:39:30.000Z","updated_at":"2025-04-22T10:00:04.000Z","dependencies_parsed_at":"2024-01-10T20:11:05.393Z","dependency_job_id":"220e8c4e-7188-4699-8374-c821eb03a1d4","html_url":"https://github.com/pbeshai/use-query-params","commit_stats":{"total_commits":301,"total_committers":33,"mean_commits":9.121212121212121,"dds":0.5315614617940199,"last_synced_commit":"b14c97ec2e7b1dfaca51d4d17439f9c306b34dba"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbeshai%2Fuse-query-params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbeshai%2Fuse-query-params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbeshai%2Fuse-query-params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbeshai%2Fuse-query-params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbeshai","download_url":"https://codeload.github.com/pbeshai/use-query-params/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251480517,"owners_count":21596017,"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","query","query-parameters","queryparams","querystring","react","react-hooks","reactjs","url"],"created_at":"2024-07-30T19:02:26.786Z","updated_at":"2025-04-29T18:43:56.688Z","avatar_url":"https://github.com/pbeshai.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003euseQueryParams\u003c/h1\u003e\n  \u003cp\u003eA \u003ca href=\"https://reactjs.org/docs/hooks-intro.html\"\u003eReact Hook\u003c/a\u003e, HOC, and Render Props solution for managing state in URL query parameters with easy serialization.\n  \u003c/p\u003e\n  \u003cp\u003eWorks with \u003ca href=\"https://reacttraining.com/react-router/\"\u003eReact Router 5 and 6\u003c/a\u003e out of the box. TypeScript supported.\u003c/p\u003e\n\n\n  \u003cp\u003e\n    \u003ca href=\"https://www.npmjs.com/package/use-query-params\"\u003e\u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/use-query-params.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://travis-ci.com/pbeshai/use-query-params/\"\u003e\u003cimg alt=\"Travis (.com)\" src=\"https://img.shields.io/travis/com/pbeshai/use-query-params.svg\"\u003e\u003c/a\u003e\n\n  \u003c/p\u003e\n\n\u003c/div\u003e\n\u003chr/\u003e\n\nWhen creating apps with easily shareable URLs, you often want to encode state as query parameters, but all query parameters must be encoded as strings. `useQueryParams` allows you to easily encode and decode data of any type as query parameters with smart memoization to prevent creating unnecessary duplicate objects. It uses [serialize-query-params](/packages/serialize-query-params/).\n\n## Docs\n\n* [use-query-params docs](/packages/use-query-params/#readme)\n* [serialize-query-params docs](/packages/serialize-query-params/#readme)\n\n\n## Packages\n\nThis is a monorepo managed with [Lerna](https://github.com/lerna/lerna). \n\n| Package                                                       | Version                                                                                                                                   | Docs                                                                                                                                                                                                                                                                          | Description                                                                        |\n| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |\n| [`use-query-params`](/packages/use-query-params)              | [![npm](https://img.shields.io/npm/v/use-query-params.svg?style=flat-square)](https://www.npmjs.com/package/use-query-params)             | [![](https://img.shields.io/badge/API%20Docs-readme-orange.svg?style=flat-square)](/packages/use-query-params/#readme)       | use-query-params React library    |\n| [`serialize-query-params`](/packages/serialize-query-params)  | [![npm](https://img.shields.io/npm/v/serialize-query-params.svg?style=flat-square)](https://www.npmjs.com/package/serialize-query-params) | [![](https://img.shields.io/badge/API%20Docs-readme-orange.svg?style=flat-square)](/packages/serialize-query-params/#readme) | serialize-query-params js library |\n\n\n\n## Development\n\nTo get running locally:\n\n```\nnpm install\nnpx lerna bootstrap --hoist --scope \"use-query-params\" --scope \"serialize-query-params\"\nnpm build\nnpm test\n```\n\nSet up examples:\n\n```\nlerna bootstrap --scope \"*-example\"\nlerna link\n```\n\nThen run one:\n\n```\nlerna run --scope react-router-example start\n```\n","funding_links":[],"categories":["TypeScript","Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbeshai%2Fuse-query-params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbeshai%2Fuse-query-params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbeshai%2Fuse-query-params/lists"}