{"id":25725619,"url":"https://github.com/jrestall/remix-federation","last_synced_at":"2025-06-26T07:32:17.219Z","repository":{"id":202703029,"uuid":"707940623","full_name":"jrestall/remix-federation","owner":"jrestall","description":"Federated Remix app development, built on native federation. (experiment)","archived":false,"fork":false,"pushed_at":"2024-06-15T08:39:27.000Z","size":1826,"stargazers_count":44,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-02T19:19:54.725Z","etag":null,"topics":["micro-frontends","module-federation","remix-run"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jrestall.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":"2023-10-21T03:28:45.000Z","updated_at":"2025-03-07T06:57:57.000Z","dependencies_parsed_at":"2025-02-25T22:31:59.026Z","dependency_job_id":"f23296c3-cde9-4821-b9f6-66b8b63d3e1d","html_url":"https://github.com/jrestall/remix-federation","commit_stats":null,"previous_names":["jrestall/remix-federation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrestall/remix-federation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrestall%2Fremix-federation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrestall%2Fremix-federation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrestall%2Fremix-federation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrestall%2Fremix-federation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrestall","download_url":"https://codeload.github.com/jrestall/remix-federation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrestall%2Fremix-federation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262022508,"owners_count":23246324,"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":["micro-frontends","module-federation","remix-run"],"created_at":"2025-02-25T22:31:45.095Z","updated_at":"2025-06-26T07:32:17.110Z","avatar_url":"https://github.com/jrestall.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"docs/assets/remix-federation.png?raw=true\" height=\"150\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\nRemix Federation\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\nFederated \u003ca href=\"https://remix.run/docs\"\u003eRemix\u003c/a\u003e app development, using module federation concepts on native import maps, providing runtime integration of independent Remix sites.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\nBuilt on Native Federation from \u003ca href=\"https://github.com/angular-architects/module-federation-plugin/tree/main/libs/native-federation-core\"\u003e@softarc/native-federation\u003c/a\u003e that provides a build tool agnostic and native browser approach to module federation.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#status\"\u003e\u003cimg src=\"https://img.shields.io/badge/stability-experimental-orange.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Setup\n\n```shell\n\u003e pnpm i\n\u003e pnpm run dev\n```\n\nPlease see the [status](#status) section.\n\n### Features\n\n- ✅ Runtime loading and sharing of routes between Remix sites\n- ✅ Runtime sharing of code and components between Remix sites\n- ✅ Mental Model of Module Federation\n- ✅ Future Proof: Independent of build tools like webpack\n- ✅ Embraces Import Maps and EcmaScript modules\n\n### Architecture\n\u003cp\u003e\n\u003cimg src=\"docs/assets/server-tree.jpg?raw=true\" height=\"320\"\u003e\n\u003c/p\u003e\n\nThe demo application follows a similar architecture to that outlined by the Cloudflare team at https://blog.cloudflare.com/better-micro-frontends/ and the source for the above diagram.\n\nEach independently hosted [micro-frontend](https://martinfowler.com/articles/micro-frontends.html) can be responsible for parts of the route tree. Requests go to the root host application and are proxied through to the other remotes/hosts to fulfill the request and compose the UI.\n\nTo achieve this in Remix the root Host defines a [splat route](https://remix.run/docs/en/main/file-conventions/routes#splat-routes) that matches the base path for one of its remotes e.g. `/blog/*`. The splat route will then proxy action/loader requests through to the remote application and dynamically load all the remote app's routes via Remix's route manifest file e.g. `/blog/posts/1`, `/blog/post/`.  \n\n### Status\n\n**(Experimental)** This is currently just an experiment and proof of concept.\n\n### Future Work\n\n- Fix required pnpm patch of remix-run/react components and get vite plugin working instead.\n- HMR of remotes.\n- Solve lack of SSR for remote routes. \n\n## License\n\n[MIT](https://github.com/sveltejs/kit/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrestall%2Fremix-federation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrestall%2Fremix-federation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrestall%2Fremix-federation/lists"}