Ecosystem Modules & App Store
Relevant source files
The following files were used as context for generating this wiki page:
The Ecosystem Modules and App Store (Infinity Market) represent the application layer of Infinity OS. This system follows a micro-frontend architecture where individual applications, termed "Modules," are distributed, installed, and executed within a sandboxed environment. The platform adheres to the "2060 Modular Standard," ensuring that every component is zero-cost, fully compliant, and future-proof.
The App Store serves as the distribution platform, managing the developer submission pipeline, module signing, and one-click installations. Modules interact with core system services such as the File System, Identity Service, and AI Orchestration through standardized APIs provided by the Infinity Kernel.
Sources: infinity-os/architecture.html, README.md
Module Architecture & Lifecycle
Infinity OS modules are micro-frontends built using React 18, Vite, and Tailwind CSS. They are integrated into the shell using Module Federation and ES Modules. Each module is defined by a ModuleManifest which declares its capabilities, required bindings (such as D1, KV, or R2), and minimum plan tier requirements.
Lifecycle Hooks
The SDK manages the lifecycle of a module through seven distinct hooks:
- Install: Initial registration and resource allocation.
- Enable: Activation of the module within the user session.
- HandleRequest: Processing incoming UI or API requests.
- HandleEvent: Responding to asynchronous platform events.
- Disable: Temporary suspension of module activity.
- Upgrade: Migrating data and configuration to newer versions.
- Uninstall: Full removal of module data and registrations.
Additionally, a healthCheck hook is utilized for continuous monitoring of module status.
Sources: dashboard/index.html, infinity-os/architecture.html
Technical Stack
The following table summarizes the technology used within the module ecosystem:
| Component | Technology | Description |
|---|---|---|
| Framework | React 18 | UI component framework |
| Build Tool | Vite 5.x | Fast build and HMR |
| Styling | Tailwind CSS | Utility-first CSS |
| State | Zustand | Lightweight state management |
| Connectivity | Module Federation | Micro-frontend integration |
| Runtime | Hono.js | Edge-optimized framework for backend components |
Sources: infinity-os/architecture.html, dashboard/index.html
Infinity Market (App Store)
The App Store (Infinity Market) is the L5 layer of the architecture. It facilitates the discovery and management of both built-in and third-party modules.
The diagram shows the flow from module discovery to installation within the Registry Worker and App Store UI.
Sources: infinity-os/architecture.html, dashboard/index.html
Core App Store Features
- Developer Submission Pipeline: Standardized path for third-party developers to submit modules.
- Module Signing & Verification: Ensures code integrity and authenticity before execution.
- Security Scanning: Automated checks for vulnerabilities and compliance violations.
- Dependency Resolution: The Registry Worker resolves module dependencies recursively using a Directed Acyclic Graph (DAG) with cycle detection.
Sources: infinity-os/architecture.html, dashboard/index.html
Governance and Compliance Modules
A specialized subset of modules exists for platform governance, primarily centralized in the TownHall Dashboard. This module acts as the "Governance Hub" (Platform 21) and manages policies, procedures, and legal registries.
Governance Components
The TownHall module integrates 11 core governance components:
- Policy Hub: Machine-readable policies using OPA/Rego.
- Procedures Library: Operational step-by-step guides.
- The Foundation: Magna Carta and Service Charter templates.
- Trancendos Framework: Core operating framework for all 21 platforms.
- ITSM & ITIL: Incident and change management.
- PRINCE2 Management: Project governance and stage gates.
- Governance Boardroom: Meeting management and on-chain resolutions.
- Gate Review System: Quality gates across platforms.
- IP Analysis & Review: Intellectual property management.
- Legal & Paralegal: Contract management.
- Compliance Engine: Automated compliance checking.
Sources: apps/shell/src/modules/TownHallDashboard.tsx:1-25, apps/shell/src/modules/TownHallDashboard.tsx:210-230
Security and Data Classification
Modules interact with data based on a strict 5-level classification hierarchy managed by the HIVE (Swarm Data Router):
| Level | Description | Encryption | Access |
|---|---|---|---|
| PUBLIC | Unrestricted | AES-256-GCM | All Users |
| INTERNAL | Authenticated | AES-256-GCM | Standard User+ |
| CONFIDENTIAL | Authorized Roles | ChaCha20-Poly1305 | Power User+ |
| CLASSIFIED | Admin Only | ML-KEM-768 | Org Admin+ |
| TOP_SECRET | Super Admin | ML-KEM-1024 | Super Admin Only |
Sources: README.md
Module Communication via Event Bus
The platform utilizes a type-safe Event Bus for cross-module communication. Modules can subscribe to platform events (e.g., tenant.created, user.login) using glob patterns.
The sequence diagram illustrates how events are published by one module and delivered asynchronously to subscribers through the Registry and Event Bus.
Sources: dashboard/index.html, README.md
Summary
The Ecosystem Modules and App Store provide a highly scalable, micro-frontend environment where applications are isolated yet integrated. Through the use of a centralized Registry Worker, standardized lifecycle hooks, and a robust Event Bus, Infinity OS ensures that modules remain secure, compliant, and performant at the edge.
Sources: infinity-os/architecture.html, dashboard/index.html