Update index.html
Browse files- index.html +103 -275
index.html
CHANGED
|
@@ -1,280 +1,108 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
<head>
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
</head>
|
| 10 |
-
|
| 11 |
<body>
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
// Get current page URL and convert to repository format
|
| 109 |
-
const currentUrl = window.location.href;
|
| 110 |
-
|
| 111 |
-
// Remove any trailing slashes and query parameters
|
| 112 |
-
const cleanUrl = currentUrl.split('?')[0].replace(/\/$/, '');
|
| 113 |
-
|
| 114 |
-
return cleanUrl;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
// Parse TOML content to extract project name
|
| 118 |
-
function parseTomlProjectName(tomlContent) {
|
| 119 |
-
try {
|
| 120 |
-
const lines = tomlContent.split('\n');
|
| 121 |
-
let inProjectSection = false;
|
| 122 |
-
|
| 123 |
-
for (const line of lines) {
|
| 124 |
-
const trimmedLine = line.trim();
|
| 125 |
-
|
| 126 |
-
// Check if we're entering the [project] section
|
| 127 |
-
if (trimmedLine === '[project]') {
|
| 128 |
-
inProjectSection = true;
|
| 129 |
-
continue;
|
| 130 |
-
}
|
| 131 |
-
|
| 132 |
-
// Check if we're entering a different section
|
| 133 |
-
if (trimmedLine.startsWith('[') && trimmedLine !== '[project]') {
|
| 134 |
-
inProjectSection = false;
|
| 135 |
-
continue;
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
// If we're in the project section, look for the name field
|
| 139 |
-
if (inProjectSection && trimmedLine.startsWith('name')) {
|
| 140 |
-
const match = trimmedLine.match(/name\s*=\s*["']([^"']+)["']/);
|
| 141 |
-
if (match) {
|
| 142 |
-
// Convert to lowercase and replace invalid characters for app naming
|
| 143 |
-
return match[1].toLowerCase().replace(/[^a-z0-9-_]/g, '-');
|
| 144 |
-
}
|
| 145 |
-
}
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
throw new Error('Project name not found in pyproject.toml');
|
| 149 |
-
} catch (error) {
|
| 150 |
-
console.error('Error parsing pyproject.toml:', error);
|
| 151 |
-
return 'unknown-app';
|
| 152 |
-
}
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
// Fetch and parse pyproject.toml from the current space
|
| 156 |
-
async function getAppNameFromCurrentSpace() {
|
| 157 |
-
try {
|
| 158 |
-
// Fetch pyproject.toml from the current space
|
| 159 |
-
const response = await fetch('./pyproject.toml');
|
| 160 |
-
if (!response.ok) {
|
| 161 |
-
throw new Error(`Failed to fetch pyproject.toml: ${response.status}`);
|
| 162 |
-
}
|
| 163 |
-
|
| 164 |
-
const tomlContent = await response.text();
|
| 165 |
-
return parseTomlProjectName(tomlContent);
|
| 166 |
-
} catch (error) {
|
| 167 |
-
console.error('Error fetching app name from current space:', error);
|
| 168 |
-
// Fallback to extracting from URL if pyproject.toml is not accessible
|
| 169 |
-
const url = getCurrentSpaceUrl();
|
| 170 |
-
const parts = url.split('/');
|
| 171 |
-
const spaceName = parts[parts.length - 1];
|
| 172 |
-
return spaceName.toLowerCase().replace(/[^a-z0-9-_]/g, '-');
|
| 173 |
-
}
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
async function installToReachy() {
|
| 177 |
-
const dashboardUrl = document.getElementById('dashboardUrl').value.trim();
|
| 178 |
-
const statusDiv = document.getElementById('installStatus');
|
| 179 |
-
const installBtn = document.getElementById('installBtn');
|
| 180 |
-
|
| 181 |
-
if (!dashboardUrl) {
|
| 182 |
-
showStatus('error', 'Please enter your Reachy dashboard URL');
|
| 183 |
-
return;
|
| 184 |
-
}
|
| 185 |
-
|
| 186 |
-
try {
|
| 187 |
-
installBtn.disabled = true;
|
| 188 |
-
installBtn.innerHTML = '<span class="btn-icon">β³</span>Installing...';
|
| 189 |
-
showStatus('loading', 'Connecting to your Reachy dashboard...');
|
| 190 |
-
|
| 191 |
-
// Test connection
|
| 192 |
-
const testResponse = await fetch(`${dashboardUrl}/api/status`, {
|
| 193 |
-
method: 'GET',
|
| 194 |
-
mode: 'cors',
|
| 195 |
-
});
|
| 196 |
-
|
| 197 |
-
if (!testResponse.ok) {
|
| 198 |
-
throw new Error('Cannot connect to dashboard. Make sure the URL is correct and the dashboard is running.');
|
| 199 |
-
}
|
| 200 |
-
|
| 201 |
-
showStatus('loading', 'Reading app configuration...');
|
| 202 |
-
|
| 203 |
-
// Get app name from pyproject.toml in current space
|
| 204 |
-
const appName = await getAppNameFromCurrentSpace();
|
| 205 |
-
|
| 206 |
-
// Get current space URL as repository URL
|
| 207 |
-
const repoUrl = getCurrentSpaceUrl();
|
| 208 |
-
|
| 209 |
-
showStatus('loading', `Starting installation of "${appName}"...`);
|
| 210 |
-
|
| 211 |
-
// Start installation
|
| 212 |
-
const installResponse = await fetch(`${dashboardUrl}/api/install`, {
|
| 213 |
-
method: 'POST',
|
| 214 |
-
mode: 'cors',
|
| 215 |
-
headers: {
|
| 216 |
-
'Content-Type': 'application/json',
|
| 217 |
-
},
|
| 218 |
-
body: JSON.stringify({
|
| 219 |
-
url: repoUrl,
|
| 220 |
-
name: appName
|
| 221 |
-
})
|
| 222 |
-
});
|
| 223 |
-
|
| 224 |
-
const result = await installResponse.json();
|
| 225 |
-
|
| 226 |
-
if (installResponse.ok) {
|
| 227 |
-
showStatus('success', `β
Installation started for "${appName}"! Check your dashboard for progress.`);
|
| 228 |
-
setTimeout(() => {
|
| 229 |
-
showStatus('info', `Open your dashboard at ${dashboardUrl} to see the installed app.`);
|
| 230 |
-
}, 3000);
|
| 231 |
-
} else {
|
| 232 |
-
throw new Error(result.detail || 'Installation failed');
|
| 233 |
-
}
|
| 234 |
-
|
| 235 |
-
} catch (error) {
|
| 236 |
-
console.error('Installation error:', error);
|
| 237 |
-
showStatus('error', `β ${error.message}`);
|
| 238 |
-
} finally {
|
| 239 |
-
installBtn.disabled = false;
|
| 240 |
-
installBtn.innerHTML = '<span class="btn-icon">π₯</span>Install App to Reachy';
|
| 241 |
-
}
|
| 242 |
-
}
|
| 243 |
-
|
| 244 |
-
function showStatus(type, message) {
|
| 245 |
-
const statusDiv = document.getElementById('installStatus');
|
| 246 |
-
statusDiv.className = `install-status ${type}`;
|
| 247 |
-
statusDiv.textContent = message;
|
| 248 |
-
statusDiv.style.display = 'block';
|
| 249 |
-
}
|
| 250 |
-
|
| 251 |
-
function copyToClipboard() {
|
| 252 |
-
const repoUrl = document.getElementById('repoUrl').textContent;
|
| 253 |
-
navigator.clipboard.writeText(repoUrl).then(() => {
|
| 254 |
-
showStatus('success', 'π Repository URL copied to clipboard!');
|
| 255 |
-
}).catch(() => {
|
| 256 |
-
showStatus('error', 'Failed to copy URL. Please copy manually.');
|
| 257 |
-
});
|
| 258 |
-
}
|
| 259 |
-
|
| 260 |
-
// Update the displayed repository URL on page load
|
| 261 |
-
document.addEventListener('DOMContentLoaded', () => {
|
| 262 |
-
// Auto-detect local dashboard
|
| 263 |
-
const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
|
| 264 |
-
if (isLocalhost) {
|
| 265 |
-
document.getElementById('dashboardUrl').value = 'http://localhost:8000';
|
| 266 |
-
}
|
| 267 |
-
|
| 268 |
-
// Update the repository URL display if element exists
|
| 269 |
-
const repoUrlElement = document.getElementById('repoUrl');
|
| 270 |
-
if (repoUrlElement) {
|
| 271 |
-
repoUrlElement.textContent = getCurrentSpaceUrl();
|
| 272 |
-
}
|
| 273 |
-
});
|
| 274 |
-
|
| 275 |
-
// Event listeners
|
| 276 |
-
document.getElementById('installBtn').addEventListener('click', installToReachy);
|
| 277 |
-
</script>
|
| 278 |
</body>
|
| 279 |
-
|
| 280 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
|
|
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Awesome Reachy Mini Apps</title>
|
| 7 |
+
<meta name="description" content="A collection of awesome applications and demos built for the Reachy Mini robot">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
</head>
|
|
|
|
| 10 |
<body>
|
| 11 |
+
<div class="container">
|
| 12 |
+
<header class="hero">
|
| 13 |
+
<div class="hero-content">
|
| 14 |
+
<h1 class="hero-title">
|
| 15 |
+
<span class="gradient-text">Awesome Reachy Mini Apps</span>
|
| 16 |
+
</h1>
|
| 17 |
+
<p class="hero-description">
|
| 18 |
+
A curated collection of applications and demos showcasing the capabilities of Reachy Mini in robotics, AI, and human-robot interaction.
|
| 19 |
+
</p>
|
| 20 |
+
<div class="hero-badges">
|
| 21 |
+
<span class="badge">Robotics</span>
|
| 22 |
+
<span class="badge">AI</span>
|
| 23 |
+
<span class="badge">HRI</span>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
</header>
|
| 27 |
+
|
| 28 |
+
<main class="main-content">
|
| 29 |
+
<section class="intro-section">
|
| 30 |
+
<h2>About This Collection</h2>
|
| 31 |
+
<p>
|
| 32 |
+
This repository contains a collection of awesome applications and demos built for the Reachy Mini robot.
|
| 33 |
+
These applications showcase the capabilities of Reachy Mini in various domains, including robotics, AI,
|
| 34 |
+
and human-robot interaction.
|
| 35 |
+
</p>
|
| 36 |
+
<p class="cta-text">Feel free to explore and contribute to this list!</p>
|
| 37 |
+
</section>
|
| 38 |
+
|
| 39 |
+
<section class="apps-section">
|
| 40 |
+
<h2 class="section-title">Applications & Demos</h2>
|
| 41 |
+
|
| 42 |
+
<div class="apps-grid">
|
| 43 |
+
<article class="app-card">
|
| 44 |
+
<div class="card-header">
|
| 45 |
+
<h3 class="card-title">Conversational Demo</h3>
|
| 46 |
+
<span class="author-badge">by Pollen Robotics</span>
|
| 47 |
+
</div>
|
| 48 |
+
<p class="card-description">
|
| 49 |
+
A demo that combines LLM realtime APIs, vision pipelines, and choreographed motion libraries
|
| 50 |
+
to enable natural conversations with Reachy Mini.
|
| 51 |
+
</p>
|
| 52 |
+
<div class="card-footer">
|
| 53 |
+
<a href="https://github.com/pollen-robotics/reachy_mini_conversation_demo"
|
| 54 |
+
class="card-link"
|
| 55 |
+
target="_blank"
|
| 56 |
+
rel="noopener noreferrer">
|
| 57 |
+
<svg class="icon" viewBox="0 0 24 24" fill="currentColor">
|
| 58 |
+
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
|
| 59 |
+
</svg>
|
| 60 |
+
View on GitHub
|
| 61 |
+
</a>
|
| 62 |
+
</div>
|
| 63 |
+
</article>
|
| 64 |
+
|
| 65 |
+
<article class="app-card">
|
| 66 |
+
<div class="card-header">
|
| 67 |
+
<h3 class="card-title">Reachy Mini Dancer</h3>
|
| 68 |
+
<span class="author-badge">by @Townie</span>
|
| 69 |
+
</div>
|
| 70 |
+
<p class="card-description">
|
| 71 |
+
A desktop viewer with daemon UI and choreography system that brings Reachy Mini to life
|
| 72 |
+
through expressive dance movements and coordinated motion sequences.
|
| 73 |
+
</p>
|
| 74 |
+
<div class="card-footer">
|
| 75 |
+
<a href="https://github.com/LAURA-agent/reachy_mini_dancer"
|
| 76 |
+
class="card-link"
|
| 77 |
+
target="_blank"
|
| 78 |
+
rel="noopener noreferrer">
|
| 79 |
+
<svg class="icon" viewBox="0 0 24 24" fill="currentColor">
|
| 80 |
+
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
|
| 81 |
+
</svg>
|
| 82 |
+
View on GitHub
|
| 83 |
+
</a>
|
| 84 |
+
</div>
|
| 85 |
+
</article>
|
| 86 |
+
</div>
|
| 87 |
+
</section>
|
| 88 |
+
|
| 89 |
+
<section class="contribute-section">
|
| 90 |
+
<div class="contribute-card">
|
| 91 |
+
<h2>Want to Contribute?</h2>
|
| 92 |
+
<p>
|
| 93 |
+
Have you built something awesome with Reachy Mini? We'd love to feature your project!
|
| 94 |
+
Contributions are welcome and encouraged.
|
| 95 |
+
</p>
|
| 96 |
+
<a href="https://github.com" class="contribute-button" target="_blank" rel="noopener noreferrer">
|
| 97 |
+
Contribute Your App
|
| 98 |
+
</a>
|
| 99 |
+
</div>
|
| 100 |
+
</section>
|
| 101 |
+
</main>
|
| 102 |
+
|
| 103 |
+
<footer class="footer">
|
| 104 |
+
<p>Built with β€οΈ for the Reachy Mini Community</p>
|
| 105 |
+
</footer>
|
| 106 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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