{"id":22744233,"url":"https://github.com/rametta/prosciutto","last_synced_at":"2025-09-04T05:07:33.575Z","repository":{"id":53555330,"uuid":"169240071","full_name":"rametta/prosciutto","owner":"rametta","description":"🥓 Functor based redux side effects","archived":false,"fork":false,"pushed_at":"2021-03-24T17:54:30.000Z","size":58,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T10:50:27.594Z","etag":null,"topics":["epics","middleware","promise","redux","side-effects"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rametta.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":"2019-02-05T12:48:40.000Z","updated_at":"2021-03-24T17:54:32.000Z","dependencies_parsed_at":"2022-08-31T03:53:52.122Z","dependency_job_id":null,"html_url":"https://github.com/rametta/prosciutto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fprosciutto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fprosciutto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fprosciutto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fprosciutto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rametta","download_url":"https://codeload.github.com/rametta/prosciutto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852338,"owners_count":21171877,"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":["epics","middleware","promise","redux","side-effects"],"created_at":"2024-12-11T01:41:13.814Z","updated_at":"2025-04-14T09:23:01.352Z","avatar_url":"https://github.com/rametta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/prosciutto.svg)](http://npm.im/prosciutto)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/rametta/prosciutto/)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# 🥓 Prosciutto\n\n\u003e [Functor](https://en.wikipedia.org/wiki/Functor) based redux side effects\n\n*Alternative to rxjs and redux-observable, or [meaball](https://www.npmjs.com/package/meatball)*\n\n## Install\n```sh\nyarn add prosciutto\n```\n\n## Usage examples\nListen to any redux action, perform side effect, dispatch new redux actions\n```js\n// epics.js\nimport { searchResponse, seachError, clearSidebar } from './reducer'\n\n// Simple example\nconst simpleEpic = is =\u003e is('SUBMIT_SEARCH')\n  .map(({payload, store, dispatch}) =\u003e fetch(payload)\n    .then(res =\u003e res.json())\n    .then(json =\u003e dispatch(searchResponse(json)))\n    .catch(e =\u003e dispatch(seachError(e))))\n\n// Dispatch multiple actions with an array\nconst multipleEpic = is =\u003e is('SUBMIT_SEARCH')\n  .map(({payload, store, dispatch}) =\u003e fetch(payload)\n    .then(res =\u003e res.json())\n    .then(json =\u003e dispatch([searchResponse(json), clearSidebar()]))\n    .catch(e =\u003e dispatch(seachError(e)))\n  )\n\nexport default [simpleEpic, multipleEpic]\n\n// index.js\nimport prosciutto from 'prosciutto'\nimport epics from './epics'\n\nconst store = createStore(\n  reducers,\n  applyMiddleware(prosciutto(epics))\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frametta%2Fprosciutto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frametta%2Fprosciutto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frametta%2Fprosciutto/lists"}