{"id":30143270,"url":"https://github.com/sasoria/astro-microfrontends","last_synced_at":"2025-08-11T06:53:10.118Z","repository":{"id":132795497,"uuid":"593104232","full_name":"sasoria/astro-microfrontends","owner":"sasoria","description":"Client-side composition of microfrontends using Astro","archived":false,"fork":false,"pushed_at":"2025-04-08T13:19:19.000Z","size":394,"stargazers_count":71,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T14:27:19.769Z","etag":null,"topics":["astro","esm","importmaps","javascript","micro-frontends","microfrontends","react","ssr"],"latest_commit_sha":null,"homepage":"https://medium.com/@sergio.a.soria/setting-up-micro-frontends-with-astro-and-ecma-script-modules-137340d2c520","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/sasoria.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}},"created_at":"2023-01-25T08:46:19.000Z","updated_at":"2025-04-08T13:19:23.000Z","dependencies_parsed_at":"2024-01-25T12:05:05.763Z","dependency_job_id":"577a347d-7a8a-4b2e-82ad-b0e1b6ea80d5","html_url":"https://github.com/sasoria/astro-microfrontends","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sasoria/astro-microfrontends","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasoria%2Fastro-microfrontends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasoria%2Fastro-microfrontends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasoria%2Fastro-microfrontends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasoria%2Fastro-microfrontends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sasoria","download_url":"https://codeload.github.com/sasoria/astro-microfrontends/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sasoria%2Fastro-microfrontends/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269843742,"owners_count":24484117,"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-08-11T02:00:10.019Z","response_time":75,"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":["astro","esm","importmaps","javascript","micro-frontends","microfrontends","react","ssr"],"created_at":"2025-08-11T06:52:52.781Z","updated_at":"2025-08-11T06:53:10.109Z","avatar_url":"https://github.com/sasoria.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astro-microfrontends\n\nThis demo takes advantage of EcmaScript Modules (ESM) and url-imports to do client-side composition of microfrontends. Express is used for serving assets, but ideally one would have a dedicated CDN hosting them.\n\n## Features\n\n- ✨ Client-side composition of microfrontends\n- 📦 Multiframeworks with Astro Islands\n- 🚀 SSG/SSR supported by Astro\n\n## Usage\n\n### Micro frontends\n\n- Build each micro frontend with `npm run build`\n- Start each micro frontend with `npm run preview`\n\nFor production you would start the node server in the `server` folder, after building.\n\n### Shell\n\n- Build the shell with `npm run build`\n- Start the shell with `npm run preview`\n\n## Shared dependencies\n\nDependencies such as react and react-dom are shared across applications. They are fetched from [esm.sh](https://esm.sh/) and gets cached in the browser, reducing the bundle size. Each app can share other dependencies as well through url imports.\n\n## Recommendations\n\nI've written a few recommendations and best practices. You can read them [here](/RECOMMENDATIONS.md). I also have a section for [questions and answers](/QUESTIONS.md).\n\n## Resources\n\n- An [article](https://medium.com/@sergio.a.soria/setting-up-micro-frontends-with-astro-and-ecma-script-modules-137340d2c520) on the implementation.\n- A [shoe shop](https://github.com/ayoayco/shoe-shop) example by Ayo Ayco.\n- A [presentation](https://www.youtube.com/watch?v=UQ_C79OyXI4) at require(lx) by Afonso Ramos.\n- An article on [microfrontends with astro, solid \u0026 react](https://medium.com/@raymondboswel/microfrontends-with-astro-solid-react-14b89a8e861a) by Raymond Boswel.\n- An exmaple of distributed, [server-side rendered microfrontends](https://github.com/sasoria/astro-microfrontends-ssr-distributed).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasoria%2Fastro-microfrontends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsasoria%2Fastro-microfrontends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsasoria%2Fastro-microfrontends/lists"}