{"id":21141852,"url":"https://github.com/krisslk/save-my-filters","last_synced_at":"2025-08-02T11:07:48.847Z","repository":{"id":250904641,"uuid":"835806692","full_name":"Krisslk/save-my-filters","owner":"Krisslk","description":"this npm plugin will save your applied to session storage with a url as the key","archived":false,"fork":false,"pushed_at":"2024-07-30T19:23:21.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T22:11:44.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Krisslk.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":"2024-07-30T15:08:05.000Z","updated_at":"2024-08-02T18:11:59.000Z","dependencies_parsed_at":"2024-07-30T19:26:29.719Z","dependency_job_id":"da87c637-7927-4906-b315-0d086db40f7a","html_url":"https://github.com/Krisslk/save-my-filters","commit_stats":null,"previous_names":["krisslk/save-my-filters"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Krisslk/save-my-filters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisslk%2Fsave-my-filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisslk%2Fsave-my-filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisslk%2Fsave-my-filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisslk%2Fsave-my-filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krisslk","download_url":"https://codeload.github.com/Krisslk/save-my-filters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisslk%2Fsave-my-filters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378806,"owners_count":24240896,"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-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-11-20T07:37:31.951Z","updated_at":"2025-08-02T11:07:48.809Z","avatar_url":"https://github.com/Krisslk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# save-my-filters\nthis npm plugin will save your applied filters to session storage with a url as the key,\nto use this module pass the url alone with filters object into saveFilters function, it will convert the filters object \ninto json stringify and store it inside the session storage of the web browser under the provided url as the key\n\nexample code : \n\nstep 1 : import saveFilters func from the module\n\nstep 2 : pass the prefered url as first parameter and second parameter should be a json object which contains filter params\n\n     let baseParams = {\n        'keyword':'',\n        'customerType':1,\n    }\n\n    saveFilters(Routes.Customers.path,baseParams);\n\n\nstep 3 : to retrieve filter params, first in your react component get the current url, pass that into the checkAndGetFilters func in the module, if there are applied filters saved in the session storage with the matching url to the current route you provided then it will return the data as json object or else returns false\n\n    let filters = checkAndGetFilters(Routes.Customers.path);","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisslk%2Fsave-my-filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisslk%2Fsave-my-filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisslk%2Fsave-my-filters/lists"}