{"id":23651516,"url":"https://github.com/athanclark/elm-debouncer","last_synced_at":"2025-09-01T02:32:08.256Z","repository":{"id":57674809,"uuid":"58675236","full_name":"athanclark/elm-debouncer","owner":"athanclark","description":"Debouncification for elm-ness","archived":false,"fork":false,"pushed_at":"2019-08-22T15:03:33.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T07:11:48.436Z","etag":null,"topics":["debounce","elm"],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athanclark.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}},"created_at":"2016-05-12T20:40:00.000Z","updated_at":"2019-08-22T15:03:35.000Z","dependencies_parsed_at":"2022-09-02T15:01:32.418Z","dependency_job_id":null,"html_url":"https://github.com/athanclark/elm-debouncer","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/athanclark/elm-debouncer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athanclark%2Felm-debouncer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athanclark%2Felm-debouncer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athanclark%2Felm-debouncer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athanclark%2Felm-debouncer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athanclark","download_url":"https://codeload.github.com/athanclark/elm-debouncer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athanclark%2Felm-debouncer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273065037,"owners_count":25039274,"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-09-01T02:00:09.058Z","response_time":120,"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":["debounce","elm"],"created_at":"2024-12-28T16:38:08.884Z","updated_at":"2025-09-01T02:32:08.012Z","avatar_url":"https://github.com/athanclark.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm-Debouncer\n\nUse continutations for deboucing!\n\n```elm\nimport Debounce\nimport Task exposing (Task)\nimport Time exposing (millisToPosix)\n\ntype Msg\n  = PingFoo\n  | PungFoo\n  | DebouncerMsg (Debounce.Msg Msg)\n\ntype alias Model =\n  { something   : Foo\n  , myDebouncer : Debounce.Model Msg\n  }\n\ninit : Model\ninit =\n  { something   = initFoo\n  , myDebouncer = Debounce.init\n  }\n\nmkCmd : a -\u003e Cmd a\nmkCmd = Task.perform (Debug.crash \u003c\u003c toString) identity \u003c\u003c Task.succeed\n\n\nupdate : Msg\n      -\u003e Model\n      -\u003e (Model, Cmd Msg)\nupdate action model =\n  case action of\n    PingFoo -\u003e model ! [mkCmd \u003c| DebouncerMsg \u003c| Debounce.Bounce \u003c| mkCmd PungFoo]\n    PungFoo -\u003e pang model ! [] -- the past tense of ping or something\n    DebouncerMsg a -\u003e\n      let (newDebouncer, eff) = updateDebouncer\n                                  (millisToPosix 500)\n                                  a\n                                  model.myDebouncer\n      in  { model | myDebouncer = newDebouncer }\n        ! [ Cmd.map (\\r -\u003e case r of\n                             Err a' -\u003e DebouncerMsg a'\n                             Ok  a' -\u003e a') eff ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathanclark%2Felm-debouncer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathanclark%2Felm-debouncer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathanclark%2Felm-debouncer/lists"}