Skip to content

Run Shell + MFE.

Start a host application, add its microfrontend workspace, and open the included examples.

Node.js 25.1.0 · npm 11.6.2 CLI 0.3.0-alpha.7

Working with a coding agent?First-change taskAI Kit setup

Commands use a macOS/Linux shell.

1

Create a clean workspace

Run these steps in the same terminal. Keep the template inventory local to this workspace; an existing project is not required.

Workspace
mkdir frontx-start && cd frontx-start
export FRONTX_INVENTORY_ROOT="$PWD/.frontx-inventory"

A new workspace with its own template inventory. No global CLI installation.

2

Install the two templates

Both templates come from the same pinned source revision. The CLI downloads them into the inventory.

Install templates
npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx install \
  github:constructorfabric/gears-frontx-templates//template-shell@3b6cddb2a700ae76bc5e1991204e127de566d597
npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx install \
  github:constructorfabric/gears-frontx-templates//template-mfe@3b6cddb2a700ae76bc5e1991204e127de566d597

The CLI reports that frontx-template-shell and frontx-template-mfe are installed.

3

Assemble Shell + MFE

Seed the host first, then add the microfrontend workspace. These commands use the full template identities, not their directory names.

Assemble project
npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx seed \
  @gears-frontx/frontx-template-shell ./my-app
npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx add \
  @gears-frontx/frontx-template-mfe ./my-app

The project appears in my-app. Its .frontx directory records both applied templates.

4

Run the included examples

Install the combined workspace, then start the host and its example microfrontends. Keep this terminal running.

Run examples
cd my-app
npm install
FRONTX_INCLUDE_TEMPLATE_EXAMPLES=1 npm run dev:all

Open http://localhost:5173. Example screens should appear in the host menu.

Choose Hello World in the menu

You should see “Hello World from MFE”. Choose Blank Home to load a different module. The examples flag is intentional: without it, template examples stay hidden and the empty menu is expected.

Uses localhost ports 5173, 3001, 3099, 3201 and 3202. Leave them free; stop the servers with Ctrl+C.

Versions, verification and limitations

Tested on macOS with Node.js 25.1.0 and npm 11.6.2. AI Kit setup is documented upstream and was not part of this check. Verified: template download, Shell seed, MFE add, dependency installation, build, type-check, and the Hello World / Blank Home browser flow with Back and reload. Source: 3b6cddb2 . Shell 0.1.0-alpha.5; MFE workspace 0.1.0-alpha.2.

This is a development example. Its installed dependency tree reported 23 npm audit findings (1 low, 11 moderate, 11 high). Those upstream dependencies were left unchanged. Run npm audit and review affected packages before adopting this example. Production deployment, authentication and upgrade flows are outside this verification. Upstream CI targets Node.js 24.14+; that minimum and Windows commands have not been tested locally.

The templates README shows seed shell --source … and add mfe --source …, which differ from CLI 0.3.0-alpha.7. These instructions use the published CLI’s verified install → seed → add sequence. After adding MFE, use npm install: the Shell-only lockfile does not yet include the new workspace.

Other ways to use FrontX

Use a library

Add individual capabilities to your existing application. UI Kit works independently of the full project structure.

Explore libraries

Build with an agent

Set up FrontX AI Kit through Constructor Studio CLI using the upstream guide.

AI Kit documentation

Make it yours

Change the existing Blank Home screen, rebuild it, and see your first edit inside the Shell.

Make your first change