{"id":20102044,"url":"https://github.com/heikkilamarko/micro-frontends-app","last_synced_at":"2025-07-19T02:33:00.545Z","repository":{"id":47798614,"uuid":"272976819","full_name":"heikkilamarko/micro-frontends-app","owner":"heikkilamarko","description":"A simple micro frontends application written in Svelte and React","archived":false,"fork":false,"pushed_at":"2025-05-19T16:26:47.000Z","size":1309,"stargazers_count":25,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T17:37:02.866Z","etag":null,"topics":["bootstrap","micro-frontends","react","svelte","vite"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/heikkilamarko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-17T13:09:09.000Z","updated_at":"2025-05-19T16:26:50.000Z","dependencies_parsed_at":"2024-07-12T12:54:35.021Z","dependency_job_id":"661d92af-f9c5-45e7-937b-c58cc082fa54","html_url":"https://github.com/heikkilamarko/micro-frontends-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heikkilamarko/micro-frontends-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkilamarko%2Fmicro-frontends-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkilamarko%2Fmicro-frontends-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkilamarko%2Fmicro-frontends-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkilamarko%2Fmicro-frontends-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heikkilamarko","download_url":"https://codeload.github.com/heikkilamarko/micro-frontends-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heikkilamarko%2Fmicro-frontends-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265876926,"owners_count":23842956,"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":["bootstrap","micro-frontends","react","svelte","vite"],"created_at":"2024-11-13T17:28:42.600Z","updated_at":"2025-07-19T02:33:00.532Z","avatar_url":"https://github.com/heikkilamarko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro Frontends App\n\nThis repository contains the source code of a simple micro frontends application written in Svelte and React.\n\n## A Brief Introduction to Micro Frontends\n\n- Micro frontends is similar thing on the frontend side, as microservices are on the backend side.\n- Applications are composed of a set of well-defined, loosely coupled components.\n- We can identify micro frontends in our applications by applying principles, such as _Domain Driven Desing (DDD)_.\n- Each micro frontend is owned by a single cross-functional team.\n  - Easier scaling of teams and projects.\n  - Smaller scope enables faster onboarding of new teams and team members.\n- Teams can more freely pick their technology stack.\n  - Prevents technology lock-in.\n  - Makes applications more future-proof by allowing teams to more easily experiment with and migrate to new technologies.\n- We get independent updates, so that if one part of the application changes, we only need to update the micro frontend(s) that implement the changed functionality.\n- Micro frontends patterns can be very effective when migrating an existing monolithic application to a more modular architecture.\n  - _Strangler Pattern_ to kill the monolith by eating it piece-by-piece, until there is nothing left from the original implementation.\n- Micro frontends is no silver bullet. It comes with its own challenges, such as operational and governance complexity, and possibly bigger payload sizes.\n- The important thing is to understand the trade-offs, and make an informed decision on whether to adopt micro frontends in your applications.\n\n### Decision Frameworks\n\nThere exist several approaches to implement micro frontends.\n\nDecisions frameworks like the one presented [here](https://medium.com/@lucamezzalira/micro-frontends-decisions-framework-ebcd22256513), can prove to be really useful in the early stages of a project.\n\n### Libraries and Frameworks\n\nMicro frontends continue to gain in popularity, so there already exist several libraries and frameworks to implement them.\n\n- [single-spa](https://single-spa.js.org/)\n- [Frint](https://frint.js.org/)\n- [Luigi](https://luigi-project.io/)\n\n**Custom solution** is also a perfectly viable option. It gives you the full flexibility to innovate and evolve your solution.\n\n_The sample application in this repository is implemented without any 3rd party micro frontend libraries._\n\n### Recommended Reading\n\n- https://martinfowler.com/articles/micro-frontends.html\n- https://medium.com/@lucamezzalira\n- https://medium.com/@lucamezzalira/micro-frontends-resources-53b1ec7d512a\n\n## Application Components\n\n\u003cimg src=\"./doc/micro-frontends.svg\" height=\"400\" style=\"margin:1rem\"\u003e\u003cimg\u003e\n\n### Application Shell (`app-shell`)\n\n- Gateway to the application.\n- Implements the top menu and client-side routing.\n- Loads (lazy), mounts, and unmounts micro frontends based on application state.\n- Technologies: [Svelte](https://svelte.dev/), [Universal Router](https://github.com/kriasoft/universal-router), [Ky](https://github.com/sindresorhus/ky), [Bootstrap](https://getbootstrap.com/), [Vite](https://vitejs.dev/)\n\n### Browse Micro Frontend (`mf-browse`)\n\n- Implements browse experience.\n- Shows a list of selectable items.\n- Technologies: [React](https://reactjs.org/), [Ky](https://github.com/sindresorhus/ky), [Bootstrap](https://getbootstrap.com/), [Vite](https://vitejs.dev/)\n\n### Detail Micro Frontend (`mf-detail`)\n\n- Implements detail experience.\n- Shows some details about the selected item.\n- Technologies: [Svelte](https://svelte.dev/), [Ky](https://github.com/sindresorhus/ky), [Bootstrap](https://getbootstrap.com/), [Vite](https://vitejs.dev/)\n\n### Backend (`api`)\n\n- Provides JSON data and images for the application.\n\n## Styling Solution\n\nApplication shell and the micro frontends use [Bootstrap](https://getbootstrap.com/) for styling.\n\n## Cross-Application Communication\n\nApplication shell and the micro frontends can communicate in a loosely coupled way by using the standard [Custom Events API](https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events).\n\n## Building and Running the App\n\n```bash\ndocker compose up --build -d\n```\n\n```bash\nopen http://localhost:8000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheikkilamarko%2Fmicro-frontends-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheikkilamarko%2Fmicro-frontends-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheikkilamarko%2Fmicro-frontends-app/lists"}