{"id":28188441,"url":"https://github.com/pwlmc/redux-hor","last_synced_at":"2026-03-07T08:02:21.201Z","repository":{"id":33102918,"uuid":"144605907","full_name":"pwlmc/redux-hor","owner":"pwlmc","description":"Higher-order Reducers for Redux","archived":false,"fork":false,"pushed_at":"2025-03-24T06:47:32.000Z","size":310,"stargazers_count":3,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T16:58:58.758Z","etag":null,"topics":["higher-order-component","higher-order-reducers","reducer","redux","redux-hor"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pwlmc.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-08-13T16:30:06.000Z","updated_at":"2020-07-02T07:21:23.000Z","dependencies_parsed_at":"2024-07-08T21:20:53.178Z","dependency_job_id":"010d5525-b135-48a9-bf9b-90a2aaaf1ccc","html_url":"https://github.com/pwlmc/redux-hor","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/pwlmc%2Fredux-hor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlmc%2Fredux-hor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlmc%2Fredux-hor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwlmc%2Fredux-hor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwlmc","download_url":"https://codeload.github.com/pwlmc/redux-hor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254496530,"owners_count":22080726,"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":["higher-order-component","higher-order-reducers","reducer","redux","redux-hor"],"created_at":"2025-05-16T08:33:47.199Z","updated_at":"2026-03-07T08:02:16.152Z","avatar_url":"https://github.com/pwlmc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redux-HOR \n-----\n[![CircleCI](https://circleci.com/gh/pwlmaciejewski/redux-hor/tree/master.svg?style=svg)](https://circleci.com/gh/pwlmaciejewski/redux-hor/tree/master)\n[![codecov](https://codecov.io/gh/pwlmaciejewski/redux-hor/branch/master/graph/badge.svg)](https://codecov.io/gh/pwlmaciejewski/redux-hor)\n[![npm version](https://badge.fury.io/js/redux-hor.svg)](https://badge.fury.io/js/redux-hor)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)\n\nHigher-order Redux is a utility belt for Redux that makes\nheavy use of **higher-order reducers** to provide:\n\n* Reduced boilerplate 🔩\n* Increased modularity 📦\n* Development speedup 🚄\n\nOh, btw... Higher-order reducer is a function that takes a reducer argument and returns a new reducer:\n\n```typescript\nHigherOrderReducer\u003cState, Action\u003e = (innerReducer: Reducer\u003cState, Action\u003e): Reducer\u003cState, Action\u003e\n```\n\n\n## Installation\n\n```\nyarn add redux-hor\n```\n\n\n## Quick start\n\nHere's a standard reducer that we all know an love:\n\n```typescript\nexport default function reducer (state = initialState, action) {\n  if (action.type === 'UPDATE_AUTHOR') {\n    return {\n      ...state,\n      author: action.payload\n    }\n  }\n\n  return state\n}\n```\n\nCompare it with HoR style:\n\n```typescript\nimport { compose, withActionType, withInitialState, mergeState, identity } from 'redux-hor'\n\nexport compose(\n  onAction('UPDATE_AUTHOR', () =\u003e merge({ author: action.payload }))\n)(init(initialState))\n```\n\n## API docs\n\n[Read them here](./API.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwlmc%2Fredux-hor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwlmc%2Fredux-hor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwlmc%2Fredux-hor/lists"}