add-microfrontend

Automate micro-frontend setup with iframe composition and shared Supabase authentication.

1|Updated May 26, 2026
One-click install
npx skills add https://github.com/BaraArdiwinata/hackathon-sima-arome --skill add-microfrontend-baraardiwinata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-microfrontend
Source: https://github.com/BaraArdiwinata/hackathon-sima-arome/tree/main/.agents/skills/add-microfrontend
Command: npx skills add https://github.com/BaraArdiwinata/hackathon-sima-arome --skill add-microfrontend-baraardiwinata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires next, supabase, react, axios, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill sets up a micro-frontend architecture, allowing you to compose independent micro-apps within a main application. It streamlines the process of creating a Main App that hosts micro-apps via iframes, ensuring shared authentication, session management, and backend communication.

Core Features & Use Cases

  • Micro-Frontend Setup: Automates the process of setting up a micro-frontend architecture using client-side iframe composition.
  • Shared Authentication: Ensures all micro-apps share a single authentication instance (Supabase session cookies).
  • URL Syncing: Allows for browser URL syncing via postMessage for seamless navigation and state management.
  • Shared DaaS Backend: Facilitates communication with a single DaaS backend for data storage and retrieval.
  • Isolated Rendering: Ensures each micro-app renders independently within its iframe sandbox.
  • Use Case: Ideal for creating a scalable and modular web application where different teams can develop and deploy independent features.

Quick Start

Use the add-microfrontend skill with the command: add-microfrontend [microapp name] [host route, e.g. /admin/dashboard]

Frequently Asked Questions about add-microfrontend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a micro-frontend architecture using client-side iframe composition?

Micro-frontend architecture via client-side iframe composition is set up by automating the creation of a Main App that hosts independent micro-apps, ensuring isolated rendering, URL syncing via postMessage, and shared authentication sessions across all deployed modules.

How does shared authentication work across independent micro-apps in an iframe architecture?

Shared authentication across independent micro-apps works by utilizing a single Supabase session cookie instance. This ensures that all isolated micro-apps rendered within their iframe sandboxes maintain synchronized user authentication and session management without requiring separate logins.

Do I need Next.js and Supabase to build a micro-frontend with shared authentication?

Yes, you need Next.js and Supabase to build this micro-frontend architecture. Next.js serves as the foundational framework for the main application and micro-apps, while Supabase provides the required shared authentication, session cookies, and backend DaaS integration.

What is the best way to sync browser URLs across multiple independent micro-app deployments?

The best way to sync browser URLs across independent micro-app deployments is using postMessage communication. This allows the main hosting application and its iframe sandboxes to seamlessly synchronize navigation states and manage routing without complex server-side configurations.

Can I use a single DaaS backend for data storage across an iframe-based micro-frontend architecture?

Yes, you can use a single DaaS backend for data storage across an iframe-based micro-frontend architecture. This setup facilitates direct communication with one backend instance for data retrieval and storage, ensuring all isolated micro-apps share the same data layer.

What are the limitations of using client-side iframe composition for micro-frontend architecture?

Limitations of client-side iframe composition include potential communication overhead from postMessage URL syncing and strict browser sandboxing rules. While rendering is isolated, this approach requires specific iframe management tools and dependencies like React and Axios to function correctly.