Safe micro frontends without the hassle
Last updated 11 days ago by tommygun .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @digitalroute/plutt 
SYNC missed versions from official npm registry.

Plutt logo

Plutt: Safe micro frontends without the hassle

Version Downloads/week License

???? Description

Plutt is a build tool that enables developers to generate micro frontends from framework-native components and to serve them version safely. The micro frontends are automatically safe to use in production if they work during development.

✨ Features

  • Access transparency: Consuming applications use the micro frontends as regular components, without having to know that it is a micro frontend.
  • Automatic Version Safety: At run-time Plutt will always upgrade to the latest version of a micro frontend, as long as it is non-breaking. This is done by supporting lock-step deployments.
  • Framework Agnostic: Plutt applications can be consumed by any framework. Currently Plutt supports React and Vue, but it is easy to extend Plutt to support more frameworks.
  • Type Safety: Micro frontends can be consumed with type safety. Any props that are used incorrectly can be found at compile-time.

???? Usage

$ npm install -g @digitalroute/plutt
$ plutt COMMAND
running command...
$ plutt (-v|--version|version)
@digitalroute/plutt/0.0.0-semantically-released darwin-x64 node-v13.10.1
$ plutt --help [COMMAND]
  $ plutt COMMAND

???? Examples

All examples are located at Plutt Examples Collection.

???? How Plutt Works

Plutt is a build tool that enables developers to generate micro frontends from framework-native components and to serve them version safely. Plutt takes a framework-native component as input and outputs two types of artifacts: a Plutt Application (composed of the original Component and a Wrapper) and a Proxy. To serve Plutt applications, Plutt provides a Plutt Server.

You can use only a Plutt Application, but to get most benefits you should use the provided Proxy and Plutt Server.

Plutt Architecture

Plutt Application

A Plutt application is a self-contained micro frontend application that exposes functions for mounting with properties, updating the properties, and unmounting. Plutt applications are stored on a Plutt server and accessed in run-time, to ensure that the latest version is consumed.


A proxy is a framework-native component that knows how to fetch and mount a corresponding Plutt application. Plutt generates one proxy per supported framework, which currently is React and Vue. Proxies integrate into a parent application during compile-time. Proxies do not include any business logic, but they do include everything required to safely consume a Plutt application. Proxies fetch a specific version of a Plutt application which can be verified at compile-time to be non-breaking. If the Plutt application is typed, the proxy is also typed, and static analysis can be used to indicate if a Plutt application is integrated correctly.

Plutt Server

Plutt applications are stored on a Plutt server, which is where dependents fetch Plutt applications from. Plutt server upgrade requests to Plutt applications so that dependents receive the latest non-breaking version. Semantic versioning is used to ensure that the upgraded version is non-breaking. This way, the team that provides a micro frontend is responsible for deciding when to update to production, while ensuring that updates do not break dependent applications. Dependent teams own the decision of when to upgrade breaking versions. Plutt server provides every team with the correct responsibilities that facilitate independent deployments.

???? Commands

plutt build

Build a plutt app.

  $ plutt build

  -s, --sourceDirectory=sourceDirectory  [default: src] Source directory for the plutt app.
  -v, --verbose                          Prints extra information. Useful for debuging.

  Build a plutt app.

  Make sure that there exists a src/ directory with an index.js.

plutt help [COMMAND]

display help for plutt

  $ plutt help [COMMAND]

  COMMAND  command to show help for

  --all  see all commands in CLI

See code: @oclif/plugin-help

plutt serve [DIRECTORY]

Serve a plutt app.

  $ plutt serve [DIRECTORY]

  DIRECTORY  [default: .] Directory to serve plutt apps from

  -p, --port=port  [default: 5000] Port used to serve plutt app

???? Learn More

This project is developed together with a thesis, that will finish this summer. When the thesis is published a link to the thesis will be available here to learn more about Plutt.

Current Tags

  • 1.0.0-alpha.1                                ...           alpha (4 months ago)
  • 2.0.0-beta.13                                ...           beta (22 days ago)
  • 2.0.5                                ...           latest (11 days ago)

43 Versions

  • 2.0.5                                ...           11 days ago
  • 2.0.4                                ...           11 days ago
  • 2.0.3                                ...           11 days ago
  • 2.0.2                                ...           11 days ago
  • 2.0.1                                ...           12 days ago
  • 2.0.0                                ...           21 days ago
  • 2.0.0-beta.13                                ...           22 days ago
  • 2.0.0-beta.12                                ...           23 days ago
  • 2.0.0-beta.11                                ...           23 days ago
  • 2.0.0-beta.10                                ...           2 months ago
  • 2.0.0-beta.9                                ...           2 months ago
  • 2.0.0-beta.8                                ...           2 months ago
  • 2.0.0-beta.7                                ...           2 months ago
  • 2.0.0-beta.6                                ...           2 months ago
  • 2.0.0-beta.5                                ...           2 months ago
  • 1.2.0                                ...           2 months ago
  • 2.0.0-beta.4                                ...           2 months ago
  • 2.0.0-beta.3                                ...           2 months ago
  • 2.0.0-beta.2                                ...           2 months ago
  • 1.2.0-beta.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
  • 1.0.0-beta.17                                ...           2 months ago
  • 1.0.0-beta.16                                ...           2 months ago
  • 1.0.0-beta.15                                ...           3 months ago
  • 1.0.0-beta.14                                ...           4 months ago
  • 1.0.0-beta.13                                ...           4 months ago
  • 1.0.0-beta.12                                ...           4 months ago
  • 1.0.0-beta.11                                ...           4 months ago
  • 1.0.0-beta.10                                ...           4 months ago
  • 1.0.0-beta.9                                ...           4 months ago
  • 1.0.0-beta.8                                ...           4 months ago
  • 1.0.0-beta.7                                ...           4 months ago
  • 1.0.0-beta.3                                ...           4 months ago
  • 1.0.0-beta.2                                ...           4 months ago
  • 1.0.0-alpha.1                                ...           4 months ago
  • 1.0.0-beta.1                                ...           4 months ago
  • 0.0.5-semantically-released                                ...           4 months ago
  • 0.0.4-semantically-released                                ...           4 months ago
  • 0.0.3-semantically-released                                ...           4 months ago
  • 0.0.2-semantically-released                                ...           4 months ago
  • 0.0.1-semantically-released                                ...           4 months ago
  • 0.0.1                                ...           5 months ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 133
Dependents (0)

Copyright 2014 - 2016 © taobao.org |