import React, { useState } from 'react'; import { Download, CheckCircle, Loader2, Monitor, Zap, Shield, Code } from 'lucide-react'; export default function DownloadPage() { const [downloading, setDownloading] = useState(false); const [progress, setProgress] = useState(0); const handleDownload = async () => { setDownloading(true); setProgress(0); try { // Fetch the installer const response = await fetch('/api/download/desktop'); const contentLength = response.headers.get('content-length'); const total = parseInt(contentLength || '0', 10); const reader = response.body?.getReader(); const chunks: Uint8Array[] = []; let receivedLength = 0; if (reader) { while (true) { const { done, value } = await reader.read(); if (done) break; chunks.push(value); receivedLength += value.length; setProgress(Math.round((receivedLength / total) * 100)); } } // Combine chunks and create blob const blob = new Blob(chunks); const url = window.URL.createObjectURL(blob); // Trigger download const a = document.createElement('a'); a.href = url; a.download = 'AeThex-OS-setup.exe'; document.body.appendChild(a); a.click(); document.body.removeChild(a); window.URL.revokeObjectURL(url); setProgress(100); // Show success message setTimeout(() => { setDownloading(false); setProgress(0); }, 2000); } catch (error) { console.error('Download failed:', error); setDownloading(false); setProgress(0); alert('Download failed. Please try again.'); } }; return (
The complete learning ecosystem. Build, learn, and deploy compliant software.
{/* Download Button */}Version 0.1.0 • Windows x64 • 2.5 MB
Open the downloaded file to install AeThex OS
)}Click the download button to get the installer
Run the installer and follow the setup wizard
Launch AeThex OS and begin your journey
Monaco editor with syntax highlighting and IntelliSense
Full-featured terminal with command execution
Write once, compile to JS, Lua, Verse, C#
Built-in COPPA, GDPR, CCPA compliance tools
Yes! AeThex OS is completely free to download and use.
You can use many features offline, but some features like cloud sync and updates require internet.
AeThex OS automatically checks for updates and will notify you when a new version is available.
Yes. All your data is stored locally on your device. Optional cloud sync is encrypted end-to-end.