{"id":29099981,"url":"https://github.com/lavesan/nx-zephyr-module-federation-example","last_synced_at":"2026-04-25T08:36:06.258Z","repository":{"id":298205126,"uuid":"999205690","full_name":"lavesan/nx-zephyr-module-federation-example","owner":"lavesan","description":"Simple example using React, Module Federation, NX, zephyr, RsBuild and Vercel","archived":false,"fork":false,"pushed_at":"2025-06-11T01:11:05.000Z","size":249,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T17:48:20.738Z","etag":null,"topics":["module-federation","nx","react","rsbuild","typescript","vercel","zephyr"],"latest_commit_sha":null,"homepage":"https://nx-zephyr-module-federation-example.vercel.app","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/lavesan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-09T22:50:18.000Z","updated_at":"2025-06-11T01:56:12.000Z","dependencies_parsed_at":"2025-06-10T00:34:44.117Z","dependency_job_id":null,"html_url":"https://github.com/lavesan/nx-zephyr-module-federation-example","commit_stats":null,"previous_names":["lavesan/nx-zephyr-module-federation-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lavesan/nx-zephyr-module-federation-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavesan%2Fnx-zephyr-module-federation-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavesan%2Fnx-zephyr-module-federation-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavesan%2Fnx-zephyr-module-federation-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavesan%2Fnx-zephyr-module-federation-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lavesan","download_url":"https://codeload.github.com/lavesan/nx-zephyr-module-federation-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavesan%2Fnx-zephyr-module-federation-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32255719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["module-federation","nx","react","rsbuild","typescript","vercel","zephyr"],"created_at":"2025-06-28T17:38:06.529Z","updated_at":"2026-04-25T08:36:06.248Z","avatar_url":"https://github.com/lavesan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nx Module Federation with Zephyr\n\nA modern micro-frontend architecture demonstration using Module Federation, built with Nx monorepo and Zephyr. This project showcases how to build scalable, modular web applications using cutting-edge technologies.\n\n🔗 [Live Demo](https://nx-zephyr-module-federation-shell.vercel.app/)\n\n## Project Overview\n\nThis monorepo contains three main applications that work together using Module Federation:\n\n- **Shell** (Host Application)\n\n  - Main container application\n  - Handles routing and navigation\n  - Integrates remote modules seamlessly\n  - Modern header with responsive design\n\n- **Courses** (Remote Module)\n\n  - Course listing interface\n  - Beautiful card-based layout\n  - Tech-focused course content\n  - Responsive grid design\n\n- **Profile** (Remote Module)\n  - Student profile dashboard\n  - Learning statistics\n  - Progress tracking\n  - Interactive UI elements\n\n## Technology Stack\n\n### Core Technologies\n\n- **Nx** (v20.7.2)\n\n  - Monorepo management\n  - Efficient build system\n  - Smart caching\n  - Project dependency graph\n\n- **Module Federation**\n\n  - Runtime dependency sharing\n  - Dynamic remote loading\n  - Shared component library\n  - Micro-frontend architecture\n\n- **Zephyr**\n  - Custom RSBuild plugin\n  - Enhanced build configuration\n  - Optimized module federation setup\n\n### Build Tools\n\n- **RSBuild/RSPack**\n\n  - Next-generation build tool\n  - Fast compilation\n  - Built-in optimizations\n  - Module Federation support\n\n- **Biome**\n  - Modern JavaScript/TypeScript toolchain\n  - Linting and formatting\n  - Performance focused\n\n### Frontend Stack\n\n- **React** (v19.1.0)\n\n  - Component-based architecture\n  - Modern React features\n  - Efficient rendering\n\n- **TypeScript**\n  - Type safety\n  - Enhanced developer experience\n  - Better code maintainability\n\n## Architecture\n\nThe project uses a micro-frontend architecture with Module Federation:\n\n```mermaid\ngraph TD\n    A[Shell App] --\u003e B[Courses App]\n    A --\u003e C[Profile App]\n    B --\u003e D[Shared Dependencies]\n    C --\u003e D\n    D --\u003e E[React]\n    D --\u003e F[React DOM]\n```\n\n## Deployment\n\nThe project is deployed on Vercel with separate deployments for each application:\n\n- Shell App: [https://nx-zephyr-module-federation-shell.vercel.app/](https://nx-zephyr-module-federation-shell.vercel.app/)\n- Courses App: Remote module integrated with Shell\n- Profile App: Remote module integrated with Shell\n\n## Getting Started\n\n1. **Clone the repository**\n\n```bash\ngit clone https://github.com/lavesan/nx-zephyr-module-federation-example.git\n```\n\n2. **Install dependencies**\n\n```bash\npnpm install\n```\n\n3. **Start development servers**\n\n```bash\npnpm dev\n```\n\nThis will start all applications:\n\n- Shell: http://localhost:3000\n- Courses: http://localhost:3001\n- Profile: http://localhost:3002\n\n## Project Structure\n\n```\nnx-module-federation-with-zephyr/\n├── apps/\n│   ├── shell/          # Host application\n│   ├── courses/        # Remote module for courses\n│   └── profile/        # Remote module for profile\n├── packages/\n│   └── zephyr-rsbuild-plugin/  # Custom build plugin\n└── [configuration files]\n```\n\n## Key Features\n\n- **Dynamic Module Loading**: Remote modules are loaded on demand\n- **Shared Dependencies**: Efficient runtime dependency sharing\n- **Type Safety**: Full TypeScript support across all applications\n- **Modern UI**: Responsive design with modern aesthetics\n- **Build Optimization**: Efficient build process with RSBuild\n- **Development Experience**: Hot Module Replacement (HMR) support\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavesan%2Fnx-zephyr-module-federation-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flavesan%2Fnx-zephyr-module-federation-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavesan%2Fnx-zephyr-module-federation-example/lists"}