Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@luigi-project/container

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luigi-project/container

Javascript library enabling creation of microfrontends

  • 0.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
542
decreased by-4.91%
Maintainers
2
Weekly downloads
 
Created
Source

Luigi Container (Experimental!)

Introduction

Luigi Container is a component (web component) that can be included in an arbitrary application rendering a luigi micro frontend (iframe or web component based) without the need of being a luigi core application.

Usage

  1. Install the container package: @luigi-project/container
npm install @luigi-project/container
  1. Import it into your project:
    import { LuigiContainer } from '@luigi-project/container';
  1. Define your own component with a given tag name that you can use in your applicatoin:
customElements.define('my-luigi-container', LuigiContainer);

Having defined the tag you can now use the Luigi container as follows anywhere in your application:

    <my-luigi-container 
        viewURL="https://www.example-microfronted.com" 
        webcomponent="false" 
        label="my label"
        context='{"label": "Calendar"}'>
    </my-luigi-container>

Development

Build the bundle and start an example app

npm install
npm run build
npm start

Check [./public/index.html] for how it is used.

Keywords

FAQs

Package last updated on 02 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc