{"id":21700399,"url":"https://github.com/articulate/redux-functor","last_synced_at":"2026-05-17T19:38:10.604Z","repository":{"id":57350801,"uuid":"111146969","full_name":"articulate/redux-functor","owner":"articulate","description":"Functor middleware for redux","archived":false,"fork":false,"pushed_at":"2017-11-20T19:32:08.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-04-26T17:23:06.186Z","etag":null,"topics":["functional-programming","functor","javascript","redux"],"latest_commit_sha":null,"homepage":"","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/articulate.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":"2017-11-17T20:20:38.000Z","updated_at":"2021-02-11T18:43:57.000Z","dependencies_parsed_at":"2022-09-16T21:11:59.438Z","dependency_job_id":null,"html_url":"https://github.com/articulate/redux-functor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fredux-functor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fredux-functor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fredux-functor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fredux-functor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/articulate","download_url":"https://codeload.github.com/articulate/redux-functor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244644937,"owners_count":20486893,"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":["functional-programming","functor","javascript","redux"],"created_at":"2024-11-25T20:14:13.441Z","updated_at":"2025-10-28T16:34:58.143Z","avatar_url":"https://github.com/articulate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-functor\n[![redux-functor](https://img.shields.io/npm/v/redux-functor.svg)](https://www.npmjs.com/package/redux-functor)\n[![Build Status](https://travis-ci.org/articulate/redux-functor.svg?branch=master)](https://travis-ci.org/articulate/redux-functor)\n[![Coverage Status](https://coveralls.io/repos/github/articulate/redux-functor/badge.svg?branch=master)](https://coveralls.io/github/articulate/redux-functor?branch=master)\n[![NSP Status](https://nodesecurity.io/orgs/articulate/projects/b15b909f-2db6-48c0-8068-906e020edbce/badge)](https://nodesecurity.io/orgs/articulate/projects/b15b909f-2db6-48c0-8068-906e020edbce)\n\nFunctor middleware for redux.\n\n### Usage\n\n```haskell\nfunctor : Store -\u003e Function -\u003e Action -\u003e a\n```\n\nRedux middleware to dispatch actions that are functors.  This includes the built-in javascript [`Array`](http://devdocs.io/javascript/global_objects/array) type, along with many other [ADT's](https://github.com/evilsoft/crocks#crocks).\n\nIf any action has a property called `map` that is a function, the action is assumed to be a functor.\n\n```js\nconst { applyMiddleware, combineReducers, createStore } = require('redux')\nconst functor = require('redux-functor')\n\nconst reducers = require('../ducks')\n\nconst store = createStore(combineReducers(reducers), applyMiddleware(functor))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Fredux-functor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farticulate%2Fredux-functor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Fredux-functor/lists"}