Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umijs/qiankun
π¦ π Blazing fast, simple and complete solution for micro frontends.
https://github.com/umijs/qiankun
framework javascript micro-frontend micro-frontends microfrontend microfrontends microservices
Last synced: 7 days ago
JSON representation
π¦ π Blazing fast, simple and complete solution for micro frontends.
- Host: GitHub
- URL: https://github.com/umijs/qiankun
- Owner: umijs
- License: mit
- Created: 2019-05-15T05:27:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T13:28:02.000Z (8 months ago)
- Last Synced: 2024-04-14T14:16:30.791Z (7 months ago)
- Topics: framework, javascript, micro-frontend, micro-frontends, microfrontend, microfrontends, microservices
- Language: TypeScript
- Homepage: https://qiankun.umijs.org
- Size: 32 MB
- Stars: 15,384
- Watchers: 231
- Forks: 1,980
- Open Issues: 374
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micro-frontends - qiankun
- awesome-frontend - qiankun - Blazing fast, simple and completed solution for micro frontends. ![](https://img.shields.io/github/stars/umijs/qiankun.svg?style=social&label=Star) (Repository / Micro Frontend)
- stars - umijs/qiankun
- awesome - umijs/qiankun - π¦ π Blazing fast, simple and complete solution for micro frontends. (TypeScript)
- awesome-blazingly-fast - qiankun - π¦ π Blazing fast, simple and complete solution for micro frontends. (TypeScript)
- awesome-micro-frontends - Qiankun
- awesome-github-star - qiankun
- awesome - umijs/qiankun
- awesome-list - qiankun
- StarryDivineSky - umijs/qiankun
- awesome-made-by-chinese - qiankun
- awesome - qiankun
- awesome - umijs/qiankun - π¦ π Blazing fast, simple and complete solution for micro frontends. (TypeScript)
- awesome-coding-startup - δΉΎε€
README
# qiankunοΌδΉΎε€οΌ
> In Chinese, `qian(δΉΎ)` means heaven and `kun(ε€)` earth. `qiankun` is the universe.
Qiankun enables you and your teams to build next-generation and enterprise-ready web applications leveraging [Micro Frontends](https://micro-frontends.org/). It is inspired by and based on [single-spa](https://github.com/CanopyTax/single-spa).
## π€ Motivation
A quick recap about the concept of `Micro Frontends`:
> Techniques, strategies and recipes for building a **modern web app** with **multiple teams** using **different JavaScript frameworks**. β [Micro Frontends](https://micro-frontends.org/)
Qiankun was birthed internally in our group during the time web app development by distributed teams had turned to complete chaos. We faced every problem micro frontend was conceived to solve, so naturally, it became part of our solution.
The path was never easy, we stepped on every challenge there could possibly be. Just to name a few:
- In what form do micro-apps publish static resources?
- How does the framework integrate individual micro-apps?
- How to ensure that sub-applications are isolated from one another (development independence and deployment independence) and runtime sandboxed?
- Performance issues? What about public dependencies?
- The list goes on long ...After solving these common problems of micro frontends and lots of polishing and testing, we extracted the minimal viable framework of our solution, and named it `qiankun`, as it can contain and serve anything. Not long after, it became the cornerstone of hundreds of our web applications in production, and we decided to open-source it to save you the suffering.
**TLDR: Qiankun is probably the most complete micro-frontend solution you ever metπ§.**
## :sparkles: Features
Qiankun inherits many benefits from [single-spa](https://github.com/CanopyTax/single-spa):
- π¦ **Micro-apps Independent Deployment**
- π΄ **Lazy Load**
- π± **Technology Agnostic**And on top of these, it offers:
- π **Elegant API**
- πͺ **HTML Entry Access Mode**
- π‘ **Style Isolation**
- 𧳠**JS Sandbox**
- β‘ **Prefetch Assets**
- π **[Umi Plugin](https://github.com/umijs/plugins/tree/master/packages/plugin-qiankun) Integration**## π¦ Installation
```shell
$ yarn add qiankun # or npm i qiankun
```## π Documentation
You can find the Qiankun documentation [on the website](https://qiankun.umijs.org/)
Check out the [Getting Started](https://qiankun.umijs.org/guide/getting-started) page for a quick overview.
The documentation is divided into several sections:
- [Tutorial](https://qiankun.umijs.org/cookbook)
- [API Reference](https://qiankun.umijs.org/api)
- [FAQ](https://qiankun.umijs.org/faq)
- [Community](https://qiankun.umijs.org/#-community)## πΏ Examples
Inside the `examples` folder, there is a sample Shell app and multiple mounted Micro FE apps. To get it running, first clone `qiankun`:
```shell
$ git clone https://github.com/umijs/qiankun.git
$ cd qiankun
```Now install and run the example:
```shell
$ yarn install
$ yarn examples:install
$ yarn examples:start
```Visit `http://localhost:7099`.
![](./examples/example.gif)
## π― Roadmap
See [Qiankun 3.0 Roadmap](https://github.com/umijs/qiankun/discussions/1378)
## π₯ Contributors
Thanks to all the contributors!
## π Acknowledgements
- [single-spa](https://github.com/CanopyTax/single-spa) What an awesome meta-framework for micro-frontends!
- [import-html-entry](https://github.com/kuitos/import-html-entry/) An assets loader that supports html entry.## π License
Qiankun is [MIT licensed](./LICENSE).