{"repo":"beynar/kit-query-params","free":true,"listed":false,"github":"https://github.com/beynar/kit-query-params","clone":"git clone https://github.com/beynar/kit-query-params.git","description":"Another easy way to read and write from query parameters in sveltekit and svelte 5.","language":"TypeScript","stars":23,"topics":["queryparams","svelte","svelte5","sveltekit"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"kit-query-params 1. Introduction kit-query-params is a lightweight query params state management library for SvelteKit that simplifies state management and URL synchronization. It provides a seamless way to keep your application state in sync with URL search parameters, enhancing user experience and enabling easy sharing of application states. Key features: - Works like a normal state in svelte 5 : reactive, mutable and without using the boxed value pattern. - Automatic URL synchronization: State changes are reflected in the URL, making it easy to share and bookmark specific application states. - Handles string , number , date , boolean and enum as primitives, arrays of primitives, arrays of objects and nested objects. - Type safe and runtime safe: Define your state structure with a simple schema, ensuring type safety throughout your application. - Reactive state management: Utilizes Svelte's reactive state system for efficient updates and rendering. - Customizable debounce: Control the frequency of URL updates to optimize performance. - History management: Choose between pushing new history entries or replacing the current one. - Clean URL handling: Automatically removes empty values from the URL to keep it tidy. - Can preserve unknown params (not defined in the schema). 2. Installation 3. Client Side Create a state with the queryParams function. You need to pass a schema of the parameters you want to use. The type of the state will be infered from the schema. The state is a","default_branch":null,"files":null,"tree":[],"storefront":"/r/beynar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/beynar/kit-query-params/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}