{"id":22389631,"url":"https://github.com/vivyteam/microfrontend-example","last_synced_at":"2025-07-31T07:32:34.985Z","repository":{"id":42514669,"uuid":"236734539","full_name":"VivyTeam/microfrontend-example","owner":"VivyTeam","description":"A proof of concept for a web application that encapsulates micro-frontends with Web Components","archived":false,"fork":false,"pushed_at":"2020-06-25T08:43:07.000Z","size":1213,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-29T17:05:35.374Z","etag":null,"topics":["lerna","microfrontend","microfrontends","microservice","typescript","webcomponent","webcomponents"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/VivyTeam.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":"2020-01-28T12:51:45.000Z","updated_at":"2023-08-19T19:24:46.000Z","dependencies_parsed_at":"2022-08-31T19:41:14.412Z","dependency_job_id":null,"html_url":"https://github.com/VivyTeam/microfrontend-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/VivyTeam/microfrontend-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivyTeam%2Fmicrofrontend-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivyTeam%2Fmicrofrontend-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivyTeam%2Fmicrofrontend-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivyTeam%2Fmicrofrontend-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VivyTeam","download_url":"https://codeload.github.com/VivyTeam/microfrontend-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VivyTeam%2Fmicrofrontend-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268004214,"owners_count":24179378,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lerna","microfrontend","microfrontends","microservice","typescript","webcomponent","webcomponents"],"created_at":"2024-12-05T03:12:28.751Z","updated_at":"2025-07-31T07:32:34.615Z","avatar_url":"https://github.com/VivyTeam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microfrontend-example\n\nA proof of concept and template for a micro frontend setup with Typescript, React and Web Components.\n\n## How to run\n\n### Watch and serve entire application\n\nFrom the top level directory:\n\n- Run `yarn`\n- Run `lerna boostrap`\n- Run `yarn serve`\n\n### Watch and serve individual application\n\n- Navigate to a application folder (ie. `/modules/*`)\n- Run `yarn serve`\n\nThis will run and serve only the chosen application\n\n# Rules of the Micro Frontends\n\n- Each MFE exposes itself as a Web Component (Custom Element + Shadow DOM)\n- Communication happens with DOM events\n  - These events must have `compose` set to true, in order to continue through the Custom Element boundary and be handled by the top level application\n\n# Caveats\n\n- We use react-shadow to render the react components into the shadow dom because of these complications:\n  - React has issues with handling DOM events unless the react component is rendered as the direct shadow root child: https://github.com/facebook/react/issues/15759 https://github.com/facebook/react/issues/9242 https://github.com/spring-media/react-shadow-dom-retarget-events#readme\n  - Styled-components does not have great support for being used inside an iframe or a web component. We must use the style manager and target a top level div in the shadow dom. See https://github.com/styled-components/styled-components/issues/659#issuecomment-404759045\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivyteam%2Fmicrofrontend-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvivyteam%2Fmicrofrontend-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvivyteam%2Fmicrofrontend-example/lists"}