{"id":23166577,"url":"https://github.com/jd-opensource/micro-app","last_synced_at":"2026-01-30T09:47:19.198Z","repository":{"id":36982161,"uuid":"379916997","full_name":"jd-opensource/micro-app","owner":"jd-opensource","description":"A simple, efficient and powerful micro front-end framework. 一款简约、高效、功能强大的微前端框架","archived":false,"fork":false,"pushed_at":"2025-05-12T08:02:37.000Z","size":9978,"stargazers_count":5921,"open_issues_count":258,"forks_count":595,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-05-14T09:02:35.942Z","etag":null,"topics":["javascript","micro-frontend","microapp","webcomponents"],"latest_commit_sha":null,"homepage":"https://jd-opensource.github.io/micro-app/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-24T12:26:23.000Z","updated_at":"2025-05-13T12:58:07.000Z","dependencies_parsed_at":"2023-09-23T16:53:55.723Z","dependency_job_id":"462172fd-2dcd-4bc2-9327-8dbd0a140f2f","html_url":"https://github.com/jd-opensource/micro-app","commit_stats":{"total_commits":1038,"total_committers":46,"mean_commits":"22.565217391304348","dds":"0.28227360308285165","last_synced_commit":"4dd831f5ca0e3d73fa22acddb2ec40e5d0e50a7a"},"previous_names":["jd-opensource/micro-app"],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fmicro-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fmicro-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fmicro-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2Fmicro-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-opensource","download_url":"https://codeload.github.com/jd-opensource/micro-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110373,"owners_count":22016391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","micro-frontend","microapp","webcomponents"],"created_at":"2024-12-18T02:01:17.295Z","updated_at":"2026-01-30T09:47:19.120Z","avatar_url":"https://github.com/jd-opensource.png","language":"CSS","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://jd-opensource.github.io/micro-app/\"\u003e\n    \u003cimg src=\"https://jd-opensource.github.io/micro-app/home/assets/logo.png\" alt=\"logo\" width=\"200\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@micro-zoe/micro-app\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@micro-zoe/micro-app.svg\" alt=\"version\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@micro-zoe/micro-app\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/@micro-zoe/micro-app.svg\" alt=\"downloads\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jd-opensource/micro-app/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/@micro-zoe/micro-app.svg\" alt=\"license\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jd-opensource/micro-app/blob/dev/Contact.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/chat-wechat-blue\" alt=\"WeChat\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.com/github/jd-opensource/micro-app\"\u003e\n    \u003cimg src=\"https://api.travis-ci.com/jd-opensource/micro-app.svg?branch=master\" alt=\"travis\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/jd-opensource/micro-app?branch=master\"\u003e\n    \u003cimg src=\"https://coveralls.io/repos/github/jd-opensource/micro-app/badge.svg?branch=master\" alt=\"coveralls\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nEnglish｜[简体中文](./README.zh-cn.md)｜[Documentation](https://jd-opensource.github.io/micro-app/)｜[Discussions](https://github.com/jd-opensource/micro-app/discussions)｜[WeChat](./Contact.md)\n\n# 📖Introduction\nmicro-app is a micro front-end framework launched by JD Retail. It renders based on webcomponent-like and realizes the micro front-end from component thinking, it aiming to reduce the difficulty of getting started and improve work efficiency. \n\nIt is the lowest cost framework for accessing micro front-end, and provides a series of perfect functions such as JS sandbox, style isolation, element isolation, preloading, resource address completion, plugin system, data communication and so on.\n\nmicro-app has no restrictions on the front-end framework, and any framework can be used as a base application to embed any type of micro application of the framework.\n\n# How to use\n## Base application\n**1、Install**\n```bash\nyarn add @micro-zoe/micro-app\n```\n\n**2、import at the entrance**\n```js\n// main.js\nimport microApp from '@micro-zoe/micro-app'\n\nmicroApp.start()\n```\n\n**3、Use components in page**\n```html\n\u003c!-- my-page.vue --\u003e\n\u003ctemplate\u003e\n  \u003c!-- 👇 name is the app name, url is the app address --\u003e\n  \u003cmicro-app name='my-app' url='http://localhost:3000/'\u003e\u003c/micro-app\u003e\n\u003c/template\u003e\n```\n\n## Sub application\n**Set cross-domain support in the headers of webpack-dev-server**\n```js\ndevServer: {\n  headers: {\n    'Access-Control-Allow-Origin': '*',\n  },\n},\n```\n\nThe above micro front-end rendering is completed, and the effect is as follows:\n\n![image](https://img10.360buyimg.com/imagetools/jfs/t1/188373/14/17696/41854/6111f4a0E532736ba/4b86f4f8e2044519.png)\n\nMore detailed configuration can be viewed [Documentation](https://jd-opensource.github.io/micro-app/docs.html#/zh-cn/start).\n\n# 🤝 Contribution\nIf you're interested in this project, you're welcome to mention pull request, and also welcome your \"Star\" ^_^\n\n### development\n1、Clone\n```\ngit clone https://github.com/jd-opensource/micro-app.git\n```\n\n2、Install dependencies\n```\nyarn bootstrap\n```\n\n3、Run project\n```\nyarn start\n```\n\nFor more commands, see [DEVELOP](https://github.com/jd-opensource/micro-app/blob/master/DEVELOP.md)\n\n# FAQ\n\u003cdetails\u003e\n\n  \u003csummary\u003eWhat are the advantages of micro-app?\u003c/summary\u003e\n  It is easy to use and low invasive. It only needs to change a small amount of code to access the micro front-end, and provides rich functions at the same time.\n\n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eHow compatible?\u003c/summary\u003e\n  The micro-app relies on two newer APIs, CustomElements and Proxy.\n\n  For browsers that do not support CustomElements, they can be compatible by introducing polyfills. For details, please refer to: [webcomponents/polyfills](https://github.com/webcomponents/polyfills/tree/master/packages/custom-elements)。\n\n  However, Proxy is not compatible for the time being, so the micro-app cannot be run on browsers that do not support Proxy.\n\n  Browser compatibility can be viewed: [Can I Use](https://caniuse.com/?search=Proxy)\n\n  The general is as follows:\n  - desktop: Except IE browser, other browsers are basically compatible.\n  - mobile: ios10+、android5+\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eMust micro applications support cross-domain?\u003c/summary\u003e\n  yes!\n\n  If it is a development environment, you can set headers in webpack-dev-server to support cross-domain.\n\n  ```js\n  devServer: {\n    headers: {\n      'Access-Control-Allow-Origin': '*',\n    },\n  }\n  ```\n\n  If it is a production environment, you can support cross-domain through [Configuration nginx](https://segmentfault.com/a/1190000012550346).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eDoes it support vite?\u003c/summary\u003e\n  \n  Yes, please see [adapt vite](https://jd-opensource.github.io/micro-app/docs.html#/zh-cn/framework/vite) for details.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eDoes it support ssr?\u003c/summary\u003e\n  \n  Yes, please see [nextjs](https://jd-opensource.github.io/micro-app/docs.html#/zh-cn/framework/nextjs), [nuxtjs](https://jd-opensource.github.io/micro-app/docs.html#/zh-cn/framework/nuxtjs) for details.\n\u003c/details\u003e\n\n# Contributors\n\u003ca href=\"https://github.com/jd-opensource/micro-app/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=jd-opensource/micro-app\" /\u003e\n\u003c/a\u003e\n\n# License\n[MIT License](https://github.com/jd-opensource/micro-app/blob/master/LICENSE)\n","funding_links":[],"categories":["CSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Fmicro-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-opensource%2Fmicro-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Fmicro-app/lists"}