Socket
Socket
Sign inDemoInstall

create-mf-app

Package Overview
Dependencies
377
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    create-mf-app

Create Module Federation apps


Version published
Maintainers
1
Install size
7.83 MB
Created

Readme

Source

create-mf-app

npm version npm version

Creates a Module Federation application, API server, or library based on one of multiple different templates.

Usage

npx create-mf-app

These projects are not production complete. They are designed as lightweight projects that can be used to quickly prototype a new feature or library.

Programmatic Questions

Pick the name of your app? (host)

Press enter for the default host directory. Type . for the current directory or type the name of the new directory.

Project Type: 
  > Application
    API Server
    Library

Chose the Application, API Server, or Library.

Application

Port number: (8080)

Type a port number or press enter for the default port 8080.

Framework: (Use arrow keys)
    lit-html
    mithril
    preact
  > react
    react-esm
    solid-js
    svelte
    vanilla
    vue2
    vue3
    inferno

Chose desired framework.

Language:
  > typescript
    javascript

Chose your preferred programming language: javascript or typescript

CSS:
  > CSS
    Tailwind

Chose your desired form of styling. Tailwind will generate extra files.

API Server

Port number: (8080)

Type a port number or press enter for the default port 8080.

Template:
  > express
    graphql-apollo
    graphql-nexus
    graphql-subscriptions
    nextjs-auth
    nextjs-todo

Select the desired API template.

Library

A typescript file library will be automatically generated.

Programmatic Usage

const { buildProject } = require('create-mf-app')

buildProject({
  type: 'Application',
  name: 'my-project',
  port: '8080',
  framework: 'react',
  language: 'typescript',
  css: 'Tailwind',
})

FAQs

Last updated on 22 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc