Speed up downloads by combining multiple network connections in parallel
TypeScript bandwidth-aggregationcross-platformdesktop-appdownloaderdownloadmanagerlinuxmacosmulticonnectionparallel-downloadswindows
Add static landing page for GitHub Pages
Anmol Kapild914ecd5fcf0
diff --git a/docs/index.html b/docs/index.htmlnew file mode 100644index 0000000..a265bbb--- /dev/null+++ b/docs/index.html@@ -0,0 +1,248 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Plexo — one download, every connection you own</title>+<meta name="description" content="Plexo splits a single download across every network you have — Wi-Fi, Ethernet, tethered phone — and merges it back into one verified file.">+<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500;600&display=swap" rel="stylesheet">+<style>+ :root { color-scheme: dark; }+ * { box-sizing: border-box; }+ body { margin: 0; background: #16181a; font-family: Manrope, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; color: #eae7e2; }+ a { color: #d8a44c; text-decoration: none; }+ a:hover { color: #e8bb6d; }+ .wrap { max-width: 1120px; margin: 0 auto; padding: 22px 26px 80px; display: flex; flex-direction: column; gap: 72px; }+ header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }+ header .spacer { flex: 1; }+ header a { font: 500 13px/1 Manrope, sans-serif; color: #a9adb2; }+ header a:hover { color: #eae7e2; }+ .logo { width: 32px; height: 32px; display: block; flex-shrink: 0; }+ .wordmark { font: 800 17px/1 Manrope, sans-serif; letter-spacing: -.01em; }+ .badge { padding: 5px 10px; border-radius: 999px; background: #33291a; border: 1px solid #4a3a22; font: 600 10px/1 'Roboto Mono', monospace; letter-spacing: .14em; color: #e8bb6d; white-space: nowrap; }+ .hero { display: flex; flex-direction: column; gap: 26px; max-width: 760px; }+ .eyebrow { font: 500 11px/1 'Roboto Mono', monospace; letter-spacing: .2em; color: #8d9196; white-space: nowrap; }+ h1 { margin: 0; font: 800 clamp(40px, 6.4vw, 68px)/1.02 Manrope, sans-serif; letter-spacing: -.035em; color: #f5f2ed; text-wrap: balance; }+ .hero p { margin: 0; font: 400 17px/1.6 Manrope, sans-serif; color: #a9adb2; max-width: 600px; text-wrap: pretty; }+ .cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }+ .primary-btn { display: flex; align-items: center; gap: 13px; padding: 16px 24px; border-radius: 11px; background: #d8a44c; color: #1b1405; box-shadow: 0 16px 38px rgba(216,164,76,.22); }+ .primary-btn:hover { background: #e8bb6d; }+ .primary-btn .label { display: flex; flex-direction: column; gap: 3px; }+ .primary-btn .title { font: 700 15px/1.2 Manrope, sans-serif; color: #1b1405; }+ .primary-btn .meta { font: 500 10.5px/1.3 'Roboto Mono', monospace; color: #5a4413; overflow-wrap: anywhere; }+ .release-line { font: 400 11.5px/1.6 'Roboto Mono', monospace; color: #6f7479; text-wrap: pretty; }+ .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }+ .feature { padding: 24px; border-radius: 13px; background: #1b1e20; border: 1px solid #2b2f33; display: flex; flex-direction: column; gap: 10px; }+ .feature .bar { width: 26px; height: 3px; border-radius: 2px; }+ .feature h3 { margin: 0; font: 700 16px/1.3 Manrope, sans-serif; color: #f5f2ed; }+ .feature p { margin: 0; font: 400 13.5px/1.6 Manrope, sans-serif; color: #a9adb2; text-wrap: pretty; }+ .downloads { display: flex; flex-direction: column; gap: 16px; }+ .downloads-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }+ .downloads-head .title { font: 700 21px/1.2 Manrope, sans-serif; letter-spacing: -.015em; color: #f5f2ed; white-space: nowrap; }+ .downloads-head .source { font: 400 11.5px/1.4 'Roboto Mono', monospace; color: #6f7479; overflow-wrap: anywhere; }+ .asset-table { border-radius: 13px; overflow: hidden; border: 1px solid #2b2f33; background: #1b1e20; }+ .asset-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) 110px; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #23262a; }+ .asset-row .platform { font: 600 13.5px/1.35 Manrope, sans-serif; color: #eae7e2; }+ .asset-row .file { font: 400 11.5px/1.4 'Roboto Mono', monospace; color: #8d9196; overflow-wrap: anywhere; }+ .asset-row .file .size { color: #5d6165; }+ .asset-row .dl { justify-self: end; padding: 9px 15px; border-radius: 8px; background: #262a2d; border: 1px solid #33383c; font: 600 12px/1 Manrope, sans-serif; color: #eae7e2; white-space: nowrap; }+ .asset-row .dl:hover { background: #2f3437; color: #f5f2ed; }+ .asset-note { padding: 14px 20px; font: 400 11.5px/1.6 'Roboto Mono', monospace; color: #6f7479; }+ footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid #23262a; }+ footer .spacer { flex: 1; }+ footer .ver { font: 400 11.5px/1 'Roboto Mono', monospace; color: #6f7479; white-space: nowrap; }+ footer a { font: 500 12.5px/1 Manrope, sans-serif; color: #a9adb2; white-space: nowrap; }+ footer a:hover { color: #eae7e2; }+ @media (max-width: 700px) {+ .asset-row { grid-template-columns: 1fr auto; gap: 6px 14px; }+ .asset-row .file { grid-column: 1 / -1; }+ }+</style>+</head>+<body>+<div class="wrap">++ <header>+ <svg class="logo" viewBox="0 0 1024 1024">+ <path d="M512,26 C726,26 820,54 883,117 C946,180 998,298 998,512 C998,726 946,844 883,907 C820,970 726,998 512,998 C298,998 204,970 141,907 C78,844 26,726 26,512 C26,298 78,180 141,117 C204,54 298,26 512,26 Z" fill="#23282b"/>+ <g fill="none" stroke-width="54" stroke-linecap="round" stroke-dasharray="44 64"><path d="M186,282 C400,282 470,512 640,512" stroke="#4ea89a"/><path d="M186,512 L640,512" stroke="#d8a44c"/><path d="M186,742 C400,742 470,512 640,512" stroke="#7e93bd"/></g>+ <path d="M640,512 L846,512" fill="none" stroke="#f7f4ef" stroke-width="112" stroke-linecap="round"/>+ <circle cx="640" cy="512" r="74" fill="#f7f4ef"/>+ </svg>+ <div class="wordmark">Plexo</div>+ <div class="badge">PRE-RELEASE</div>+ <div class="spacer"></div>+ <a href="https://github.com/anmolkapil/plexo">GitHub</a>+ </header>++ <section class="hero">+ <div class="eyebrow">DOWNLOAD MANAGER · MULTI-LINK</div>+ <h1>One download.<br>Every connection you own.</h1>+ <p>Plexo splits a single file across Wi-Fi, Ethernet and your phone's USB tether at the same time, then merges the chunks back into one stream. Resumable, verified on completion.</p>++ <div class="cta-row">+ <a class="primary-btn" id="primary-btn" href="https://github.com/anmolkapil/plexo/releases/latest">+ <svg viewBox="0 0 24 24" width="19" height="19" fill="none" stroke="#1b1405" stroke-width="2.2" stroke-linecap="round"><path d="M12 3v12"/><path d="M6.5 11.5 12 17l5.5-5.5"/><path d="M4 20h16"/></svg>+ <span class="label">+ <span class="title" id="primary-title">Download for your OS</span>+ <span class="meta" id="primary-meta">Loading latest release…</span>+ </span>+ </a>+ <a href="#downloads">Other platforms</a>+ </div>+ <div class="release-line" id="release-line">Checking GitHub for the latest release…</div>+ </section>++ <section class="features">+ <div class="feature">+ <div class="bar" style="background: #4ea89a;"></div>+ <h3>Link bonding</h3>+ <p>Every interface pulls its own chunk range. Add a tethered phone mid-download and it joins the file in progress.</p>+ </div>+ <div class="feature">+ <div class="bar" style="background: #d8a44c;"></div>+ <h3>Per-link telemetry</h3>+ <p>Live speed, share, latency and bytes moved for each connection, so you can see which one is holding you back.</p>+ </div>+ <div class="feature">+ <div class="bar" style="background: #7e93bd;"></div>+ <h3>Resume anywhere</h3>+ <p>Drop a link, close the lid, change networks. Chunk state is on disk, so downloads pick up where they stopped.</p>+ </div>+ <div class="feature">+ <div class="bar" style="background: #f5f2ed;"></div>+ <h3>Verified on completion</h3>+ <p>Merged output is checksummed before Plexo hands the file over. One stream in, one intact file out.</p>+ </div>+ </section>++ <section class="downloads" id="downloads">+ <div class="downloads-head">+ <div class="title">All downloads</div>+ <div class="source" id="asset-source">PUBLISHED ON GITHUB RELEASES</div>+ </div>+ <div class="asset-table" id="asset-table">+ <div class="asset-note">Loading releases…</div>+ </div>+ </section>++ <footer>+ <div class="ver" id="version-label">PLEXO</div>+ <div class="spacer"></div>+ <a href="https://github.com/anmolkapil/plexo">Source</a>+ <a href="https://github.com/anmolkapil/plexo/issues/new">Report an issue</a>+ </footer>+</div>++<script>+(function () {+ var REPO = 'anmolkapil/plexo';+ var repoUrl = 'https://github.com/' + REPO;+ var labels = { mac: 'macOS', win: 'Windows', linux: 'Linux' };++ function osKey() {+ var ua = (navigator.userAgent || '') + ' ' + (navigator.platform || '');+ if (/Win/i.test(ua)) return 'win';+ if (/Linux|X11/i.test(ua) && !/Android/i.test(ua)) return 'linux';+ return 'mac';+ }++ function fmtSize(bytes) {+ if (!bytes) return '';+ var mb = bytes / 1048576;+ return mb >= 1024 ? (mb / 1024).toFixed(2) + ' GB' : mb.toFixed(1) + ' MB';+ }++ // ponytail: extension-based classifier, good enough for electron-builder's default output names.+ function classify(name) {+ var n = name.toLowerCase();+ if (/\.dmg$/.test(n)) return 'mac';+ if (/\.(exe|msi)$/.test(n)) return 'win';+ if (/\.(appimage|deb|rpm)$/.test(n)) return 'linux';+ return null;+ }++ function render(release) {+ var key = osKey();+ var assets = [];++ if (release) {+ assets = (release.assets || [])+ .map(function (a) {+ var k = classify(a.name);+ if (!k) return null;+ return {+ key: k,+ platform: labels[k] + (k === 'mac' && /arm64|aarch64/i.test(a.name) ? ' · Apple silicon' : ''),+ file: a.name,+ size: fmtSize(a.size),+ url: a.browser_download_url+ };+ })+ .filter(Boolean);+ }++ var table = document.getElementById('asset-table');+ var sourceEl = document.getElementById('asset-source');+ var releaseLine = document.getElementById('release-line');+ var versionEl = document.getElementById('version-label');+ var primaryTitle = document.getElementById('primary-title');+ var primaryMeta = document.getElementById('primary-meta');+ var primaryBtn = document.getElementById('primary-btn');++ if (!release || !assets.length) {+ table.innerHTML = '<div class="asset-note">No published build assets yet — check the <a href="' + repoUrl + '/releases">Releases page</a> on GitHub.</div>';+ sourceEl.textContent = REPO.toUpperCase();+ releaseLine.textContent = 'No release published yet.';+ versionEl.textContent = 'PLEXO';+ primaryTitle.textContent = 'View releases on GitHub';+ primaryMeta.textContent = repoUrl;+ primaryBtn.href = repoUrl + '/releases';+ return;+ }++ var version = release.tag_name;+ var date = release.published_at ? new Date(release.published_at).toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' }) : '';+ versionEl.textContent = 'PLEXO · ' + version;+ sourceEl.textContent = REPO.toUpperCase() + ' · ' + version.toUpperCase();+ releaseLine.textContent = version + ' · ' + (release.prerelease ? 'pre-release' : 'stable') + (date ? ' · ' + date : '') + ' · resumable · free while in beta';++ var primary = assets.filter(function (a) { return a.key === key; })[0] || assets[0];+ primaryTitle.textContent = 'Download for ' + labels[key];+ primaryMeta.textContent = primary.file + (primary.size ? ' · ' + primary.size : '');+ primaryBtn.href = primary.url;++ table.innerHTML = '';+ assets.forEach(function (a) {+ var row = document.createElement('div');+ row.className = 'asset-row';+ row.innerHTML =+ '<div class="platform"></div>' ++ '<div class="file"></div>' ++ '<a class="dl">Download</a>';+ row.children[0].textContent = a.platform;+ row.children[1].textContent = a.file + ' ';+ var size = document.createElement('span');+ size.className = 'size';+ size.textContent = '· ' + a.size;+ row.children[1].appendChild(size);+ row.children[2].href = a.url;+ table.appendChild(row);+ });+ var note = document.createElement('div');+ note.className = 'asset-note';+ note.textContent = release.prerelease+ ? 'Pre-release build. Expect rough edges, and file an issue if something breaks.'+ : '';+ if (note.textContent) table.appendChild(note);+ }++ fetch('https://api.github.com/repos/' + REPO + '/releases?per_page=5')+ .then(function (r) { return r.ok ? r.json() : Promise.reject(); })+ .then(function (list) { render(Array.isArray(list) ? list[0] : null); })+ .catch(function () { render(null); });+})();+</script>++</body>+</html>