Packages

Superintelligence Phoenix application

Current section

Files

Jump to
superintelligence lib superintelligence_web controllers page_html home.html.heex
Raw

lib/superintelligence_web/controllers/page_html/home.html.heex

<div class="min-h-screen bg-gradient-to-br from-gray-900 via-blue-900 to-purple-900 text-white">
<div class="px-4 py-10 sm:px-6 sm:py-16 lg:px-8">
<div class="mx-auto max-w-7xl">
<!-- Hero Section -->
<div class="text-center mb-16">
<h1 class="text-5xl md:text-7xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-600">
Superintelligence
</h1>
<p class="text-xl md:text-2xl text-gray-300 max-w-3xl mx-auto">
Advanced Elixir/Phoenix application featuring distributed computing,
machine learning inference, real-time monitoring, and a 50-deep supervision tree
</p>
</div>
<!-- Feature Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-16">
<!-- Dashboard -->
<a href={~p"/dashboard"} class="group relative overflow-hidden rounded-2xl bg-gray-800/50 backdrop-blur-sm border border-gray-700 hover:border-blue-500 transition-all duration-300">
<div class="absolute inset-0 bg-gradient-to-br from-blue-600/20 to-purple-600/20 opacity-0 group-hover:opacity-100 transition-opacity" />
<div class="relative p-8">
<div class="flex items-center justify-between mb-4">
<svg class="w-12 h-12 text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<span class="text-xs font-medium px-2 py-1 bg-blue-500/20 text-blue-400 rounded-full">Live</span>
</div>
<h3 class="text-xl font-semibold mb-2">Real-time Dashboard</h3>
<p class="text-gray-400 text-sm">
Monitor system metrics, worker pools, and ML models in real-time with LiveView
</p>
<div class="mt-4 flex items-center text-blue-400 text-sm font-medium">
<span>View Dashboard</span>
<svg class="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</div>
</div>
</a>
<!-- Supervision Tree -->
<a href={~p"/tree"} class="group relative overflow-hidden rounded-2xl bg-gray-800/50 backdrop-blur-sm border border-gray-700 hover:border-purple-500 transition-all duration-300">
<div class="absolute inset-0 bg-gradient-to-br from-purple-600/20 to-pink-600/20 opacity-0 group-hover:opacity-100 transition-opacity" />
<div class="relative p-8">
<div class="flex items-center justify-between mb-4">
<svg class="w-12 h-12 text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="text-xs font-medium px-2 py-1 bg-purple-500/20 text-purple-400 rounded-full">50 Levels</span>
</div>
<h3 class="text-xl font-semibold mb-2">Supervision Tree</h3>
<p class="text-gray-400 text-sm">
Explore the 50-deep supervision tree with advanced fault tolerance
</p>
<div class="mt-4 flex items-center text-purple-400 text-sm font-medium">
<span>Visualize Tree</span>
<svg class="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</div>
</div>
</a>
<!-- Startup Status -->
<a href={~p"/startup"} class="group relative overflow-hidden rounded-2xl bg-gray-800/50 backdrop-blur-sm border border-gray-700 hover:border-green-500 transition-all duration-300">
<div class="absolute inset-0 bg-gradient-to-br from-green-600/20 to-teal-600/20 opacity-0 group-hover:opacity-100 transition-opacity" />
<div class="relative p-8">
<div class="flex items-center justify-between mb-4">
<svg class="w-12 h-12 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="text-xs font-medium px-2 py-1 bg-green-500/20 text-green-400 rounded-full">Fast</span>
</div>
<h3 class="text-xl font-semibold mb-2">Startup Orchestration</h3>
<p class="text-gray-400 text-sm">
Advanced startup sequence with parallel initialization and profiling
</p>
<div class="mt-4 flex items-center text-green-400 text-sm font-medium">
<span>View Status</span>
<svg class="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</div>
</div>
</a>
<!-- AI Chat Interface -->
<a href={~p"/chat"} class="group relative overflow-hidden rounded-2xl bg-gray-800/50 backdrop-blur-sm border border-gray-700 hover:border-indigo-500 transition-all duration-300">
<div class="absolute inset-0 bg-gradient-to-br from-indigo-600/20 to-blue-600/20 opacity-0 group-hover:opacity-100 transition-opacity" />
<div class="relative p-8">
<div class="flex items-center justify-between mb-4">
<svg class="w-12 h-12 text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z" />
</svg>
<span class="text-xs font-medium px-2 py-1 bg-indigo-500/20 text-indigo-400 rounded-full">AI</span>
</div>
<h3 class="text-xl font-semibold mb-2">AI Chat Interface</h3>
<p class="text-gray-400 text-sm">
Real-time chat with AI agents and interactive visualizations
</p>
<div class="mt-4 flex items-center text-indigo-400 text-sm font-medium">
<span>Start Chatting</span>
<svg class="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</div>
</div>
</a>
</div>
<!-- Key Features -->
<div class="mb-16">
<h2 class="text-3xl font-bold mb-8 text-center">Advanced Features</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="bg-gray-800/30 backdrop-blur-sm rounded-lg p-6 border border-gray-700">
<div class="w-10 h-10 bg-blue-500/20 rounded-lg flex items-center justify-center mb-4">
<svg class="w-6 h-6 text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
</div>
<h3 class="font-semibold mb-2">ML Inference Pipeline</h3>
<p class="text-sm text-gray-400">
<%# ML modules temporarily disabled %>
<%# Distributed ML inference with Nx, EXLA, and Bumblebee integration %>
Distributed ML inference pipeline (currently in mock mode)
</p>
</div>
<div class="bg-gray-800/30 backdrop-blur-sm rounded-lg p-6 border border-gray-700">
<div class="w-10 h-10 bg-purple-500/20 rounded-lg flex items-center justify-center mb-4">
<svg class="w-6 h-6 text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />
</svg>
</div>
<h3 class="font-semibold mb-2">Distributed Processing</h3>
<p class="text-sm text-gray-400">
GenStage-based pipeline with Flow for parallel data processing
</p>
</div>
<div class="bg-gray-800/30 backdrop-blur-sm rounded-lg p-6 border border-gray-700">
<div class="w-10 h-10 bg-green-500/20 rounded-lg flex items-center justify-center mb-4">
<svg class="w-6 h-6 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
</svg>
</div>
<h3 class="font-semibold mb-2">Advanced Monitoring</h3>
<p class="text-sm text-gray-400">
Prometheus integration with custom metrics and telemetry
</p>
</div>
<div class="bg-gray-800/30 backdrop-blur-sm rounded-lg p-6 border border-gray-700">
<div class="w-10 h-10 bg-yellow-500/20 rounded-lg flex items-center justify-center mb-4">
<svg class="w-6 h-6 text-yellow-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" />
</svg>
</div>
<h3 class="font-semibold mb-2">Distributed Cache</h3>
<p class="text-sm text-gray-400">
Multi-level caching with Nebulex, automatic warming, and invalidation
</p>
</div>
</div>
</div>
<!-- Architecture Overview -->
<div class="bg-gray-800/30 backdrop-blur-sm rounded-2xl p-8 border border-gray-700 mb-16">
<h2 class="text-2xl font-bold mb-6">System Architecture</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4 text-blue-400">Core Components</h3>
<ul class="space-y-3 text-sm">
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">50-level deep supervision tree with automatic recovery</span>
</li>
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">Distributed worker pool with dynamic scaling</span>
</li>
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">Real-time telemetry and health monitoring</span>
</li>
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">Hot code reloading with version management</span>
</li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4 text-purple-400">Advanced Features</h3>
<ul class="space-y-3 text-sm">
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">GraphQL API with Absinthe for flexible queries</span>
</li>
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">Event sourcing with CQRS pattern</span>
</li>
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">WebRTC integration for real-time communication</span>
</li>
<li class="flex items-start">
<svg class="w-5 h-5 text-green-400 mr-2 flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
<span class="text-gray-300">Distributed clustering with libcluster & Horde</span>
</li>
</ul>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="text-center">
<h2 class="text-2xl font-bold mb-6">Quick Actions</h2>
<div class="flex flex-wrap justify-center gap-4">
<a href={~p"/dashboard"} class="px-6 py-3 bg-blue-600 hover:bg-blue-700 rounded-lg font-medium transition-colors inline-flex items-center">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
Open Dashboard
</a>
<a href="/dev/dashboard" class="px-6 py-3 bg-purple-600 hover:bg-purple-700 rounded-lg font-medium transition-colors inline-flex items-center">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
Phoenix LiveDashboard
</a>
<a href="https://github.com/yourusername/superintelligence" class="px-6 py-3 bg-gray-700 hover:bg-gray-600 rounded-lg font-medium transition-colors inline-flex items-center">
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.37 0 0 5.506 0 12.303c0 5.445 3.435 10.043 8.205 11.674.6.107.825-.262.825-.585 0-.292-.015-1.261-.015-2.291C6 21.67 5.22 20.346 4.98 19.654c-.135-.354-.72-1.446-1.23-1.738-.42-.23-1.02-.8-.015-.815.945-.015 1.62.892 1.845 1.261 1.08 1.86 2.805 1.338 3.495 1.015.105-.8.42-1.338.765-1.645-2.67-.308-5.46-1.37-5.46-6.075 0-1.338.465-2.446 1.23-3.307-.12-.308-.54-1.569.12-3.26 0 0 1.005-.323 3.3 1.26.96-.276 1.98-.415 3-.415s2.04.139 3 .416c2.295-1.6 3.3-1.261 3.3-1.261.66 1.691.24 2.952.12 3.26.765.861 1.23 1.953 1.23 3.307 0 4.721-2.805 5.767-5.475 6.075.435.384.81 1.122.81 2.276 0 1.645-.015 2.968-.015 3.383 0 .323.225.707.825.585A12.047 12.047 0 0 0 24 12.303C24 5.506 18.63 0 12 0Z" />
</svg>
View on GitHub
</a>
</div>
</div>
</div>
</div>
</div>