{"id":24995552,"url":"https://github.com/salman-ahamed/debounce","last_synced_at":"2026-05-06T02:37:40.366Z","repository":{"id":88007624,"uuid":"532734141","full_name":"Salman-Ahamed/debounce","owner":"Salman-Ahamed","description":"Searching with debounce is a technique used to optimize search functionality in web applications. It helps reduce the number of search requests made to the server by delaying the execution of the search function until a certain amount of time has passed since the user stopped typing.","archived":false,"fork":false,"pushed_at":"2023-08-28T07:04:57.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T09:08:46.205Z","etag":null,"topics":["javascript","js","ractjs","react","search-with-debounce","ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Salman-Ahamed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-05T03:48:40.000Z","updated_at":"2024-02-25T02:57:26.000Z","dependencies_parsed_at":"2024-11-10T16:35:42.485Z","dependency_job_id":"393eb44d-d2fd-4653-9be1-b5acb3805447","html_url":"https://github.com/Salman-Ahamed/debounce","commit_stats":null,"previous_names":["salman-ahamed/debounce"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Salman-Ahamed/debounce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salman-Ahamed%2Fdebounce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salman-Ahamed%2Fdebounce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salman-Ahamed%2Fdebounce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salman-Ahamed%2Fdebounce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Salman-Ahamed","download_url":"https://codeload.github.com/Salman-Ahamed/debounce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salman-Ahamed%2Fdebounce/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268012364,"owners_count":24180972,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["javascript","js","ractjs","react","search-with-debounce","ts","typescript"],"created_at":"2025-02-04T15:38:50.005Z","updated_at":"2025-10-18T12:03:58.900Z","avatar_url":"https://github.com/Salman-Ahamed.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSearch with Debounce\u003c/h1\u003e\n\n### Functionality\n\n```ts\nconst filterBySearch = (value: string) =\u003e {\n  console.log(value);\n};\n\nconst debounce = (fn: (value: string) =\u003e void, delay: number) =\u003e {\n  let timeoutId: NodeJS.Timeout | number | undefined;\n\n  return (e: FormEvent) =\u003e {\n    if (timeoutId) {\n      clearTimeout(timeoutId);\n    }\n\n    timeoutId = setTimeout(() =\u003e {\n      fn((e.target as HTMLInputElement).value);\n    }, delay);\n  };\n};\n```\n\n### Input Section\n\n```tsx\n\u003cinput\n  className=\"search-input\"\n  type=\"search\"\n  name=\"search\"\n  placeholder=\"Search\"\n  onChange={debounce((value) =\u003e filterBySearch(value), 500)}\n/\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalman-ahamed%2Fdebounce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalman-ahamed%2Fdebounce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalman-ahamed%2Fdebounce/lists"}