{"id":18512744,"url":"https://github.com/lundegaard/react-union","last_synced_at":"2026-03-16T16:02:08.537Z","repository":{"id":50226171,"uuid":"107410990","full_name":"lundegaard/react-union","owner":"lundegaard","description":"⚛️ Collection of tools allowing to React.js applications to run on specific server-side environments such as Content Management Systems (CMS) or Portals.","archived":false,"fork":false,"pushed_at":"2023-03-14T14:17:03.000Z","size":5896,"stargazers_count":97,"open_issues_count":23,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T23:51:13.678Z","etag":null,"topics":["bootstraper","cms","development-tools","liferay","portal","react","redux","wordpress"],"latest_commit_sha":null,"homepage":"http://react-union.org/","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/lundegaard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-18T13:20:24.000Z","updated_at":"2025-01-17T06:29:52.000Z","dependencies_parsed_at":"2024-11-06T15:52:39.434Z","dependency_job_id":null,"html_url":"https://github.com/lundegaard/react-union","commit_stats":{"total_commits":588,"total_committers":15,"mean_commits":39.2,"dds":0.6445578231292517,"last_synced_commit":"5be21fb985b1cfa7b03465d576fbc2b941cdecb4"},"previous_names":[],"tags_count":87,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lundegaard%2Freact-union","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lundegaard%2Freact-union/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lundegaard%2Freact-union/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lundegaard%2Freact-union/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lundegaard","download_url":"https://codeload.github.com/lundegaard/react-union/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248673250,"owners_count":21143461,"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":["bootstraper","cms","development-tools","liferay","portal","react","redux","wordpress"],"created_at":"2024-11-06T15:35:17.750Z","updated_at":"2026-03-16T16:02:08.408Z","avatar_url":"https://github.com/lundegaard.png","language":"JavaScript","funding_links":[],"categories":["📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://react-union.org\"\u003e\n    \u003cimg alt=\"React Union\" src=\"./logo.svg\" width=\"300\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://lundegaard.eu\"\u003e\n    \u003cimg alt=\"by Lundegaard\" src=\"./by-lundegaard.png\" width=\"120\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n🖍️ 🛡  🚀\n\u003c/h3\u003e\n\n\u003ch3 align=\"center\"\u003e\nEasy React integration into legacy systems \n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\nThe React Union project is a collection of tools that allow you to build modern React applications for content management systems or enterprise portals.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://react-union.org\"\u003eSee our documentation site.\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003ca href=\"https://travis-ci.org/lundegaard/react-union\"\u003e\n\u003cimg src=\"https://img.shields.io/travis/lundegaard/react-union/master.svg?style=flat-square\" alt=\"Build status\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://greenkeeper.io/\"\u003e\n\u003cimg src=\"https://badges.greenkeeper.io/lundegaard/react-union.svg\" alt=\"Greenkeeper badge\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/lundegaard/react-union\"\u003e\n\u003cimg src=\"https://flat.badgen.net/badge/-/github?icon=github\u0026label\" alt=\"Github\" /\u003e\n\u003c/a\u003e\n\n\u003cimg src=\"https://flat.badgen.net/badge/license/MIT/blue\" alt=\"MIT License\" /\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/react-union\"\u003e\n\u003cimg src=\"https://flat.badgen.net/npm/dm/react-union\" alt=\"Downloads\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/react-union\"\u003e\n\u003cimg src=\" https://flat.badgen.net/npm/v/react-union\" alt=\"Version\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n## Tools and libraries\n\n* [React Union](https://github.com/lundegaard/react-union/tree/master/packages/react-union) - React component that can assemble an application with one virtual DOM from multiple HTML fragments.\n* [React Union Scripts](https://github.com/lundegaard/react-union/tree/master/packages/react-union-scripts) - JavaScript SDK focused on a large codebase. Supports multiple entry points, async code-splitting, sharing the code between modules, etc.\n* [ESLint config](https://github.com/lundegaard/react-union/tree/master/packages/eslint-config-react-union) - ESLint configuration that is used within the React Union project.\n* [Babel preset](https://github.com/lundegaard/react-union/tree/master/packages/babel-preset-react-union) - Babel preset used within the React Union project.\n\n## Talks\n\n- [React Union: Write once, plug anywhere](https://hero35.com/react-finland/2019/react-union-write-once-plug-anywhere) by [tommmyy](https://github.com/tommmyy)\n- [React Union: Way to OpenSource](https://www.youtube.com/watch?v=B9G_3UjYOYE\u0026t=856s\u0026ab_channel=Liferay) by [jamescoq](https://github.com/jamescoq)\n- [Live demo: React.js portals and modern js apps for cms](https://www.webexpo.net/prague2018/talk/live-demo-react-js-portals-and-modern-js-apps-for-cms) by [tommmyy](https://github.com/tommmyy)\n\n## Examples\n\n* [Basic boilerplate](https://github.com/lundegaard/react-union/tree/master/boilerplates/react-union-boilerplate-basic) - Reference usage of React Union in a simple application.\n* [Monorepo boilerplate](https://github.com/lundegaard/react-union/tree/master/boilerplates/react-union-boilerplate-monorepo) - For larger projects, a monorepo (Yarn Workspaces) is a good choice. \n* [Integration with Liferay](https://github.com/lundegaard/react-union/tree/master/boilerplates/react-union-boilerplate-liferay-basic)\n\nMore examples are coming! See the [roadmap](https://github.com/lundegaard/react-union/blob/master/ROADMAP.md).\n\n## Content management systems, enterprise portals and React applications\n\nThere are some problems in these types of systems that need to be addressed in order to achieve a proper developer experience. This includes features such as HMR, application state time travel, ECMAScript 7+ syntax, etc. Additionally, there are problems regarding the nature of CMS and Portal solutions.\n\n### What are these problems?\n\n* **Ad-hoc component rendering.** We don't know the combination of widgets for any particular URL in advance. It is due to the fact that the user is able to customize what widgets should be rendered.\n* **Multiple instances of the same widget in one view.** E.g. image galleries, feeds or calendars. This fact adds complexity to managing application state, passing initial data, etc.\n* **Sharing and synchronization of data between widgets.** Even though the widgets have to be independent of each other, we have to be able to share the model/data they are working with.\n* **Build optimization.** Application code has to be split into several chunks to only serve code necessary for the current page.\n* **Passing data from a server.** There are cases where our widgets need to be provided data from a server, e.g. information about the user, preferences, color schema, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flundegaard%2Freact-union","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flundegaard%2Freact-union","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flundegaard%2Freact-union/lists"}