Prometheus is a cutting-edge micro-frontend framework designed to simplify the development and deployment of web applications. By breaking down complex applications into manageable nanoapps, Prometheus fosters flexibility, security, and performance optimization across the development lifecycle.
- Framework Agnosticism: Works seamlessly with any front-end technology (React, Vue, Svelte, etc.).
- Enhanced Security: Utilizes JavaScript
Function
for dynamic code execution, avoiding the security risks associated witheval
. - User Experience Optimization: Leverages Shadow DOM for style encapsulation, ensuring consistent and isolated styling across nanoapps.
- Simplified Integration: Streamlines the integration of micro-frontends, reducing the overhead of module management and dependency injection.
- Node.js (version X or above)
- npm or Yarn
To get started with Prometheus, install the CLI globally:
npm install -g @prometheus/cli
Create a new nanoapp by running:
prometheus create --name <name> --library <react|vue|svelte>
Convert an existing application into a Prometheus nanoapp:
Note: The
--external
flag allows you to externalize core dependencies.
Note: We only support
react
,vue
, andsvelte
for now.
prometheus build -n yourAppBundleName --external