{"id":27326646,"url":"https://github.com/italonascimento/lemni","last_synced_at":"2025-10-29T09:53:38.875Z","repository":{"id":46935740,"uuid":"117318564","full_name":"italonascimento/lemni","owner":"italonascimento","description":"A functional and reactive framework on top of React. Embrace asynchronicity!","archived":false,"fork":false,"pushed_at":"2023-01-03T23:29:39.000Z","size":22504,"stargazers_count":8,"open_issues_count":16,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T19:18:39.559Z","etag":null,"topics":["functional","react","react-native","reactive","xstream"],"latest_commit_sha":null,"homepage":"http://italonascimento.github.io/lemni","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/italonascimento.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":"2018-01-13T05:58:34.000Z","updated_at":"2019-07-15T00:39:23.000Z","dependencies_parsed_at":"2023-02-01T13:31:58.050Z","dependency_job_id":null,"html_url":"https://github.com/italonascimento/lemni","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italonascimento%2Flemni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italonascimento%2Flemni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italonascimento%2Flemni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italonascimento%2Flemni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/italonascimento","download_url":"https://codeload.github.com/italonascimento/lemni/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565088,"owners_count":21125415,"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","react","react-native","reactive","xstream"],"created_at":"2025-04-12T11:59:11.826Z","updated_at":"2025-10-29T09:53:38.768Z","avatar_url":"https://github.com/italonascimento.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lemni\n\nLemni allows us to implement React components and aplications in a **functional and reactive** way, making it much more natural to deal with the asynchronicity of interfaces, as well as isolating side effects away from the actual implementation.\n\n## Installation\n\nYou may install Lemni through npm or Yarn:\n\n```bash\nnpm i @lemni/core\n\n# or\n\nyarn add @lemni/core\n```\n\n## Hello World\n\nLemni creates conventional React components, fully compatible with the entire React ecosystem, including **React Native**.\n\n```typescript\nimport ReactDOM from 'react-dom'\nimport { lemni } from 'lemni'\n\nconst HelloWorld = lemni(\n  sources =\u003e ({\n    view: (viewArgs) =\u003e\n      \u003cdiv\u003e\n        \u003cp\u003eHello World\u003c/p\u003e\n      \u003c/div\u003e\n  })\n)\n\nReactDOM.render(\n  \u003cHelloWorld /\u003e,\n  document.getElementById('app')\n)\n```\n\n## Basic Component\n\n```typescript\nimport { lemni } from 'lemni'\nimport xs from 'xstream'\n\nconst Incrementer = lemni(sources =\u003e {\n  const onIncrement = xs.Stream.create()\n\n  return {\n    initialState: {\n      count: 0,\n    },\n\n    stateReducer: onIncrement.mapTo(\n      state =\u003e ({\n        count: state.count + 1,\n      })\n    ),\n\n    view: ({ state, emitter }) =\u003e (\n      \u003cp\u003eCount: {state.count}\u003c/p\u003e\n      \u003cbutton onClick={emmiter(onIncrement).emit}\u003e\n        Increment\n      \u003c/button\u003e\n    )\n  }\n})\n```\n\n## Docs\n\nTo better understand the above example and to see what else Lemni is capable of, head to the docs:\n\nhttps://italonascimento.github.io/lemni/\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalonascimento%2Flemni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitalonascimento%2Flemni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalonascimento%2Flemni/lists"}