{"id":17801503,"url":"https://github.com/yiminghe/single-spa-mf","last_synced_at":"2025-03-17T11:30:44.268Z","repository":{"id":57361737,"uuid":"440488584","full_name":"yiminghe/single-spa-mf","owner":"yiminghe","description":"A micro frontend solution based on single-spa and module federation","archived":false,"fork":false,"pushed_at":"2023-08-30T09:23:03.000Z","size":888,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-07T20:02:01.607Z","etag":null,"topics":["microfrontend","module-federation","single-spa"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yiminghe.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}},"created_at":"2021-12-21T11:10:05.000Z","updated_at":"2025-01-23T06:24:29.000Z","dependencies_parsed_at":"2024-10-06T16:56:13.010Z","dependency_job_id":"319d7921-54f1-422f-82a9-238f9a6a707c","html_url":"https://github.com/yiminghe/single-spa-mf","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"4fac00cfa333718f297f1b1202d45615144b4061"},"previous_names":["yiminghe/micro-frontend-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiminghe%2Fsingle-spa-mf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiminghe%2Fsingle-spa-mf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiminghe%2Fsingle-spa-mf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiminghe%2Fsingle-spa-mf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiminghe","download_url":"https://codeload.github.com/yiminghe/single-spa-mf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243152868,"owners_count":20244657,"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":["microfrontend","module-federation","single-spa"],"created_at":"2024-10-27T12:38:36.734Z","updated_at":"2025-03-17T11:30:43.589Z","avatar_url":"https://github.com/yiminghe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# single-spa-mf\n\nA micro frontend solution based on single-spa and module federation\n\n[![NPM version](https://badge.fury.io/js/single-spa-mf.png)](http://badge.fury.io/js/single-spa-mf)\n[![NPM downloads](http://img.shields.io/npm/dm/single-spa-mf.svg)](https://npmjs.org/package/single-spa-mf)\n![Build Status](https://github.com/yiminghe/single-spa-mf/actions/workflows/ci.yaml/badge.svg)\n[![single-spa-mf](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/simple/neygmi/main\u0026style=flat\u0026logo=cypress)](https://cloud.cypress.io/projects/neygmi/runs)\n\n```\nnpm install single-spa-mf\n```\n\n\n## API Report File for \"single-spa-mf\"\r\n\r\n\u003e Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).\r\n\r\n```ts\r\n\r\nimport { LifeCycles } from 'single-spa';\r\nimport { registerApplication } from 'single-spa';\r\n\r\n// @public (undocumented)\r\nexport type AsyncFunction = (app: MFApp) =\u003e Promise\u003cvoid\u003e | void;\r\n\r\n// @public (undocumented)\r\nconst getMFAppConfig: ({ app }: {\r\n    app: string;\r\n}) =\u003e {\r\n    name: string;\r\n    filename: string;\r\n};\r\n\r\n// @public (undocumented)\r\nconst getMFExposes: (mod: string) =\u003e {\r\n    Single_SPA_MF_main: string;\r\n};\r\n\r\n// @public (undocumented)\r\nexport interface MFApp {\r\n    // (undocumented)\r\n    activeWhen: SingleSpaConfig['activeWhen'];\r\n    // (undocumented)\r\n    afterLoad?: AsyncFunction;\r\n    app?: (e: {\r\n        name: string;\r\n    }) =\u003e Promise\u003cLifeCycles\u003cany\u003e\u003e;\r\n    // (undocumented)\r\n    beforeLoad?: AsyncFunction;\r\n    // (undocumented)\r\n    customProps?: SingleSpaConfig['customProps'];\r\n    entry?: (e: {\r\n        name: string;\r\n        entryName: string;\r\n    }) =\u003e string | Promise\u003cstring\u003e;\r\n    // (undocumented)\r\n    error?: MFAppHandle;\r\n    // (undocumented)\r\n    loader?: MFAppHandle;\r\n    // (undocumented)\r\n    name: string;\r\n}\r\n\r\n// @public (undocumented)\r\nexport interface MFAppHandle {\r\n    // (undocumented)\r\n    mount: (el: HTMLElement) =\u003e Promise\u003cvoid\u003e | void;\r\n    // (undocumented)\r\n    unmount: (el: HTMLElement) =\u003e Promise\u003cvoid\u003e | void;\r\n}\r\n\r\n// @public (undocumented)\r\nexport function registerMFApplications(appArray: MFApp[]): void;\r\n\r\n// @public (undocumented)\r\nexport type SingleSpaConfig = Parameters\u003ctypeof registerApplication\u003e[0];\r\n\r\ndeclare namespace webpack {\r\n    export {\r\n        getMFAppConfig,\r\n        getMFExposes\r\n    }\r\n}\r\nexport { webpack }\r\n\r\n\r\nexport * from \"single-spa\";\r\n\r\n// (No @packageDocumentation comment for this package)\r\n\r\n```\r\n## demo\n\nreact + react-router + tailwindcss + single-spa + module federation + pnpm8\n\n```\nnvm install 18.17.0\ncorepack enable\npnpm i\npnpm start\n```\n\nmain app: http://localhost:3001/\n\napp1: http://localhost:3002/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiminghe%2Fsingle-spa-mf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiminghe%2Fsingle-spa-mf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiminghe%2Fsingle-spa-mf/lists"}