npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gears-frontx/frontx-template-shell

v0.1.0-alpha.0

Published

Standard FrontX application template — target scaffold for non-Pillar-1 code relocation

Downloads

19

Readme

FrontX Standard Template

A complete, runnable FrontX application — a host shell wired to the FrontX microfrontend runtime, a set of demo microfrontends, solution packages (theming, i18n, state, auth, a development Studio), and the build/test tooling to develop and ship it.

You are (typically) reading this inside a project that was scaffolded from this template with the FrontX CLI:

frontx seed frontx-template-shell ./my-app

From here on, this repository is your application. This template gives you a working starting point; what you build on top is yours.

What you get

  • A host application (src-app/app) — the shell that boots the FrontX runtime, renders the layout (menu, header, footer, screen container), and mounts microfrontends on demand.
  • The MFE runtime, pre-wired — screens are contributed by microfrontends and appear in the menu automatically; no central screen registry to maintain.
  • Demo microfrontends (src-app/mfe_packages, added separately via frontx-template-mfe) — demo-mfe (Hello World, Profile, Current Theme, UIKit Elements, Widgets Host), a minimal _blank-mfe to copy from, and two widget fixtures. A shell-only seed has zero MFEs; the host, build, and manifest pipeline all work with none present.
  • Solution packages (packages/) — react, framework, state, i18n, studio, auth: the application-layer libraries the FrontX ecosystem deliberately does not bundle.
  • Theming, i18n, and a dev Studio — CSS-variable theme tokens, translation scaffolding, and an in-app FrontX Studio panel for toggling mock APIs, themes, and language during development.

Who it's for

Applications built from this template target teams delivering modern SaaS control panels:

  • Cloud SaaS providers needing multitenant architectures with tenant isolation and customization
  • Service vendors building white-label solutions with per-customer branding and feature sets
  • Corporate software vendors building control panels for complex business applications
  • System integrators creating pluggable control panels with third-party integrations
  • Platform/IT teams building internal tools and admin portals with role-based access control

What you can build with it

This template is designed for the hard problems of modern control-panel UIs and gives you a foundation for:

  • Multitenancy — isolated data, configuration, and branding per customer/organization
  • Role-based access control — permissions that show/hide/disable UI by user role
  • White-label support — per-tenant branding and themes via the theme registry
  • Plugin ecosystems — runtime-composable microfrontends without core code changes
  • Global enablement — multi-language, RTL/LTR, locale-aware formatting
  • Flexible builds — web today, with room to grow to desktop / on-prem / cloud
  • High customization — configurable views, dashboards, and workflows

Its aim is to make powerful in-product UI development approachable — as capable as hand-rolled control-panel engineering, but structured so AI agents and humans can build and evolve screens together.

Capabilities

  • Human-configurable UI core — layout, styles, and build targets
  • Layout-safe screen generation — AI/human code separation
  • Component & style consistency — design-system enforcement
  • Modular screen architecture — composable building blocks
  • Pluggable UI microfrontends — a secure plugin ecosystem
  • Shared/private store & global/local state — performance and offline-first
  • Unified API layer — typed contracts and observability
  • Security, multitenancy & RBAC — enterprise SSO and compliance foundations
  • Internationalization & localization — global-deployment ready
  • Testing & quality gates — an automated QA pipeline

Building UI with AI

This template is optimized for AI + human co-creation of UI, in three stages:

  1. Drafts (AI-driven) — an AI agent generates initial screen layouts from prompts, requirements, and any existing API specs. Multiple variants can be generated and compared; drafts stay isolated from production code.
  2. Mockups (AI-assisted, human-refined) — designers and PMs refine drafts with visual and interaction detail, with the agent assisting on component selection and style consistency.
  3. Production (human-polished) — engineers integrate mockups with business logic and APIs, then review, test, and ship. Production screens inherit the template's theming, i18n, and access-control capabilities.

The result: up to 10x faster UI development with maintainable, enterprise-grade code.

Requirements

  • Node.js 24+
  • npm 10+

Getting started

# 1. Install dependencies
npm install

# 2. Build the library + solution packages
npm run build:package && npm run build:packages

# 3. Start everything — host + any MFE dev servers present
npm run dev:all

# 4. Open the app
#    Host:  http://localhost:5173

A shell-only seed has no MFEs yet, so dev:all just runs the host, and generate:mfe-manifests writes an empty manifest set — both expected, not errors. Add MFE packages with frontx add frontx-template-mfe (see template-mfe), then run npm install again — add changes what the workspace glob matches, so the lock must be regenerated — before their preview ports (:3001 demo, :3099 blank, :3201/:3202 widget fixtures) come up alongside the host.

Alpha note. This template pins the FrontX ecosystem packages (@gears-frontx/mfes, @gears-frontx/gts-plugin, @gears-frontx/api) by local path for pre-release development; published releases resolve them from the npm registry.

See QUICK_START.md for the hands-on development workflow — creating screens and microfrontends, layout, state, styling, and commands.

Project structure

my-app/
├── src-app/                 # Host application
│   ├── app/                 # Shell: App, providers, wiring
│   │   ├── components/ui/   # App-owned UI primitives (shadcn)
│   │   ├── layout/          # CoreLayout: menu, header, footer, screen slot
│   │   ├── mfe/             # MFE bootstrap + generated manifests
│   │   ├── themes/          # Theme tokens and registries
│   │   └── globals.css      # Tailwind entry + theme CSS variables
│   └── mfe_packages/        # Microfrontends (empty until `frontx add frontx-template-mfe`)
├── src/                     # Shared solution lib (api, build, gts)
├── packages/                # Solution packages: react, framework, state, i18n, studio, auth
├── public/                  # Static assets + generated-mfe-manifests.json
├── scripts/                 # dev-all, build-mfes, manifest generation
├── tailwind.config.ts       # TailwindCSS configuration
├── vite.config.ts           # Host Vite + Module Federation config
└── .frontx/                 # Template provenance (managed by the frontx CLI)

Scripts

| Script | What it does | |--------|--------------| | npm run dev:all | Build MFEs, then run the host + every MFE preview server together | | npm run dev | Host only (rebuilds packages + MFEs, then Vite dev server) | | npm run build | Full production build | | npm run build:packages | Build the solution workspace packages | | npm run build:mfes | Build all microfrontend packages | | npm run generate:mfe-manifests | Regenerate the host's MFE manifest index | | npm run preview | Preview a production build | | npm run type-check | Type-check the host app, packages, and MFEs | | npm run lint | ESLint across the project | | npm run arch:deps | Dependency-boundary rules check | | npm run test:unit | Unit tests (package + host app + workspace MFEs) |

Tech stack

  • React + TypeScript + Vite with Module Federation for MFEs
  • Tailwind CSS with CSS-variable theme tokens (shadcn/ui primitives)
  • Built on the FrontX ecosystem: @gears-frontx/mfes (runtime), @gears-frontx/gts-plugin (type system), @gears-frontx/api (API layer)

Upgrading

This project records its template provenance under .frontx/. When a newer template version is released, upgrade with the FrontX CLI — changes are shown as a reviewable change set before anything is written:

frontx upgrade . <targetVersion>

Multi-template repositories. frontx upgrade is not yet supported once a second template has been added (e.g. after frontx add frontx-template-mfe) — it currently reads a single provenance record. Upgrading a shell+mfe project is not supported in this release.