Project 62 of 84
Next.js MFE Template
Private TypeScript micro-frontend monorepo template (Turborepo + pnpm) in which a Next.js shell host proxies independently developed content zones at request time behind a single origin.
- Status
- Shipped
- Last activity
- 2026
- Live
No public deployment.
- Stack
- TypeScript
- Next.js
- React
- Turborepo
- pnpm workspaces
- zustand
- nuqs
- react-hook-form
Highlights
- Migrated a Next.js micro-frontend shell router from the deprecated middleware.ts to the Next.js 16 proxy.ts convention, and added a drift test asserting the hand-maintained static matcher equals the registry-derived contentZoneMatchers(), closing a gap where the docs claimed coverage that did not exist.
- Wrote three architecture decision records (Turborepo + pnpm over Nx + Yarn 4; runtime cross-zone routing instead of build-time rewrites frozen into routes-manifest.json; a single ZONES registry with one guarded exception) plus an ADR register with immutability and supersession rules.
- Added the template's first pull-request CI gate (turbo lint/typecheck/test/build with --affected on PRs, full graph on push to main) on the org's self-hosted macOS runner group, then hardened it to skip setup-node where runners already have Node 24.20+ after cache steps wedged runners.
- Kept the push-to-main full CI run after review showed that with --affected PR runs and a non-strict ruleset, two individually green PRs could break main unseen, and closed the proposed CI-cost cut instead of merging it.
- Codified repository conventions in a 347-line CODING_STANDARDS.md and a 133-line domain GLOSSARY.md, then ran a tracked standards-drift sweep that extended lint to shared packages and the e2e app and added spell-checking to CI.
- Moved the template into the catesworks GitHub org and replaced its local ESLint package with shared @cogs/eslint-config and @cogs/prettier-config presets, without new lint or typecheck errors.