Skip to content

πŸ“¦ πŸš€ Blazing fast, simple and completed solution for micro frontends.

License

Notifications You must be signed in to change notification settings

zczhangchao51/qiankun

This branch is 387 commits ahead of, 349 commits behind umijs/qiankun:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fe778a1 Β· Jun 16, 2020
Jun 10, 2020
May 22, 2020
Jun 1, 2020
Jun 16, 2020
Nov 5, 2019
May 15, 2019
Nov 22, 2019
Apr 26, 2020
Nov 5, 2019
Mar 2, 2020
Apr 7, 2020
Oct 9, 2019
May 22, 2020
Jun 12, 2020
May 15, 2019
Mar 17, 2020
Mar 2, 2020
Jun 16, 2020
May 22, 2020

Repository files navigation

qiankunοΌˆδΉΎε€οΌ‰

npm version coverage npm downloads Build Status

In Chinese traditional culture qian means heaven and kun stands for earth, so qiankun is the universe.

An implementation of Micro Frontends, based on single-spa, but made it production-ready.

πŸ€” Motivation

As we know what micro-frontends aims for:

Techniques, strategies and recipes for building a modern web app with multiple teams using different JavaScript frameworks. β€” Micro Frontends

Modularity is very important for large application. By breaking down a large system into individual sub-applications, we can achieve good divide-and-conquer between products and when necessary combination, especially for enterprise applications that usually involve multi-team collaboration. But if you're trying to implement such a micro frontends architecture system by yourself, you're likely to run into some tricky problems:

  • In what form do sub applications publish static resources?
  • How does the main application integrate individual sub-applications?
  • How do you ensure that sub-applications are independent of each other (development independent, deployment independent) and runtime isolated?
  • Performance issues? What about public dependencies?
  • And so on...

After solving these common problems of micro frontends, we extracted the kernel of our solution after a lot of internal online application testing and polishing, and then named it qiankun.

Probably the most complete micro-frontends solution you ever met🧐.

πŸ“¦ Installation

$ yarn add qiankun  # or npm i qiankun -S

πŸ“– Documentation

https://qiankun.umijs.org/

πŸ’Ώ Getting started

This repo contains an examples folder with a sample Shell app and multiple mounted Micro FE apps. To run this app, first clone qiankun:

$ git clone https://github.com/umijs/qiankun.git
$ cd qiankun

Now run the yarn scripts to install and run the examples project:

$ yarn install
$ yarn examples:install
$ yarn examples:start

Visit http://localhost:7099.

✨ Features

  • πŸ“¦ Based On single-spa
  • πŸ“± Technology Agnostic
  • πŸ’ͺ HTML Entry Access Mode
  • πŸ›‘ Style Isolation
  • 🧳 JS Sandbox
  • ⚑ Prefetch Assets
  • πŸ”Œ Umi Plugin Integration

🎯 Roadmap

  • Parcel apps integration (multiple sub apps displayed at the same time, but only one uses router at most)
  • Communication development kits between master and sub apps
  • Custom side effects hijacker
  • Nested Microfrontends

❓ FAQ

https://qiankun.umijs.org/faq/

πŸ‘¬ Community

https://qiankun.umijs.org/#community

🎁 Acknowledgements

About

πŸ“¦ πŸš€ Blazing fast, simple and completed solution for micro frontends.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%