A production-style microfrontend architecture built with Vue 3, Vite Module Federation, and FormKit.
This repository demonstrates:
- distributed UI ownership (3 independent remotes)
- host orchestration with dynamic remote loading
- schema-driven form rendering
- test and security quality gates
- CI automation suitable for engineering portfolio review
flowchart LR
A[orchestrator] --> B[formkit-app remote]
A --> C[formkit-app2 remote]
A --> D[formkit-app3 remote]
B --> E[(json-server 3000)]
C --> F[(json-server 4002)]
D --> G[(json-server 4003)]
formkit-app: remote 1, servesExampleFormformkit-app2: remote 2, servesExampleFormformkit-app3: remote 3, servesExampleFormorchestrator: host shell with routing and remote composition
- Vue 3
- Vite 5
- @originjs/vite-plugin-federation
- FormKit
- Vitest + Testing Library + MSW
- pnpm
- Node >= 24.0.0 < 25
- pnpm >= 10
Each app provides an environment template:
formkit-app/.env.exampleformkit-app2/.env.exampleformkit-app3/.env.exampleorchestrator/.env.example
Copy each template to .env in the same folder and tune the values for your environment.
Install all dependencies:
pnpm run install:allDevelopment mode (recommended):
# Single command: remotes + host + mock APIs
pnpm run dev:allAlternative with two terminals:
# Terminal 1: remotes + host (Vite dev servers)
pnpm run dev:ui
# Terminal 2: mock APIs
pnpm run dev:apiYou can also run one project at a time:
pnpm run dev:app
pnpm run dev:app2
pnpm run dev:app3
pnpm run dev:hostBuild and preview remotes:
pnpm run run:app
pnpm run run:app2
pnpm run run:app3Build + preview all remotes and mock APIs in one command:
pnpm run run:appsBuild and preview host:
pnpm run run:hostBuild + preview remotes + host + mock APIs:
pnpm run run:allRun JSON servers:
pnpm run jss
pnpm run jss2
pnpm run jss3Or all mock APIs together:
pnpm run run:apiRun all tests:
pnpm run test:allRun all builds:
pnpm run build:allRun full quality gate (lint, type-check, build, test, audit):
pnpm run verifyGitHub Actions workflow runs:
- install
- build
- tests
- production dependency audit
- host lint and type-check
See workflow: .github/workflows/ci.yml.
This project intentionally favors architecture and engineering controls over visual polish. It is designed to showcase leadership in:
- microfrontend composition
- runtime integration strategy
- quality automation and governance
- security-aware dependency management
Detailed case study: