• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Module federation for the backend. Aegis core lib. Regain control of your microservices by consolidating them into one or more shared processes without loosing deployment or language independence. Eliminate the need for deployment automation. Let services deploy themselves.

NPM version NPM Downloads Gitpod

ÆGIS

See the aegis-host repo for documentation and a working example of a federation server.

Consolidate your microservices

(by running them together in a single process)

  • for decreased footprint,
  • better performance and
  • simpler operations

without loosing

  • deployment independence,
  • language independence
  • or component independence (i.e. components remain decoupled)

Or distribute your components

(across a self-forming service mesh)

  • dynamically and adaptively
  • outside the datacenter and beyond the edge

with

  • non-functional, boilerplate code done for you
    • dynamically generated APIs and datasources
    • transparent integration and persistence
    • distributed worklow
    • distributed cache
    • multithreaded design to integrate I/O and CPU-bound workloads
    • shared memory for efficient processing across threads
    • fast streaming based on Async I/O supporting DDS and QUIC protocols
    • in-process, self-forming service mesh supporting data federation and other application services.
    • autonomous self-administration (e.g. CA certs provisioned/renewed programmatically)
    • exhaustive portability: Aegis can run as a server, cluster, or serverless function, in the datacenter, at the edge, and beyond (browser, phone, drone, pi, eventually arduino)
  • and capabilities that enhance the development experience
    • self-deployment (deploy in seconds to any compute primitive: serverless, container, IoT, etc)
    • runtime binding and hot reload (e.g. add new functionality on the fly, switch from on-prem to cloud live)
    • zero downtime, zero installation, independent deployment--even for components running in the same process
    • Polyglot, portable, containerless, sandboxed, AoT-compiled modules run safely anywhere, at native speeds
    • decentralized, scalable, "tessellated" hexagonal architecture

And do it all without deployment automation

You don't need that anymore.


Getting started

Install

Install just the core lib from NPM:

npm i @module-federation/aegis

Contribute

Open a Gitpod workspace using a local repo:

Open in Gitpod

or

Manually install using Github as a repo.

git clone https://github.com/module-federation/aegis
cd aegis
yarn
yarn build
yarn link

cd ..

git clone https://github.com/module-federation/aegis-host
cd aegis-host
yarn
yarn link "@module-federation/aegis"
cd webpack/remote-entries
cp index-github.js index.js
yarn build
yarn start
yarn demo

Learn

Aegis Overview

Roadmap

  • More WebAssembly features
  • Run on WasmEdge
  • Run in the browser
  • Run on Arduino
  • Addtional service mesh plugins.
  • Support ROS2/DDS for low-latency IoT networks
  • Web Bluetooth Low Energy adapter
  • Point cloud support for LiDAR integration
  • PyNode - Python on Node - interpreted, not transpiled
  • Support for QUIC, NDI, WebRTC protocols
  • Addt'l datasource adapters: Graph, Blockchain, Solid Pod, timeseries
  • Adaptive Deployment (AIOps based dynamic infra)
  • Data privacy based on Zero Knowledge Proofs
  • OCI wrapper for wasm-based runtime
  • Federated Module Attestation
  • Smart Scaffolding
  • Application-based Sharding
  • Passwordless authentication
  • Medusa integration

More Repositories

1

module-federation-examples

Implementation examples of module federation , by the creators of module federation
JavaScript
5,621
star
2

core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
TypeScript
1,497
star
3

vite

Vite Plugin for Module Federation
TypeScript
315
star
4

aegis-host

This is the ÆGIS federated application host. Federated components are independently deployable, written by multiple teams in multiple languages, and loaded from multiple repos and network locations at runtime, yet capable of running together in a single process or as distributed components in the ÆGIS application fabric.
JavaScript
237
star
5

medusa

A dashboard to tame and control federated apps
JavaScript
171
star
6

typescript

Typescript Types Support For Module Federation
JavaScript
104
star
7

rollup-federation

Module Federation within the rollup bundler
JavaScript
81
star
8

practical-module-federation

JavaScript
76
star
9

automatic-vendor-federation

Utility to enable automatic vendor sharing within bundles using Module Federation
JavaScript
74
star
10

external-remotes-plugin

Dynamically set remote origins at runtime within hosts
JavaScript
52
star
11

enhanced

Enhanced API for Module Federation
JavaScript
46
star
12

fmr

Federated Module Reloading for DEV mode
JavaScript
44
star
13

utilities

Various Utilities for Module Federation
TypeScript
37
star
14

webpack-4

Webpack 4 Plugin For Module Federation
JavaScript
36
star
15

reunited

Module federation and unit tests
JavaScript
34
star
16

module-federation.github.io

Website for Module Federation Org
JavaScript
34
star
17

nextjs-ssr

Next.js Federated SSR over Software Streaming
JavaScript
28
star
18

node

Software streaming to enable node.js support for browser-like chunk loading
27
star
19

aegis-app

This template project provides the scaffolding to build a federated application on ÆGIS. It also contains an example of an Order, Customer and Inventory service streaming to / running in the same ÆGIS host server process; and demonstrates integration with, and orchestration of, an Address, Payment, Inventory, Shipping, Event (Kafka, WebSockets), and Persistence service (MongoDB) via Aegis federated ports.
JavaScript
26
star
20

federation-dashboard

Dashboard service to command, control, and visualize module federation based systems
JavaScript
19
star
21

concat-runtime

Joins runtimeChunk: "single" back to a ModuleFederationPlugin remote containers for independent functionality
JavaScript
14
star
22

apollo-gateway

Webpack Module Federation Apollo based gateway
JavaScript
5
star
23

common-3rd-parties

Common Third party scripts provided as federated modules
JavaScript
3
star
24

next-catchall

Federated Catch All for removing page reloads between next zones
JavaScript
3
star
25

FMR-issues

a place to file issues related to FMR plugin
2
star
26

.github

1
star
27

aegis-scaffold

This template repo provides the scaffolding to develop an ÆGIS federated application.
JavaScript
1
star