Getting Started Guide
Relevant source files
The following files were used as context for generating this wiki page:
Introduction
Infinity OS is a browser-native, AI-augmented, and modular virtual operating system platform. Built on the 2060 Modular Standard, it provides a full desktop metaphor—including a window manager, taskbar, and notification center—entirely through the browser. The platform is designed to run at zero infrastructure cost by leveraging the free tiers of Cloudflare and Supabase.
The purpose of this guide is to provide developers with the necessary steps to set up, configure, and deploy the Infinity OS ecosystem. It covers the technical architecture, prerequisite environment settings, and the "Empathy Mandate" philosophy that governs all contributions to the project.
Sources: README.md:3-12, CONTRIBUTING.md:3-6
Platform Architecture
Infinity OS follows a strict 7-layer production stack architecture, ranging from the low-level kernel to the high-level application and observability layers.
The architecture leverages Edge Computing (Cloudflare Workers) and a decentralized data layer.
Sources: README.md:18-30, infinity-os/architecture.html:438-518
Layer Descriptions
| Layer | Component | Technology | Description |
|---|---|---|---|
| L6 | Platform Core | Infinity-One / Lighthouse | IAM, Token Hub, and Security. |
| L5 | App Store | Infinity Market | Module distribution and verification. |
| L4 | Data Layer | Supabase / R2 / KV | Persistence using PostgreSQL and Edge storage. |
| L3 | Module System | Micro-Frontends | Sandboxed applications (File Manager, Editor). |
| L2 | Shell | React 18 PWA | Window manager and Desktop environment. |
| L1 | Core Services | Cloudflare Workers | Identity, Filesystem, and AI Orchestration. |
| L0 | Infinity Kernel | Service Worker | Process API and IPC Message Bus. |
Sources: README.md:18-30, infinity-os/architecture.html:438-518
Initial Setup and Prerequisites
Before starting, ensure your environment meets the following minimum requirements:
- Node.js: Version 20+ (LTS recommended).
- Package Manager: pnpm 8+.
- Accounts: Free tier accounts for Cloudflare and Supabase.
- CLI Tools:
wrangler(Cloudflare) andflyctl(Fly.io).
Sources: README.md:300-305, scripts/deploy.sh:105-115, DEPLOY_GUIDE.md:34-40
Installation Steps
- Clone the Repository:
git clone https://github.com/Trancendos/infinity-portal.git cd infinity-portal - Install Dependencies:
pnpm install - Configure Environment Variables:
Copy the example environment file and populate it with your Supabase and Cloudflare credentials.cp apps/shell/.env.example apps/shell/.env.local - Database Migration:
Run the SQL migrations in your Supabase SQL editor in the following order:001_core.sql002_financial.sql003_adaptive_intelligence.sql004_platform_core.sql
Sources: README.md:308-325, scripts/deploy.sh:142-160
Development Workflow
Execution Flow
The system relies on an automated preflight check sequence before any local development or deployment.
Sources: scripts/deploy.sh:91-137, README.md:328-330
Contribution Philosophy: The Empathy Mandate
Contributors must adhere to the Empathy Mandate, which prioritizes "Cognitive Ease." Systems must avoid inducing stress or cognitive overload.
Hard-Stop Validation: If a task requires modifying more than 2 files simultaneously, you must stop and request approval from the Lead Architect.
Sources: CONTRIBUTING.md:8-15, CONTRIBUTING.md:37-40
Task Complexity Framework
All tasks must be categorized using the complexity framework before a Pull Request is opened:
| Level | Classification | Example |
|---|---|---|
| L1 | Trivial | CSS tweaks, text changes, commenting. |
| L2 | Isolated Logic | Updating a single microservice function or UI component. |
| L3 | Integration | Connecting frontend to backend APIs. |
| L4 | Security/Arch | OAuth flows, database schema changes. |
| L5 | Danger Zone | Multi-file refactoring, CI/CD pipeline overhauls. |
Sources: CONTRIBUTING.md:23-35
Deployment
Deployment is split between the frontend (Cloudflare Pages) and the backend core services (Fly.io or Cloudflare Workers).
Backend Deployment (Fly.io)
- Initialize the app:
fly launch. - Provision Postgres:
fly postgres create. - Set secrets for
JWT_SECRET_KEYandCORS_ORIGINS. - Deploy:
fly deploy.
Sources: DEPLOY_GUIDE.md:52-75, scripts/deploy-live.sh:65-95
Frontend Deployment (Cloudflare Pages)
The frontend is built with production environment variables pointing to the live backend API.
Cloudflare Worker Configuration
Individual microservices are deployed as Cloudflare Workers. Each requires specific KV namespaces for rate limiting and caching.
# Example for API Gateway
wrangler kv:namespace create "RATE_LIMIT"
wrangler kv:namespace create "CACHE"
cd workers/api-gateway && wrangler deploy --env production
Sources: DEPLOY_GUIDE.md:112-124, scripts/setup-cloudflare.sh:48-75
Conclusion
Setting up Infinity OS requires a combination of local environment preparation, cloud provider configuration (Cloudflare/Supabase/Fly.io), and strict adherence to architectural standards. By following the 7-layer model and the complexity framework, developers ensure that the platform remains scalable and "Quantum-Safe" at zero infrastructure cost.
Sources: README.md:395-400, infinity-os/architecture.html:1050-1060