1.0.1 • Published 7 months ago

@akinon/app-shell v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Akinon App Shell Library

The app-shell library is designed to orchestrate the integration of micro-frontend applications, providing a unified shell for navigation, theming, and inter-app communication.

Installation

To incorporate the app-shell library into your main application, execute:

pnpm install @akinon/app-shell

Usage

Incorporate the AppShellProvider at the top level of your main application:

import React from 'react';
import ReactDOM from 'react-dom';
import { AppShellProvider } from '@akinon/app-shell';
import MainApp from './MainApp';

ReactDOM.render(
  <AppShellProvider apps={yourAppsConfig} navigation={yourNavigationHandler}>
    <MainApp />
  </AppShellProvider>,
  document.getElementById('main')
);

yourAppsConfig should be an array of app configurations, including IDs, URLs, and types.

API

AppShellProvider

Props:

  • apps: An array of application configurations.
  • navigation: Navigation handler for the shell.
  • data: Optional shared data for micro-frontends.

Configuration

Define each micro-frontend application with:

  • id: Unique identifier.
  • url: Source URL for the iframe.
  • type: Type of app, e.g., 'full_page' or 'plugin'.

Extending

The app shell is designed to be extendable. Implement custom logic for navigation, theming, and more to fit the needs of your micro-frontend architecture.

For detailed documentation on extending the app shell, configuration options, and more advanced use cases, refer to the full documentation.

1.0.1

7 months ago

1.0.0

9 months ago

0.14.0

11 months ago

0.15.0

11 months ago

0.13.0

12 months ago

0.12.0

12 months ago

0.10.0

12 months ago

0.11.0

12 months ago

0.8.2-alpha.0

1 year ago

0.8.2-alpha.1

1 year ago

0.9.0

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.1

2 years ago

0.4.1

2 years ago

0.3.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago