-
-
Notifications
You must be signed in to change notification settings - Fork 234
/
index.html
70 lines (67 loc) · 30.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-6.x docs-doc-page docs-doc-id-examples" data-has-hydrated="false">
<head>
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.1.1">
<title data-rh="true">Single-spa Examples | single-spa</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://single-spa.js.org/img/docusaurus.png"><meta data-rh="true" name="twitter:image" content="https://single-spa.js.org/img/docusaurus.png"><meta data-rh="true" property="og:url" content="https://single-spa.js.org/docs/examples"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="6.x"><meta data-rh="true" name="docusaurus_tag" content="docs-default-6.x"><meta data-rh="true" name="docsearch:version" content="6.x"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-6.x"><meta data-rh="true" property="og:title" content="Single-spa Examples | single-spa"><meta data-rh="true" name="description" content="Core team examples"><meta data-rh="true" property="og:description" content="Core team examples"><link data-rh="true" rel="icon" href="/img/single-spa-mark-magenta.svg"><link data-rh="true" rel="canonical" href="https://single-spa.js.org/docs/examples"><link data-rh="true" rel="alternate" href="https://single-spa.js.org/docs/examples" hreflang="en"><link data-rh="true" rel="alternate" href="https://single-spa.js.org/docs/examples" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://FWAC4N89WA-dsn.algolia.net" crossorigin="anonymous"><link rel="alternate" type="application/rss+xml" href="/blog/rss.xml" title="single-spa RSS Feed">
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="single-spa Atom Feed">
<link rel="preconnect" href="https://www.google-analytics.com">
<script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create","UA-138683004-1","auto"),ga("send","pageview")</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
<link rel="search" type="application/opensearchdescription+xml" title="single-spa" href="/opensearch.xml">
<script src="https://unpkg.com/[email protected]/dist/vanilla-back-to-top.min.js"></script>
<script src="/js/index.js"></script><link rel="stylesheet" href="/assets/css/styles.9068c4e9.css">
<script src="/assets/js/runtime~main.ae8fbb4d.js" defer="defer"></script>
<script src="/assets/js/main.17c74e03.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/single-spa-mark-magenta.svg" alt="single-spa Logo" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/img/single-spa-mark-magenta.svg" alt="single-spa Logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><b class="navbar__title text--truncate">single-spa</b></a><a class="navbar__item navbar__link" style="white-space:nowrap;padding:0.25rem 0.5rem 0.2rem 0.25rem;font-size:calc(0.9 * var(--ifm-font-size-base));text-decoration:underline" href="/versions">6.x</a><a class="navbar__item navbar__link" href="/docs/faq/">FAQ</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/docs/">Docs</a><a href="https://single-spa-workshop.com" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Courses</a><a class="navbar__item navbar__link" href="/help/">Help</a><a class="navbar__item navbar__link" href="/blog/">Blog</a><a href="https://opencollective.com/single-spa" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Donate<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><a href="https://github.com/single-spa/single-spa" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><a class="navbar__item navbar__link" href="/languages">简Жहि Languages</a></div><div class="navbar__items navbar__items--right"><a href="https://baseplate.cloud" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Deploy</a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="Switch between dark and light mode (currently light mode)" aria-label="Switch between dark and light mode (currently light mode)" aria-live="polite"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div><div class="navbarSearchContainer_Bca1"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><svg width="20" height="20" class="DocSearch-Search-Icon" viewBox="0 0 20 20"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"></span></button></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_z2l0"><div class="docsWrapper_hBAB"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docRoot_UBD9"><aside class="theme-doc-sidebar-container docSidebarContainer_YfHR"><div class="sidebarViewport_aRkj"><div class="sidebar_njMd"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/getting-started-overview">Overview</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" aria-expanded="true" href="/docs/examples">Examples</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/examples">Resources</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a href="https://single-spa-workshop.com" target="_blank" rel="noopener noreferrer" class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false">Tutorials</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a href="https://baseplate.cloud" target="_blank" rel="noopener noreferrer" class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false">Hosting</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/create-single-spa">CLI</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/microfrontends-concept">Concept: Microfrontend</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/configuration">Concept: Root Config</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/building-applications">Concept: Application</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/parcels-overview">Concept: Parcel</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/testing/units">Testing</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/layout-overview">Layout Engine</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/recommended-setup">The Recommended Setup</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/api">API</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/ecosystem">Ecosystem</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/ssr-overview">Server Side Rendering (New)</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/devtools">Dev Tools</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/contributing-overview">Contributing</a></div></li></ul></nav></div></div></aside><main class="docMainContainer_TBSr"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_VOVn"><div class="docItemContainer_Djhp"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_YNFT"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li class="breadcrumbs__item"><span class="breadcrumbs__link">Examples</span><meta itemprop="position" content="1"></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">Resources</span><meta itemprop="position" content="2"></li></ul></nav><span class="theme-doc-version-badge badge badge--secondary">Version: 6.x</span><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type="button" class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>Single-spa Examples</h1></header><h2 class="anchor anchorWithStickyNavbar_LWe7" id="core-team-examples">Core team examples<a href="#core-team-examples" class="hash-link" aria-label="Direct link to Core team examples" title="Direct link to Core team examples"></a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="actively-maintained">Actively maintained<a href="#actively-maintained" class="hash-link" aria-label="Direct link to Actively maintained" title="Direct link to Actively maintained"></a></h3>
<ul>
<li><a href="https://github.com/react-microfrontends" target="_blank" rel="noopener noreferrer">React Microfrontends</a> (check out root-config repo first)</li>
<li><a href="https://github.com/vue-microfrontends" target="_blank" rel="noopener noreferrer">Vue Microfrontends</a> (check out root-config repo first)</li>
<li><a href="https://github.com/angular-microfrontends" target="_blank" rel="noopener noreferrer">Angular Microfrontends</a> (check out root-config repo first)</li>
<li><a href="https://github.com/polyglot-microfrontends" target="_blank" rel="noopener noreferrer">Polyglot Microfrontends</a> (check out root-config repo first)</li>
<li><a href="https://github.com/joeldenning/single-spa-es5-angularjs" target="_blank" rel="noopener noreferrer">single-spa-es5-angularjs</a> is a very tiny es5 example with angularjs.</li>
<li><a href="https://github.com/isomorphic-microfrontends" target="_blank" rel="noopener noreferrer">Isomorphic Microfrontends</a> shows server-side rendering (SSR) with single-spa and single-spa-layout.</li>
<li><a href="https://github.com/joeldenning/vite-single-spa-example" target="_blank" rel="noopener noreferrer">Vite single-spa application</a> shows a single-spa application that uses Vite.</li>
<li><a href="https://github.com/joeldenning/snowpack-single-spa-example" target="_blank" rel="noopener noreferrer">Snowpack single-spa application</a> shows a single-spa application that uses Snowpack.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="older-examples">Older examples<a href="#older-examples" class="hash-link" aria-label="Direct link to Older examples" title="Direct link to Older examples"></a></h3>
<ul>
<li><a href="https://github.com/joeldenning/coexisting-angular-microfrontends" target="_blank" rel="noopener noreferrer">coexisting-angular-microfrontends</a> is a full blown Angular 9 microfrontends repo that combines three separate Angular CLI projects into one page.</li>
<li><a href="https://github.com/joeldenning/coexisting-vue-microfrontends" target="_blank" rel="noopener noreferrer">coexisting-vue-microfrontends</a> shows three separate Vue CLI projects existing within one page.</li>
<li><a href="https://gitlab.com/TheMcMurder/single-spa-portal-example" target="_blank" rel="noopener noreferrer">single-spa-portal-example</a> is a great example of coexisting React microfrontends.</li>
<li><a href="https://github.com/joeldenning/simple-single-spa-webpack-example" target="_blank" rel="noopener noreferrer">simple-single-spa-webpack-example</a> is a small, simple example that can be used as a webpack starter.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="community-examples">Community examples<a href="#community-examples" class="hash-link" aria-label="Direct link to Community examples" title="Direct link to Community examples"></a></h2>
<ul>
<li><a href="https://github.com/kfrederix/single-spa-angular-esm" target="_blank" rel="noopener noreferrer">single-spa-angular-esm</a> is an example Nx monorepo, demonstrating how single-spa can be used for microfrontends with the new Angular builder based on Vite/esbuild.</li>
<li><a href="https://github.com/Guillembonet/single-spa-parcel-example" target="_blank" rel="noopener noreferrer">single-spa-parcel-example</a> is an example of one Vue and one React microfrontend, containing a React and a Vue parcel respectively and two Node.js microservices running in 6 different Docker VMs seamlessly working together in a single web app located in a 7th VM.</li>
<li><a href="https://github.com/jualoppaz/single-spa-login-example-with-npm-packages" target="_blank" rel="noopener noreferrer">single-spa-login-example-with-npm-packages</a> is a single-spa application example which imports registered applications from NPM packages and manages authentication features as login.</li>
<li><a href="https://github.com/crossjs/spax/tree/master/packages/demo-single-spa" target="_blank" rel="noopener noreferrer">demo-single-spa-with-spax</a> is a tiny <a href="https://spax.js.org" target="_blank" rel="noopener noreferrer">spax</a> example with react-scripts and craco.</li>
<li><a href="https://github.com/filoxo/single-spa-html-with-js-example" target="_blank" rel="noopener noreferrer">single-spa-html with js example</a> is an example repo of using single-spa-html that is enhanced with plain JavaScript.</li>
<li><a href="https://github.com/Vallerious/coexisting-angular-microfrontends/tree/feature/login" target="_blank" rel="noopener noreferrer">coexisting-angular-microfrontends/login</a> is a branch that implements a login functionality between Angular apps. It uses localStorage as shared memory space to store and retrieve a token.</li>
<li><a href="https://github.com/matt-gold/single-spa-angular-cli" target="_blank" rel="noopener noreferrer">single-spa-angular-cli</a> is an all-Angular example repo that uses SystemJS to load single-spa-angular applications into a containing Angular CLI application at different routes.</li>
<li><a href="https://github.com/ember-micro-frontends" target="_blank" rel="noopener noreferrer">ember-micro-frontends</a> is an all-Ember example repo that uses single-spa-ember applications into a containing Ember.js application at different routes.</li>
<li><a href="https://github.com/filoxo/single-spa-example-shared-styled-components" target="_blank" rel="noopener noreferrer">single-spa application with shared styled-components</a> shows how to share styled-components, a library that is required to be a singleton instance.</li>
<li><a href="https://github.com/filoxo/single-spa-example-webpack-lazystyletag" target="_blank" rel="noopener noreferrer">single-spa application with Webpack lazyStyleTag</a> is a simple example that leverages Webpack style-loader's lazyStyleTag functionality to dynamically add and remove the CSS associated with a single-spa application.</li>
<li><a href="https://github.com/filoxo/single-spa-example-rxjs-shared-state" target="_blank" rel="noopener noreferrer">single-spa shared state utility using Rxjs</a> shows how to use a utility module that shares application state across multiple single-spa applications and frameworks.</li>
<li><a href="https://github.com/svelte-micro-frontends" target="_blank" rel="noopener noreferrer">svelte-micro-frontends</a> is an all-Svelte example of a Restaurant booking app based on the popular <a href="https://martinfowler.com/articles/micro-frontends.html" target="_blank" rel="noopener noreferrer">Micro frontends article</a> by <a href="https://twitter.com/thecamjackson" target="_blank" rel="noopener noreferrer">Cam Jackson</a>.</li>
<li><a href="https://github.com/daniloesk/single-spa-examples/" target="_blank" rel="noopener noreferrer">single-spa-examples</a> contains Angular examples with step-by-step commits on how they were built. Some of the examples are:<!-- -->
<ul>
<li><a href="https://github.com/daniloesk/single-spa-examples/tree/v20201211-registration" target="_blank" rel="noopener noreferrer">root and basic</a>: root-config with Angular's Zone.js and prepared for reflect-metadata and Angular 11 application with lazy loaded routing and assets examples.</li>
<li><a href="https://github.com/daniloesk/single-spa-examples/tree/v20201215-scoped-importmap" target="_blank" rel="noopener noreferrer">scoped sharing</a>: Import map sharing of coexisting Angular 10 and 11 using scopes. This uses View Engine.</li>
<li><a href="https://github.com/daniloesk/single-spa-examples/tree/v20201217-importmap-ivy" target="_blank" rel="noopener noreferrer">Ivy sharing</a>: Dependency sharing using Ivy.</li>
<li><a href="https://github.com/ember-react-microfrontend" target="_blank" rel="noopener noreferrer">ember and react</a>: a multi-framework example where we combine Ember with React</li>
<li><a href="https://github.com/Svelte-React-Vue-Angular-SPA" target="_blank" rel="noopener noreferrer">Svelte-React-Vue-Angular-single-spa</a> a multi-framework example with Svelte, React, Angular and Vue. This single spa uses single-spa-router.</li>
<li><a href="https://github.com/hashaneranda/hotel-app" target="_blank" rel="noopener noreferrer">single-spa-apollo-cleint-auth-with-apollo-federation-backend</a> is a single spa frontend example for hotel app with authentication, styled-components, apollo-client for graphql along with apollo federation microservice backend</li>
</ul>
</li>
<li><a href="https://github.com/nitinreddy3/react-ng-spa-app" target="_blank" rel="noopener noreferrer">single-spa-react-angular</a> a multi-framework example with React and Angular. This app uses routes to render the React and Angular apps.</li>
<li><a href="https://github.com/long-woo/vite-ts-single-spa-root-config" target="_blank" rel="noopener noreferrer">vite-ts-single-spa-root-config</a>: Create a root config example of single-spa using vite and typescript.</li>
<li><a href="https://github.com/mbarbosasan/single-spa-angularjs-starter" target="_blank" rel="noopener noreferrer">single-spa-angularjs-starter</a>: A simple starter for AngularJS with Webpack, rendering a parcel of Angular 15 with standalone components.</li>
</ul>
<p>Have your own example or starter repo? <a href="https://github.com/single-spa/single-spa.js.org/edit/master/website/versioned_docs/version-5.x/examples.md" target="_blank" rel="noopener noreferrer">Submit a PR</a> to add yours to this list.</p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/single-spa/single-spa.js.org/blob/master/website/versioned_docs/version-6.x/examples.md" target="_blank" rel="noopener noreferrer" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_vwxv"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/docs/getting-started-overview"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Overview of single-spa</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/docs/single-spa-playground"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Playground</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#core-team-examples" class="table-of-contents__link toc-highlight">Core team examples</a><ul><li><a href="#actively-maintained" class="table-of-contents__link toc-highlight">Actively maintained</a></li><li><a href="#older-examples" class="table-of-contents__link toc-highlight">Older examples</a></li></ul></li><li><a href="#community-examples" class="table-of-contents__link toc-highlight">Community examples</a></li></ul></div></div></div></div></main></div></div></div><footer class="footer footer--dark"><div class="container"><div class="row footer__links"><div class="col footer__col"><h4 class="footer__title">Courses</h4><ul class="footer__items"><li class="footer__item"><a href="https://single-spa-workshop.com" target="_blank" rel="noopener noreferrer" class="footer__link-item" label="Single-Spa Workshop">Single-Spa Workshop</a></li><li class="footer__item"><a href="https://single-spa-workshop.com" target="_blank" rel="noopener noreferrer" class="footer__link-item" label="Microfrontend Fundamentals">Microfrontend Fundamentals</a></li></ul></div><div class="col footer__col"><h4 class="footer__title">Docs</h4><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" label="FAQ" href="/docs/faq/">FAQ</a></li><li class="footer__item"><a class="footer__link-item" label="Getting Started" href="/docs/getting-started-overview/">Getting Started</a></li><li class="footer__item"><a class="footer__link-item" label="API Reference" href="/docs/api/">API Reference</a></li></ul></div><div class="col footer__col"><h4 class="footer__title">Community</h4><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" label="Governance" href="/governance/">Governance</a></li><li class="footer__item"><a class="footer__link-item" label="Code of Conduct" href="/code-of-conduct/">Code of Conduct</a></li><li class="footer__item"><a class="footer__link-item" label="Sponsors" href="/sponsors/">Sponsors</a></li><li class="footer__item"><a class="footer__link-item" label="User Showcase" href="/users/">User Showcase</a></li><li class="footer__item"><a class="footer__link-item" label="Contributors" href="/contributors/">Contributors</a></li><li class="footer__item"><a href="https://join.slack.com/t/single-spa/shared_invite/zt-2uvhef42o-g4H3mvKDaenE9xVAewBKww" target="_blank" rel="noopener noreferrer" class="footer__link-item" label="Chat in Slack">Chat in Slack</a></li><li class="footer__item"><a href="https://twitter.com/Single_spa/" target="_blank" rel="noopener noreferrer" class="footer__link-item" label="Twitter">Twitter</a></li><li class="footer__item footer__item--gh"><iframe title="github" src="https://ghbtns.com/github-btn.html?user=single-spa&repo=single-spa&type=star&count=true&size=small"></iframe></li><li class="footer__item"><a href="/img/icons/148705-essential-collection/license/license.html">License for icons</a></li></ul></div><div class="col footer__col"><h4 class="footer__title">More</h4><ul class="footer__items"><li class="footer__item"><a href="https://github.com/single-spa/single-spa" target="_blank" rel="noopener noreferrer" class="footer__link-item" label="GitHub">GitHub</a></li><li class="footer__item"><a href="https://opencollective.com/single-spa" target="_blank" rel="noopener noreferrer" class="footer__link-item" label="Donate">Donate</a></li><li class="footer__item"><a class="footer__link-item" label="Blog" href="/blog/">Blog</a></li></ul></div></div><div class="text--center"><img class="footer__logo margin-bottom--sm" alt="single-spa" src="/img/single-spa-logo-magenta.svg"><div>Originally developed at <a href="https://getcanopy.com">Canopy</a></div>Copyright © 2024 single-spa.</div></div></footer></div>
</body>
</html>