Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/afonsojramos/astro-microfrontends

Framework Agnostic Microfrontends using ESM Imports and Astro Islands
https://github.com/afonsojramos/astro-microfrontends

astro esm esmodules island-architecture microfrontend react solidjs url-imports

Last synced: 2 months ago
JSON representation

Framework Agnostic Microfrontends using ESM Imports and Astro Islands

Awesome Lists containing this project

README

        

# esm-microfrontends

This demo takes advantage of EcmaScript Modules (ESM) and url-imports to do client-side composition of microfrontends. Vite is used to bundle each microfrontend and Astro is used to bundle the shell.

## Features

- ✨ Client-side composition of microfrontends
- 📦 Multiframeworks with Astro Islands
- 🚀 SSG/SSR supported by Astro

## Usage

- Build and serve each microfrontend with `pnpm build && pnpm serve`
- Start the shell with `pnpm dev`

## Shared dependencies

Dependencies such as react and react-dom are shared across applications. They are fetched from [esm.sh](https://esm.sh/) and gets cached in the browser, reducing the bundle size. Each app can share other dependencies as well through url imports.