{"id":15748072,"url":"https://github.com/webbertakken/microfrontends-nextjs-example","last_synced_at":"2025-03-31T06:42:34.849Z","repository":{"id":189035831,"uuid":"679889916","full_name":"webbertakken/microfrontends-nextjs-example","owner":"webbertakken","description":"WIP","archived":false,"fork":false,"pushed_at":"2023-08-18T15:25:55.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T11:28:16.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/webbertakken.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},"funding":{"github":"webbertakken","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-08-17T21:15:20.000Z","updated_at":"2023-08-18T15:25:58.000Z","dependencies_parsed_at":"2024-10-04T05:41:18.561Z","dependency_job_id":"570f6e21-d63a-4805-9d68-d1875fd49f6f","html_url":"https://github.com/webbertakken/microfrontends-nextjs-example","commit_stats":null,"previous_names":["webbertakken/microfrontends-nextjs-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Fmicrofrontends-nextjs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Fmicrofrontends-nextjs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Fmicrofrontends-nextjs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Fmicrofrontends-nextjs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webbertakken","download_url":"https://codeload.github.com/webbertakken/microfrontends-nextjs-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429448,"owners_count":20775805,"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":[],"created_at":"2024-10-04T05:40:31.244Z","updated_at":"2025-03-31T06:42:34.832Z","avatar_url":"https://github.com/webbertakken.png","language":"JavaScript","funding_links":["https://github.com/sponsors/webbertakken"],"categories":[],"sub_categories":[],"readme":"# Micro frontends Next.js Example\n\n\n## Resources\n\n- [Micro-frontends](https://martinfowler.com/articles/micro-frontends.html) (Martin Fowler blog) \n\n## Software references\n\n- [Next.js repo with turbo](https://github.com/vercel/turbo/tree/main/examples/with-yarn)\n- [Next.js Module Federation](https://github.com/module-federation/module-federation-examples/blob/master/nextjs-v13)\n- [Next.js Module Federation plugin](https://github.com/module-federation/universe/tree/main/packages/nextjs-mf)\n\n## Requirements\n\nMust work with latest:\n\n  - React, Next.js for rendering\n  - Redux for state management\n\n## Quests\n\n- Is there any difficulty applying SSR (runtime) and SSG (build time) rendering strategies for both container and page?\n- Derive whether a separately deployed container application is preferred or not\n- Illustrate sharing both code and state between apps as well as isolated app state.\n \n## Rationale\n\nHere I'll describe the assumptions and decisions I've taken while building this example.\n\n#### Step 1: Monorepo\n\nFor a monorepo with multiple Next.js apps, Vercel recommends using Turborepo.\n\nThis repository uses the Turborepo [example](https://github.com/vercel/turbo/tree/main/examples/with-yarn) as the basis for everything else.\n\n#### Step 2: Rigging the application\n\nThere are a few technologies out there that allow you to create micro-frontends.\n\nThe Module Federation [plugin](https://github.com/module-federation/universe/tree/main/packages/nextjs-mf) for Next.js seems to be a solid low-code solution.\n\nIn this step I'm replacing the example apps with the ones from the Next.js Module Federation [example](https://github.com/module-federation/module-federation-examples/blob/master/nextjs-v13).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebbertakken%2Fmicrofrontends-nextjs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebbertakken%2Fmicrofrontends-nextjs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebbertakken%2Fmicrofrontends-nextjs-example/lists"}