{"id":16336482,"url":"https://github.com/justinwoo/purescript-redux-devtools","last_synced_at":"2025-11-03T07:30:29.614Z","repository":{"id":58225580,"uuid":"147825348","full_name":"justinwoo/purescript-redux-devtools","owner":"justinwoo","description":"Some bindings to work with Redux DevTools.","archived":false,"fork":false,"pushed_at":"2023-03-18T17:50:03.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T04:06:18.817Z","etag":null,"topics":["purescript","redux-devtools"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/justinwoo.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":"2018-09-07T13:12:47.000Z","updated_at":"2023-03-18T21:16:20.000Z","dependencies_parsed_at":"2024-11-07T03:50:43.961Z","dependency_job_id":null,"html_url":"https://github.com/justinwoo/purescript-redux-devtools","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"7102e9986ec14c993e53d348a41143f172802a3e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-redux-devtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-redux-devtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-redux-devtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-redux-devtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinwoo","download_url":"https://codeload.github.com/justinwoo/purescript-redux-devtools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412505,"owners_count":19634016,"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":["purescript","redux-devtools"],"created_at":"2024-10-10T23:44:20.142Z","updated_at":"2025-11-03T07:30:29.356Z","avatar_url":"https://github.com/justinwoo.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PureScript-Redux-DevTools\n\nSome bindings to work with Redux DevTools.\n\nThis doesn't do any magic and you will have to handle your own encodings to `Foreign` and whatever.\n\n## Example usage\n\n```purs\nmain :: Effect Unit\nmain = do\n  mExt \u003c- DT.getExtension\n  case mExt of\n    Just ext -\u003e do\n      log \"Found extension\"\n\n      -- make instance\n      inst \u003c- DT.connect ext (DT.mkConnectOptions {})\n\n      -- feed initial state to DevTools\n      DT.init inst (JSON.write initialState)\n\n      -- ref where i'll keep my state in this example\n      ref \u003c- Ref.new initialState\n\n      let handle' = handle inst ref\n      handle' (add_ 1)\n      handle' (sub_ 1)\n      handle' (add_ 1)\n\n      -- listen and just print out what we get from DevTools\n      DT.subscribe inst (log \u003c\u003c\u003c JSON.writeJSON)\n    Nothing -\u003e do\n      error \"No extension found\"\n  where\n    -- handler that will modify my state ref\n    handle inst ref action = do\n      s \u003c- Ref.modify (update action) ref\n      log $ \"New action: \" \u003c\u003e JSON.writeJSON action\n      log $ \"New state: \" \u003c\u003e JSON.writeJSON s\n\n      DT.send inst { state: JSON.write s, action: JSON.write action }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-redux-devtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinwoo%2Fpurescript-redux-devtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-redux-devtools/lists"}