{"id":15866266,"url":"https://github.com/kanitsharma/pokemonads","last_synced_at":"2026-03-08T19:37:18.465Z","repository":{"id":42342148,"uuid":"135824779","full_name":"kanitsharma/pokemonads","owner":"kanitsharma","description":"🌈 Fantasy Land compliant ADTs and combinators","archived":false,"fork":false,"pushed_at":"2022-12-09T09:37:44.000Z","size":1931,"stargazers_count":4,"open_issues_count":19,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T01:21:14.403Z","etag":null,"topics":["functional-programming","javascript-library","lambda","monads","pointfree"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanitsharma.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-02T14:32:09.000Z","updated_at":"2022-07-02T16:56:49.000Z","dependencies_parsed_at":"2023-01-26T04:15:44.485Z","dependency_job_id":null,"html_url":"https://github.com/kanitsharma/pokemonads","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanitsharma%2Fpokemonads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanitsharma%2Fpokemonads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanitsharma%2Fpokemonads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanitsharma%2Fpokemonads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanitsharma","download_url":"https://codeload.github.com/kanitsharma/pokemonads/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801675,"owners_count":20350108,"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","javascript-library","lambda","monads","pointfree"],"created_at":"2024-10-05T23:05:23.374Z","updated_at":"2026-03-08T19:37:18.414Z","avatar_url":"https://github.com/kanitsharma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pokemonads\n\n[\u003cimg src=\"https://raw.github.com/fantasyland/fantasy-land/master/logo.png\" align=\"right\" width=\"82\" height=\"82\" alt=\"Fantasy Land\" /\u003e](https://github.com/fantasyland/fantasy-land/)\n\nPokemonads is a collection of common algebraic data types and combinators which are compatible with [Fantasy Land](https://github.com/fantasyland/fantasy-land/)\n\n## Fistful of monads and more ✊\n\n“Once you understand monads, you immediately become incapable of explaining them to anyone else” Lady Monadgreen’s curse ~ Gilad Bracha (used famously by Douglas Crockford)\n\nA monad is a way of composing functions that require context in addition to the return value, such as computation, branching, or I/O. Monads type lift, flatten and map so that the types line up for lifting functions a =\u003e M(b), making them composable. It's a mapping from some type a to some type b along with some computational context, hidden in the implementation details of lift, flatten, and map:\n\n- Functions map: `a =\u003e b`\n- Functors map with context: `Functor(a) =\u003e Functor(b)`\n- Monads flatten and map with context: `Monad(Monad(a)) =\u003e Monad(b)`\n\nWhy do we need monads? [here](https://stackoverflow.com/questions/28139259/why-do-we-need-monads) is a great explanation\n\n## [See examples](https://github.com/kanitsharma/pokemonads/blob/master/packages/adts/readme.md)\n\n## Installation\n\n#### ADTs -\u003e Contains all basic monads\n\n```javascript\n  npm i -s @pokemonads/adts\n  // or\n  yarn add @pokemonads/adts\n```\n\n#### Combinators -\u003e A collection of basic combinators and utilities\n\n```javascript\n  npm i -s @pokemonads/combinators\n  // or\n  yarn add @pokemonads/combinators\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanitsharma%2Fpokemonads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanitsharma%2Fpokemonads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanitsharma%2Fpokemonads/lists"}