Rebuilding a Feed micro frontend in five weeks

This rebuild came before I started delegating most implementation work to LLMs, so I wrote it by hand with very little AI assistance. I owned the new architecture, production switch-over and host loader while the existing app stayed in use.

rewrite, 11 December 2025 to 12 January 2026
32 days
production switch-over, 13 to 19 January
1 week
product pages served by the new remote
3
Where
Feed at Rogii: the Output, Exchange and Streaming Status pages
When
Rewrite 11 December 2025 to 12 January 2026, switch-over 13 to 19 January
My part
Prototyped the stack, wrote the new app, switched production over, changed the host to load it
Stack
Vite 7, Module Federation, TanStack Query, Zustand, TypeScript 5.9, React Router 6, Vitest, Playwright

Three pages of Rogii's Feed product come from one micro frontend that the host app loads through Module Federation: Output, which pushes data to customer databases, Exchange, which moves data both ways with Petrel Studio, and Streaming Status. The app ran on webpack 5, TypeScript 4.7, Redux Toolkit with RTK Query, React Router 5 and Jest.

In late 2025 our managers chose a rebuild because we had the time and resources to invest in an architecture that would scale. I owned the implementation, from the first prototypes through the production switch-over.

Prototypes first

I checked the two risky parts before writing the app:

  • A Vite build of the app as a Module Federation remote. I had a working prototype in November 2025.
  • TanStack Query and Zustand in place of Redux. I shipped them into the old app's Exchange page first, at the end of November.
Prototypes in November 2025, then the rewrite next to the old app from 11 December 2025 to 12 January 2026, then the switch-over from 13 to 19 January 2026, while the old app kept getting fixes. Prototypes November 2025 Rewrite 11 Dec to 12 Jan Switch-over 13 to 19 Jan 2026 old app keeps getting fixes, ported at switch-over

Separating state and dependencies

  • Feature-Sliced Design layers and our own lint rules from the first day, so tools check the structure.
  • Server state in TanStack Query, client state in small Zustand stores. The later tree performance fixes relied on TanStack's control over structural sharing and mutation state.
  • Vite builds the remote; Vitest and Playwright test it.
  • Only React and React DOM are shared with the host, as singletons. The remote bundles its own TanStack Query.

32 days

The first four days went to setup: layers and lint rules, router, permissions, Vitest and Playwright. Then the screens: both trees and the tables in December, forms, process runs and schedules over the holidays. The last days went to the light theme and to the fixes that had landed in the old app in the meantime.

Switch-over

On 13 January I replaced the old code with the new app and changed the host in the same ticket. I wrote a loader that reads the remote's manifest and passes services in as props. Ported fixes, environment config and generated API types followed the next day, CI by 19 January.

Questions about this project: [email protected]